AWS SDK for C++  1.9.39
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 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
58  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 
65  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 
72  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 
79  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 
86  inline Attribute& WithName(const Aws::String& value) { SetName(value); return *this;}
87 
93  inline Attribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
94 
100  inline Attribute& WithName(const char* value) { SetName(value); return *this;}
101 
102 
110  inline const Aws::String& GetValue() const{ return m_value; }
111 
119  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
120 
128  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
129 
137  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
138 
146  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
147 
155  inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
156 
164  inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
165 
173  inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
174 
175 
181  inline const TargetType& GetTargetType() const{ return m_targetType; }
182 
188  inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
189 
195  inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
196 
202  inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
203 
209  inline Attribute& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
210 
216  inline Attribute& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
217 
218 
223  inline const Aws::String& GetTargetId() const{ return m_targetId; }
224 
229  inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
230 
235  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
236 
241  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
242 
247  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
248 
253  inline Attribute& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
254 
259  inline Attribute& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
260 
265  inline Attribute& WithTargetId(const char* value) { SetTargetId(value); return *this;}
266 
267  private:
268 
269  Aws::String m_name;
270  bool m_nameHasBeenSet;
271 
272  Aws::String m_value;
273  bool m_valueHasBeenSet;
274 
275  TargetType m_targetType;
276  bool m_targetTypeHasBeenSet;
277 
278  Aws::String m_targetId;
279  bool m_targetIdHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace ECS
284 } // namespace Aws
Aws::ECS::Model::Attribute::WithTargetId
Attribute & WithTargetId(const Aws::String &value)
Definition: Attribute.h:253
Aws::ECS::Model::Attribute::Attribute
Attribute(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Attribute::SetTargetId
void SetTargetId(const char *value)
Definition: Attribute.h:247
Aws::ECS::Model::Attribute::TargetTypeHasBeenSet
bool TargetTypeHasBeenSet() const
Definition: Attribute.h:188
Aws::ECS::Model::Attribute::SetTargetType
void SetTargetType(const TargetType &value)
Definition: Attribute.h:195
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:229
Aws::ECS::Model::Attribute::SetValue
void SetValue(Aws::String &&value)
Definition: Attribute.h:137
Aws::ECS::Model::Attribute::WithTargetId
Attribute & WithTargetId(const char *value)
Definition: Attribute.h:265
Aws::ECS::Model::Attribute::SetValue
void SetValue(const Aws::String &value)
Definition: Attribute.h:128
Aws::ECS::Model::Attribute::WithTargetType
Attribute & WithTargetType(const TargetType &value)
Definition: Attribute.h:209
Aws::ECS::Model::Attribute::GetValue
const Aws::String & GetValue() const
Definition: Attribute.h:110
Aws::ECS::Model::Attribute::SetName
void SetName(Aws::String &&value)
Definition: Attribute.h:72
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:164
Aws::ECS::Model::Attribute::SetName
void SetName(const char *value)
Definition: Attribute.h:79
Aws::ECS::Model::Attribute::GetName
const Aws::String & GetName() const
Definition: Attribute.h:51
TargetType.h
Aws::ECS::Model::Attribute::GetTargetType
const TargetType & GetTargetType() const
Definition: Attribute.h:181
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::Attribute::WithValue
Attribute & WithValue(const char *value)
Definition: Attribute.h:173
Aws::ECS::Model::Attribute::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Attribute.h:119
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:65
Aws::ECS::Model::Attribute::WithValue
Attribute & WithValue(const Aws::String &value)
Definition: Attribute.h:155
Aws::ECS::Model::Attribute::GetTargetId
const Aws::String & GetTargetId() const
Definition: Attribute.h:223
Aws::ECS::Model::Attribute::SetTargetId
void SetTargetId(const Aws::String &value)
Definition: Attribute.h:235
Aws::ECS::Model::Attribute::WithName
Attribute & WithName(const Aws::String &value)
Definition: Attribute.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Attribute::SetTargetType
void SetTargetType(TargetType &&value)
Definition: Attribute.h:202
Aws::ECS::Model::Attribute::SetTargetId
void SetTargetId(Aws::String &&value)
Definition: Attribute.h:241
Aws::ECS::Model::Attribute::SetValue
void SetValue(const char *value)
Definition: Attribute.h:146
Aws::ECS::Model::Attribute::WithName
Attribute & WithName(Aws::String &&value)
Definition: Attribute.h:93
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:58
Aws::ECS::Model::TargetType
TargetType
Definition: TargetType.h:17
Aws::ECS::Model::Attribute::WithName
Attribute & WithName(const char *value)
Definition: Attribute.h:100
Aws::ECS::Model::Attribute::WithTargetId
Attribute & WithTargetId(Aws::String &&value)
Definition: Attribute.h:259
ECS_EXPORTS.h
Aws::ECS::Model::Attribute::WithTargetType
Attribute & WithTargetType(TargetType &&value)
Definition: Attribute.h:216
Aws::ECS::Model::Attribute::Attribute
Attribute()