AWS SDK for C++  1.9.73
AWS SDK for C++
KeyValuePair.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
74  inline KeyValuePair& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
80  inline KeyValuePair& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 
86  inline KeyValuePair& WithName(const char* value) { SetName(value); return *this;}
87 
88 
93  inline const Aws::String& GetValue() const{ return m_value; }
94 
99  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
100 
105  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
106 
111  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
112 
117  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
118 
123  inline KeyValuePair& WithValue(const Aws::String& value) { SetValue(value); return *this;}
124 
129  inline KeyValuePair& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
130 
135  inline KeyValuePair& WithValue(const char* value) { SetValue(value); return *this;}
136 
137  private:
138 
139  Aws::String m_name;
140  bool m_nameHasBeenSet;
141 
142  Aws::String m_value;
143  bool m_valueHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace ECS
148 } // namespace Aws
Aws::ECS::Model::KeyValuePair::WithName
KeyValuePair & WithName(Aws::String &&value)
Definition: KeyValuePair.h:80
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::KeyValuePair::operator=
KeyValuePair & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::KeyValuePair::SetValue
void SetValue(const char *value)
Definition: KeyValuePair.h:117
Aws::ECS::Model::KeyValuePair::SetName
void SetName(const Aws::String &value)
Definition: KeyValuePair.h:56
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::KeyValuePair::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::KeyValuePair::NameHasBeenSet
bool NameHasBeenSet() const
Definition: KeyValuePair.h:50
Aws::ECS::Model::KeyValuePair::KeyValuePair
KeyValuePair()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::KeyValuePair::SetValue
void SetValue(Aws::String &&value)
Definition: KeyValuePair.h:111
Aws::ECS::Model::KeyValuePair::SetName
void SetName(const char *value)
Definition: KeyValuePair.h:68
Aws::ECS::Model::KeyValuePair
Definition: KeyValuePair.h:32
Aws::ECS::Model::KeyValuePair::KeyValuePair
KeyValuePair(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::KeyValuePair::GetValue
const Aws::String & GetValue() const
Definition: KeyValuePair.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::KeyValuePair::SetValue
void SetValue(const Aws::String &value)
Definition: KeyValuePair.h:105
Aws::ECS::Model::KeyValuePair::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: KeyValuePair.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::KeyValuePair::WithValue
KeyValuePair & WithValue(Aws::String &&value)
Definition: KeyValuePair.h:129
Aws::ECS::Model::KeyValuePair::WithValue
KeyValuePair & WithValue(const Aws::String &value)
Definition: KeyValuePair.h:123
Aws::ECS::Model::KeyValuePair::WithName
KeyValuePair & WithName(const char *value)
Definition: KeyValuePair.h:86
Aws::ECS::Model::KeyValuePair::WithValue
KeyValuePair & WithValue(const char *value)
Definition: KeyValuePair.h:135
Aws::ECS::Model::KeyValuePair::GetName
const Aws::String & GetName() const
Definition: KeyValuePair.h:44
ECS_EXPORTS.h
Aws::ECS::Model::KeyValuePair::WithName
KeyValuePair & WithName(const Aws::String &value)
Definition: KeyValuePair.h:74
Aws::ECS::Model::KeyValuePair::SetName
void SetName(Aws::String &&value)
Definition: KeyValuePair.h:62