AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ConfigurationPolicyAssociationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AssociationType.h>
11#include <aws/securityhub/model/ConfigurationPolicyAssociationStatus.h>
12#include <aws/securityhub/model/TargetType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
34 public:
35 AWS_SECURITYHUB_API ConfigurationPolicyAssociationSummary() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetConfigurationPolicyId() const { return m_configurationPolicyId; }
45 inline bool ConfigurationPolicyIdHasBeenSet() const { return m_configurationPolicyIdHasBeenSet; }
46 template <typename ConfigurationPolicyIdT = Aws::String>
47 void SetConfigurationPolicyId(ConfigurationPolicyIdT&& value) {
48 m_configurationPolicyIdHasBeenSet = true;
49 m_configurationPolicyId = std::forward<ConfigurationPolicyIdT>(value);
50 }
51 template <typename ConfigurationPolicyIdT = Aws::String>
53 SetConfigurationPolicyId(std::forward<ConfigurationPolicyIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetTargetId() const { return m_targetId; }
63 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
64 template <typename TargetIdT = Aws::String>
65 void SetTargetId(TargetIdT&& value) {
66 m_targetIdHasBeenSet = true;
67 m_targetId = std::forward<TargetIdT>(value);
68 }
69 template <typename TargetIdT = Aws::String>
71 SetTargetId(std::forward<TargetIdT>(value));
72 return *this;
73 }
75
77
81 inline TargetType GetTargetType() const { return m_targetType; }
82 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
83 inline void SetTargetType(TargetType value) {
84 m_targetTypeHasBeenSet = true;
85 m_targetType = value;
86 }
88 SetTargetType(value);
89 return *this;
90 }
92
94
99 inline AssociationType GetAssociationType() const { return m_associationType; }
100 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
102 m_associationTypeHasBeenSet = true;
103 m_associationType = value;
104 }
110
112
116 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
117 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
118 template <typename UpdatedAtT = Aws::Utils::DateTime>
119 void SetUpdatedAt(UpdatedAtT&& value) {
120 m_updatedAtHasBeenSet = true;
121 m_updatedAt = std::forward<UpdatedAtT>(value);
122 }
123 template <typename UpdatedAtT = Aws::Utils::DateTime>
125 SetUpdatedAt(std::forward<UpdatedAtT>(value));
126 return *this;
127 }
129
131
141 inline ConfigurationPolicyAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
142 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
144 m_associationStatusHasBeenSet = true;
145 m_associationStatus = value;
146 }
152
154
158 inline const Aws::String& GetAssociationStatusMessage() const { return m_associationStatusMessage; }
159 inline bool AssociationStatusMessageHasBeenSet() const { return m_associationStatusMessageHasBeenSet; }
160 template <typename AssociationStatusMessageT = Aws::String>
161 void SetAssociationStatusMessage(AssociationStatusMessageT&& value) {
162 m_associationStatusMessageHasBeenSet = true;
163 m_associationStatusMessage = std::forward<AssociationStatusMessageT>(value);
164 }
165 template <typename AssociationStatusMessageT = Aws::String>
167 SetAssociationStatusMessage(std::forward<AssociationStatusMessageT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_configurationPolicyId;
173
174 Aws::String m_targetId;
175
176 TargetType m_targetType{TargetType::NOT_SET};
177
178 AssociationType m_associationType{AssociationType::NOT_SET};
179
180 Aws::Utils::DateTime m_updatedAt{};
181
183
184 Aws::String m_associationStatusMessage;
185 bool m_configurationPolicyIdHasBeenSet = false;
186 bool m_targetIdHasBeenSet = false;
187 bool m_targetTypeHasBeenSet = false;
188 bool m_associationTypeHasBeenSet = false;
189 bool m_updatedAtHasBeenSet = false;
190 bool m_associationStatusHasBeenSet = false;
191 bool m_associationStatusMessageHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace SecurityHub
196} // namespace Aws
AWS_SECURITYHUB_API ConfigurationPolicyAssociationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationPolicyAssociationSummary & WithAssociationType(AssociationType value)
ConfigurationPolicyAssociationSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API ConfigurationPolicyAssociationSummary(Aws::Utils::Json::JsonView jsonValue)
ConfigurationPolicyAssociationSummary & WithTargetId(TargetIdT &&value)
ConfigurationPolicyAssociationSummary & WithAssociationStatusMessage(AssociationStatusMessageT &&value)
ConfigurationPolicyAssociationSummary & WithAssociationStatus(ConfigurationPolicyAssociationStatus value)
ConfigurationPolicyAssociationSummary & WithTargetType(TargetType value)
ConfigurationPolicyAssociationSummary & WithConfigurationPolicyId(ConfigurationPolicyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue