AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEntityArn(const Aws::String& value) { m_entityArnHasBeenSet = true; m_entityArn = value; }
55 inline void SetEntityArn(Aws::String&& value) { m_entityArnHasBeenSet = true; m_entityArn = std::move(value); }
56 inline void SetEntityArn(const char* value) { m_entityArnHasBeenSet = true; m_entityArn.assign(value); }
57 inline AffectedEntity& WithEntityArn(const Aws::String& value) { SetEntityArn(value); return *this;}
58 inline AffectedEntity& WithEntityArn(Aws::String&& value) { SetEntityArn(std::move(value)); return *this;}
59 inline AffectedEntity& WithEntityArn(const char* value) { SetEntityArn(value); return *this;}
61
63
71 inline const Aws::String& GetEventArn() const{ return m_eventArn; }
72 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
73 inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
74 inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
75 inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
76 inline AffectedEntity& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
77 inline AffectedEntity& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
78 inline AffectedEntity& WithEventArn(const char* value) { SetEventArn(value); return *this;}
80
82
85 inline const Aws::String& GetEntityValue() const{ return m_entityValue; }
86 inline bool EntityValueHasBeenSet() const { return m_entityValueHasBeenSet; }
87 inline void SetEntityValue(const Aws::String& value) { m_entityValueHasBeenSet = true; m_entityValue = value; }
88 inline void SetEntityValue(Aws::String&& value) { m_entityValueHasBeenSet = true; m_entityValue = std::move(value); }
89 inline void SetEntityValue(const char* value) { m_entityValueHasBeenSet = true; m_entityValue.assign(value); }
90 inline AffectedEntity& WithEntityValue(const Aws::String& value) { SetEntityValue(value); return *this;}
91 inline AffectedEntity& WithEntityValue(Aws::String&& value) { SetEntityValue(std::move(value)); return *this;}
92 inline AffectedEntity& WithEntityValue(const char* value) { SetEntityValue(value); return *this;}
94
96
99 inline const Aws::String& GetEntityUrl() const{ return m_entityUrl; }
100 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
101 inline void SetEntityUrl(const Aws::String& value) { m_entityUrlHasBeenSet = true; m_entityUrl = value; }
102 inline void SetEntityUrl(Aws::String&& value) { m_entityUrlHasBeenSet = true; m_entityUrl = std::move(value); }
103 inline void SetEntityUrl(const char* value) { m_entityUrlHasBeenSet = true; m_entityUrl.assign(value); }
104 inline AffectedEntity& WithEntityUrl(const Aws::String& value) { SetEntityUrl(value); return *this;}
105 inline AffectedEntity& WithEntityUrl(Aws::String&& value) { SetEntityUrl(std::move(value)); return *this;}
106 inline AffectedEntity& WithEntityUrl(const char* value) { SetEntityUrl(value); return *this;}
108
110
114 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
115 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
116 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
117 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
118 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
119 inline AffectedEntity& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
120 inline AffectedEntity& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
121 inline AffectedEntity& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
129 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
130 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
131 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
132 inline AffectedEntity& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
133 inline AffectedEntity& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
135
137
142 inline const EntityStatusCode& GetStatusCode() const{ return m_statusCode; }
143 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
144 inline void SetStatusCode(const EntityStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
145 inline void SetStatusCode(EntityStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
146 inline AffectedEntity& WithStatusCode(const EntityStatusCode& value) { SetStatusCode(value); return *this;}
147 inline AffectedEntity& WithStatusCode(EntityStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
149
151
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
159 inline AffectedEntity& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
160 inline AffectedEntity& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
161 inline AffectedEntity& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
162 inline AffectedEntity& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
163 inline AffectedEntity& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
164 inline AffectedEntity& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
165 inline AffectedEntity& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
166 inline AffectedEntity& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
167 inline AffectedEntity& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
169 private:
170
171 Aws::String m_entityArn;
172 bool m_entityArnHasBeenSet = false;
173
174 Aws::String m_eventArn;
175 bool m_eventArnHasBeenSet = false;
176
177 Aws::String m_entityValue;
178 bool m_entityValueHasBeenSet = false;
179
180 Aws::String m_entityUrl;
181 bool m_entityUrlHasBeenSet = false;
182
183 Aws::String m_awsAccountId;
184 bool m_awsAccountIdHasBeenSet = false;
185
186 Aws::Utils::DateTime m_lastUpdatedTime;
187 bool m_lastUpdatedTimeHasBeenSet = false;
188
189 EntityStatusCode m_statusCode;
190 bool m_statusCodeHasBeenSet = false;
191
193 bool m_tagsHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace Health
198} // namespace Aws
AWS_HEALTH_API AffectedEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEntityUrl(Aws::String &&value)
AffectedEntity & AddTags(const char *key, Aws::String &&value)
void SetStatusCode(const EntityStatusCode &value)
AWS_HEALTH_API AffectedEntity(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AffectedEntity & WithEntityValue(Aws::String &&value)
void SetEntityUrl(const char *value)
AffectedEntity & WithEventArn(const char *value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetEntityArn(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AffectedEntity & WithStatusCode(const EntityStatusCode &value)
void SetEventArn(const Aws::String &value)
const Aws::String & GetAwsAccountId() const
AffectedEntity & AddTags(const Aws::String &key, Aws::String &&value)
AffectedEntity & AddTags(Aws::String &&key, const Aws::String &value)
void SetEntityArn(Aws::String &&value)
AffectedEntity & WithAwsAccountId(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AffectedEntity & WithEntityValue(const char *value)
void SetEntityArn(const char *value)
AffectedEntity & WithEntityUrl(const Aws::String &value)
AffectedEntity & AddTags(const Aws::String &key, const Aws::String &value)
AffectedEntity & WithEntityValue(const Aws::String &value)
const Aws::String & GetEntityValue() const
const Aws::String & GetEntityArn() const
AffectedEntity & WithEntityArn(const char *value)
void SetStatusCode(EntityStatusCode &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AffectedEntity & WithEntityArn(Aws::String &&value)
AffectedEntity & WithEntityUrl(Aws::String &&value)
AffectedEntity & AddTags(Aws::String &&key, const char *value)
AffectedEntity & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetEntityValue(const char *value)
AffectedEntity & AddTags(Aws::String &&key, Aws::String &&value)
void SetAwsAccountId(const char *value)
AffectedEntity & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetEntityUrl(const Aws::String &value)
AffectedEntity & WithEntityUrl(const char *value)
AffectedEntity & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
const EntityStatusCode & GetStatusCode() const
const Aws::String & GetEventArn() const
AffectedEntity & AddTags(const char *key, const char *value)
void SetAwsAccountId(const Aws::String &value)
AffectedEntity & WithAwsAccountId(const char *value)
AffectedEntity & WithEntityArn(const Aws::String &value)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
AffectedEntity & WithEventArn(const Aws::String &value)
void SetAwsAccountId(Aws::String &&value)
AffectedEntity & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetEventArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AffectedEntity & WithAwsAccountId(Aws::String &&value)
AffectedEntity & WithEventArn(Aws::String &&value)
AffectedEntity & WithStatusCode(EntityStatusCode &&value)
const Aws::String & GetEntityUrl() const
void SetEventArn(Aws::String &&value)
void SetEntityValue(const Aws::String &value)
void SetEntityValue(Aws::String &&value)
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