AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AffectedEntity.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/health/Health_EXPORTS.h>
11#include <aws/health/model/EntityStatusCode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Health {
23namespace Model {
24
32 public:
33 AWS_HEALTH_API AffectedEntity() = default;
34 AWS_HEALTH_API AffectedEntity(Aws::Utils::Json::JsonView jsonValue);
36 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::String& GetEntityArn() const { return m_entityArn; }
47 inline bool EntityArnHasBeenSet() const { return m_entityArnHasBeenSet; }
48 template <typename EntityArnT = Aws::String>
49 void SetEntityArn(EntityArnT&& value) {
50 m_entityArnHasBeenSet = true;
51 m_entityArn = std::forward<EntityArnT>(value);
52 }
53 template <typename EntityArnT = Aws::String>
54 AffectedEntity& WithEntityArn(EntityArnT&& value) {
55 SetEntityArn(std::forward<EntityArnT>(value));
56 return *this;
57 }
59
61
69 inline const Aws::String& GetEventArn() const { return m_eventArn; }
70 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
71 template <typename EventArnT = Aws::String>
72 void SetEventArn(EventArnT&& value) {
73 m_eventArnHasBeenSet = true;
74 m_eventArn = std::forward<EventArnT>(value);
75 }
76 template <typename EventArnT = Aws::String>
77 AffectedEntity& WithEventArn(EventArnT&& value) {
78 SetEventArn(std::forward<EventArnT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetEntityValue() const { return m_entityValue; }
88 inline bool EntityValueHasBeenSet() const { return m_entityValueHasBeenSet; }
89 template <typename EntityValueT = Aws::String>
90 void SetEntityValue(EntityValueT&& value) {
91 m_entityValueHasBeenSet = true;
92 m_entityValue = std::forward<EntityValueT>(value);
93 }
94 template <typename EntityValueT = Aws::String>
95 AffectedEntity& WithEntityValue(EntityValueT&& value) {
96 SetEntityValue(std::forward<EntityValueT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetEntityUrl() const { return m_entityUrl; }
106 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
107 template <typename EntityUrlT = Aws::String>
108 void SetEntityUrl(EntityUrlT&& value) {
109 m_entityUrlHasBeenSet = true;
110 m_entityUrl = std::forward<EntityUrlT>(value);
111 }
112 template <typename EntityUrlT = Aws::String>
113 AffectedEntity& WithEntityUrl(EntityUrlT&& value) {
114 SetEntityUrl(std::forward<EntityUrlT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
125 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
126 template <typename AwsAccountIdT = Aws::String>
127 void SetAwsAccountId(AwsAccountIdT&& value) {
128 m_awsAccountIdHasBeenSet = true;
129 m_awsAccountId = std::forward<AwsAccountIdT>(value);
130 }
131 template <typename AwsAccountIdT = Aws::String>
132 AffectedEntity& WithAwsAccountId(AwsAccountIdT&& value) {
133 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
143 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
144 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
145 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
146 m_lastUpdatedTimeHasBeenSet = true;
147 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
148 }
149 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
150 AffectedEntity& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
151 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
152 return *this;
153 }
155
157
162 inline EntityStatusCode GetStatusCode() const { return m_statusCode; }
163 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
164 inline void SetStatusCode(EntityStatusCode value) {
165 m_statusCodeHasBeenSet = true;
166 m_statusCode = value;
167 }
169 SetStatusCode(value);
170 return *this;
171 }
173
175
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 void SetTags(TagsT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags = std::forward<TagsT>(value);
185 }
186 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 AffectedEntity& WithTags(TagsT&& value) {
188 SetTags(std::forward<TagsT>(value));
189 return *this;
190 }
191 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
192 AffectedEntity& AddTags(TagsKeyT&& key, TagsValueT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Map<Aws::String, Aws::String>& GetEntityMetadata() const { return m_entityMetadata; }
204 inline bool EntityMetadataHasBeenSet() const { return m_entityMetadataHasBeenSet; }
205 template <typename EntityMetadataT = Aws::Map<Aws::String, Aws::String>>
206 void SetEntityMetadata(EntityMetadataT&& value) {
207 m_entityMetadataHasBeenSet = true;
208 m_entityMetadata = std::forward<EntityMetadataT>(value);
209 }
210 template <typename EntityMetadataT = Aws::Map<Aws::String, Aws::String>>
211 AffectedEntity& WithEntityMetadata(EntityMetadataT&& value) {
212 SetEntityMetadata(std::forward<EntityMetadataT>(value));
213 return *this;
214 }
215 template <typename EntityMetadataKeyT = Aws::String, typename EntityMetadataValueT = Aws::String>
216 AffectedEntity& AddEntityMetadata(EntityMetadataKeyT&& key, EntityMetadataValueT&& value) {
217 m_entityMetadataHasBeenSet = true;
218 m_entityMetadata.emplace(std::forward<EntityMetadataKeyT>(key), std::forward<EntityMetadataValueT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_entityArn;
224
225 Aws::String m_eventArn;
226
227 Aws::String m_entityValue;
228
229 Aws::String m_entityUrl;
230
231 Aws::String m_awsAccountId;
232
233 Aws::Utils::DateTime m_lastUpdatedTime{};
234
236
238
239 Aws::Map<Aws::String, Aws::String> m_entityMetadata;
240 bool m_entityArnHasBeenSet = false;
241 bool m_eventArnHasBeenSet = false;
242 bool m_entityValueHasBeenSet = false;
243 bool m_entityUrlHasBeenSet = false;
244 bool m_awsAccountIdHasBeenSet = false;
245 bool m_lastUpdatedTimeHasBeenSet = false;
246 bool m_statusCodeHasBeenSet = false;
247 bool m_tagsHasBeenSet = false;
248 bool m_entityMetadataHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace Health
253} // namespace Aws
AffectedEntity & WithTags(TagsT &&value)
AWS_HEALTH_API AffectedEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTH_API AffectedEntity(Aws::Utils::Json::JsonView jsonValue)
AffectedEntity & WithEntityValue(EntityValueT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
EntityStatusCode GetStatusCode() const
void SetEntityValue(EntityValueT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AffectedEntity & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetEventArn(EventArnT &&value)
const Aws::String & GetAwsAccountId() const
const Aws::Map< Aws::String, Aws::String > & GetEntityMetadata() const
AffectedEntity & WithStatusCode(EntityStatusCode value)
void SetEntityUrl(EntityUrlT &&value)
AffectedEntity & WithEventArn(EventArnT &&value)
const Aws::String & GetEntityValue() const
const Aws::String & GetEntityArn() const
void SetEntityMetadata(EntityMetadataT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AffectedEntity & WithAwsAccountId(AwsAccountIdT &&value)
void SetStatusCode(EntityStatusCode value)
const Aws::String & GetEventArn() const
AffectedEntity & WithEntityArn(EntityArnT &&value)
void SetEntityArn(EntityArnT &&value)
AffectedEntity & WithEntityUrl(EntityUrlT &&value)
void SetAwsAccountId(AwsAccountIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AffectedEntity & WithEntityMetadata(EntityMetadataT &&value)
AffectedEntity & AddEntityMetadata(EntityMetadataKeyT &&key, EntityMetadataValueT &&value)
AffectedEntity & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_HEALTH_API AffectedEntity()=default
const Aws::String & GetEntityUrl() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue