AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
AffectedEntity.h
1
6#pragma once
7#include <aws/health/Health_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/health/model/EntityStatusCode.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Health
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_HEALTH_API AffectedEntity() = default;
39 AWS_HEALTH_API AffectedEntity(Aws::Utils::Json::JsonView jsonValue);
41 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::String& GetEntityArn() const { return m_entityArn; }
53 inline bool EntityArnHasBeenSet() const { return m_entityArnHasBeenSet; }
54 template<typename EntityArnT = Aws::String>
55 void SetEntityArn(EntityArnT&& value) { m_entityArnHasBeenSet = true; m_entityArn = std::forward<EntityArnT>(value); }
56 template<typename EntityArnT = Aws::String>
57 AffectedEntity& WithEntityArn(EntityArnT&& value) { SetEntityArn(std::forward<EntityArnT>(value)); return *this;}
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) { m_eventArnHasBeenSet = true; m_eventArn = std::forward<EventArnT>(value); }
73 template<typename EventArnT = Aws::String>
74 AffectedEntity& WithEventArn(EventArnT&& value) { SetEventArn(std::forward<EventArnT>(value)); return *this;}
76
78
81 inline const Aws::String& GetEntityValue() const { return m_entityValue; }
82 inline bool EntityValueHasBeenSet() const { return m_entityValueHasBeenSet; }
83 template<typename EntityValueT = Aws::String>
84 void SetEntityValue(EntityValueT&& value) { m_entityValueHasBeenSet = true; m_entityValue = std::forward<EntityValueT>(value); }
85 template<typename EntityValueT = Aws::String>
86 AffectedEntity& WithEntityValue(EntityValueT&& value) { SetEntityValue(std::forward<EntityValueT>(value)); return *this;}
88
90
93 inline const Aws::String& GetEntityUrl() const { return m_entityUrl; }
94 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
95 template<typename EntityUrlT = Aws::String>
96 void SetEntityUrl(EntityUrlT&& value) { m_entityUrlHasBeenSet = true; m_entityUrl = std::forward<EntityUrlT>(value); }
97 template<typename EntityUrlT = Aws::String>
98 AffectedEntity& WithEntityUrl(EntityUrlT&& value) { SetEntityUrl(std::forward<EntityUrlT>(value)); return *this;}
100
102
106 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
107 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
108 template<typename AwsAccountIdT = Aws::String>
109 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
110 template<typename AwsAccountIdT = Aws::String>
111 AffectedEntity& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
119 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
120 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
121 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
122 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
123 AffectedEntity& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
125
127
132 inline EntityStatusCode GetStatusCode() const { return m_statusCode; }
133 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
134 inline void SetStatusCode(EntityStatusCode value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
135 inline AffectedEntity& WithStatusCode(EntityStatusCode value) { SetStatusCode(value); return *this;}
137
139
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 AffectedEntity& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
150 AffectedEntity& AddTags(TagsKeyT&& key, TagsValueT&& value) {
151 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
152 }
154
156
159 inline const Aws::Map<Aws::String, Aws::String>& GetEntityMetadata() const { return m_entityMetadata; }
160 inline bool EntityMetadataHasBeenSet() const { return m_entityMetadataHasBeenSet; }
161 template<typename EntityMetadataT = Aws::Map<Aws::String, Aws::String>>
162 void SetEntityMetadata(EntityMetadataT&& value) { m_entityMetadataHasBeenSet = true; m_entityMetadata = std::forward<EntityMetadataT>(value); }
163 template<typename EntityMetadataT = Aws::Map<Aws::String, Aws::String>>
164 AffectedEntity& WithEntityMetadata(EntityMetadataT&& value) { SetEntityMetadata(std::forward<EntityMetadataT>(value)); return *this;}
165 template<typename EntityMetadataKeyT = Aws::String, typename EntityMetadataValueT = Aws::String>
166 AffectedEntity& AddEntityMetadata(EntityMetadataKeyT&& key, EntityMetadataValueT&& value) {
167 m_entityMetadataHasBeenSet = true; m_entityMetadata.emplace(std::forward<EntityMetadataKeyT>(key), std::forward<EntityMetadataValueT>(value)); return *this;
168 }
170 private:
171
172 Aws::String m_entityArn;
173 bool m_entityArnHasBeenSet = false;
174
175 Aws::String m_eventArn;
176 bool m_eventArnHasBeenSet = false;
177
178 Aws::String m_entityValue;
179 bool m_entityValueHasBeenSet = false;
180
181 Aws::String m_entityUrl;
182 bool m_entityUrlHasBeenSet = false;
183
184 Aws::String m_awsAccountId;
185 bool m_awsAccountIdHasBeenSet = false;
186
187 Aws::Utils::DateTime m_lastUpdatedTime{};
188 bool m_lastUpdatedTimeHasBeenSet = false;
189
191 bool m_statusCodeHasBeenSet = false;
192
194 bool m_tagsHasBeenSet = false;
195
196 Aws::Map<Aws::String, Aws::String> m_entityMetadata;
197 bool m_entityMetadataHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace Health
202} // 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