AWS SDK for C++  1.9.156
AWS SDK for C++
Attribute.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace Model
25 {
26 
38  {
39  public:
44 
45 
52  inline const Aws::String& GetName() const{ return m_name; }
53 
60  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 
68  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 
76  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 
84  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
85 
92  inline Attribute& WithName(const Aws::String& value) { SetName(value); return *this;}
93 
100  inline Attribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
101 
108  inline Attribute& WithName(const char* value) { SetName(value); return *this;}
109 
110 
118  inline const Aws::String& GetValue() const{ return m_value; }
119 
127  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
128 
136  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
137 
145  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
146 
154  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
155 
163  inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
164 
172  inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
173 
181  inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
182 
183 
189  inline const TargetType& GetTargetType() const{ return m_targetType; }
190 
196  inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
197 
203  inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
204 
210  inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
211 
217  inline Attribute& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
218 
224  inline Attribute& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
225 
226 
231  inline const Aws::String& GetTargetId() const{ return m_targetId; }
232 
237  inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
238 
243  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
244 
249  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
250 
255  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
256 
261  inline Attribute& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
262 
267  inline Attribute& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
268 
273  inline Attribute& WithTargetId(const char* value) { SetTargetId(value); return *this;}
274 
275  private:
276 
277  Aws::String m_name;
278  bool m_nameHasBeenSet;
279 
280  Aws::String m_value;
281  bool m_valueHasBeenSet;
282 
283  TargetType m_targetType;
284  bool m_targetTypeHasBeenSet;
285 
286  Aws::String m_targetId;
287  bool m_targetIdHasBeenSet;
288  };
289 
290 } // namespace Model
291 } // namespace ECS
292 } // namespace Aws
Aws::ECS::Model::Attribute::WithTargetId
Attribute & WithTargetId(const Aws::String &value)
Definition: Attribute.h:261
Aws::ECS::Model::Attribute::Attribute
Attribute(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Attribute::SetTargetId
void SetTargetId(const char *value)
Definition: Attribute.h:255
Aws::ECS::Model::Attribute::TargetTypeHasBeenSet
bool TargetTypeHasBeenSet() const
Definition: Attribute.h:196
Aws::ECS::Model::Attribute::SetTargetType
void SetTargetType(const TargetType &value)
Definition: Attribute.h:203
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Attribute::operator=
Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Attribute::TargetIdHasBeenSet
bool TargetIdHasBeenSet() const
Definition: Attribute.h:237
Aws::ECS::Model::Attribute::SetValue
void SetValue(Aws::String &&value)
Definition: Attribute.h:145
Aws::ECS::Model::Attribute::WithTargetId
Attribute & WithTargetId(const char *value)
Definition: Attribute.h:273
Aws::ECS::Model::Attribute::SetValue
void SetValue(const Aws::String &value)
Definition: Attribute.h:136
Aws::ECS::Model::Attribute::WithTargetType
Attribute & WithTargetType(const TargetType &value)
Definition: Attribute.h:217
Aws::ECS::Model::Attribute::GetValue
const Aws::String & GetValue() const
Definition: Attribute.h:118
Aws::ECS::Model::Attribute::SetName
void SetName(Aws::String &&value)
Definition: Attribute.h:76
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Attribute::WithValue
Attribute & WithValue(Aws::String &&value)
Definition: Attribute.h:172
Aws::ECS::Model::Attribute::SetName
void SetName(const char *value)
Definition: Attribute.h:84
Aws::ECS::Model::Attribute::GetName
const Aws::String & GetName() const
Definition: Attribute.h:52
TargetType.h
Aws::ECS::Model::Attribute::GetTargetType
const TargetType & GetTargetType() const
Definition: Attribute.h:189
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::Attribute::WithValue
Attribute & WithValue(const char *value)
Definition: Attribute.h:181
Aws::ECS::Model::Attribute::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Attribute.h:127
Aws::ECS::Model::Attribute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Attribute::SetName
void SetName(const Aws::String &value)
Definition: Attribute.h:68
Aws::ECS::Model::Attribute::WithValue
Attribute & WithValue(const Aws::String &value)
Definition: Attribute.h:163
Aws::ECS::Model::Attribute::GetTargetId
const Aws::String & GetTargetId() const
Definition: Attribute.h:231
Aws::ECS::Model::Attribute::SetTargetId
void SetTargetId(const Aws::String &value)
Definition: Attribute.h:243
Aws::ECS::Model::Attribute::WithName
Attribute & WithName(const Aws::String &value)
Definition: Attribute.h:92
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Attribute::SetTargetType
void SetTargetType(TargetType &&value)
Definition: Attribute.h:210
Aws::ECS::Model::Attribute::SetTargetId
void SetTargetId(Aws::String &&value)
Definition: Attribute.h:249
Aws::ECS::Model::Attribute::SetValue
void SetValue(const char *value)
Definition: Attribute.h:154
Aws::ECS::Model::Attribute::WithName
Attribute & WithName(Aws::String &&value)
Definition: Attribute.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::Attribute
Definition: Attribute.h:38
Aws::ECS::Model::Attribute::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Attribute.h:60
Aws::ECS::Model::TargetType
TargetType
Definition: TargetType.h:17
Aws::ECS::Model::Attribute::WithName
Attribute & WithName(const char *value)
Definition: Attribute.h:108
Aws::ECS::Model::Attribute::WithTargetId
Attribute & WithTargetId(Aws::String &&value)
Definition: Attribute.h:267
ECS_EXPORTS.h
Aws::ECS::Model::Attribute::WithTargetType
Attribute & WithTargetType(TargetType &&value)
Definition: Attribute.h:224
Aws::ECS::Model::Attribute::Attribute
Attribute()