AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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 }
106 SetAssociationType(value);
107 return *this;
108 }
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
135 inline ConfigurationPolicyAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
136 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
138 m_associationStatusHasBeenSet = true;
139 m_associationStatus = value;
140 }
143 return *this;
144 }
146
148
152 inline const Aws::String& GetAssociationStatusMessage() const { return m_associationStatusMessage; }
153 inline bool AssociationStatusMessageHasBeenSet() const { return m_associationStatusMessageHasBeenSet; }
154 template <typename AssociationStatusMessageT = Aws::String>
155 void SetAssociationStatusMessage(AssociationStatusMessageT&& value) {
156 m_associationStatusMessageHasBeenSet = true;
157 m_associationStatusMessage = std::forward<AssociationStatusMessageT>(value);
158 }
159 template <typename AssociationStatusMessageT = Aws::String>
161 SetAssociationStatusMessage(std::forward<AssociationStatusMessageT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_configurationPolicyId;
167
168 Aws::String m_targetId;
169
170 TargetType m_targetType{TargetType::NOT_SET};
171
172 AssociationType m_associationType{AssociationType::NOT_SET};
173
174 Aws::Utils::DateTime m_updatedAt{};
175
177
178 Aws::String m_associationStatusMessage;
179 bool m_configurationPolicyIdHasBeenSet = false;
180 bool m_targetIdHasBeenSet = false;
181 bool m_targetTypeHasBeenSet = false;
182 bool m_associationTypeHasBeenSet = false;
183 bool m_updatedAtHasBeenSet = false;
184 bool m_associationStatusHasBeenSet = false;
185 bool m_associationStatusMessageHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace SecurityHub
190} // 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