AWS SDK for C++  1.9.14
AWS SDK for C++
AwsCloudMapInstanceAttribute.h
Go to the documentation of this file.
1 
6 #pragma once
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 AppMesh
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetKey() const{ return m_key; }
47 
52  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 
58  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
59 
64  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
65 
70  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
71 
76  inline AwsCloudMapInstanceAttribute& WithKey(const Aws::String& value) { SetKey(value); return *this;}
77 
82  inline AwsCloudMapInstanceAttribute& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
83 
88  inline AwsCloudMapInstanceAttribute& WithKey(const char* value) { SetKey(value); return *this;}
89 
90 
95  inline const Aws::String& GetValue() const{ return m_value; }
96 
101  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
102 
107  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
108 
113  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
114 
119  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
120 
125  inline AwsCloudMapInstanceAttribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
126 
131  inline AwsCloudMapInstanceAttribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
132 
137  inline AwsCloudMapInstanceAttribute& WithValue(const char* value) { SetValue(value); return *this;}
138 
139  private:
140 
141  Aws::String m_key;
142  bool m_keyHasBeenSet;
143 
144  Aws::String m_value;
145  bool m_valueHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace AppMesh
150 } // namespace Aws
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: AwsCloudMapInstanceAttribute.h:52
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::SetValue
void SetValue(Aws::String &&value)
Definition: AwsCloudMapInstanceAttribute.h:113
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: AwsCloudMapInstanceAttribute.h:101
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute
Definition: AwsCloudMapInstanceAttribute.h:34
AppMesh_EXPORTS.h
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::GetKey
const Aws::String & GetKey() const
Definition: AwsCloudMapInstanceAttribute.h:46
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::SetKey
void SetKey(const char *value)
Definition: AwsCloudMapInstanceAttribute.h:70
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::SetValue
void SetValue(const Aws::String &value)
Definition: AwsCloudMapInstanceAttribute.h:107
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::AwsCloudMapInstanceAttribute
AwsCloudMapInstanceAttribute(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::SetKey
void SetKey(Aws::String &&value)
Definition: AwsCloudMapInstanceAttribute.h:64
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::SetValue
void SetValue(const char *value)
Definition: AwsCloudMapInstanceAttribute.h:119
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSString.h
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::WithValue
AwsCloudMapInstanceAttribute & WithValue(Aws::String &&value)
Definition: AwsCloudMapInstanceAttribute.h:131
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::WithValue
AwsCloudMapInstanceAttribute & WithValue(const char *value)
Definition: AwsCloudMapInstanceAttribute.h:137
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::operator=
AwsCloudMapInstanceAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::AwsCloudMapInstanceAttribute
AwsCloudMapInstanceAttribute()
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::WithKey
AwsCloudMapInstanceAttribute & WithKey(const Aws::String &value)
Definition: AwsCloudMapInstanceAttribute.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::WithValue
AwsCloudMapInstanceAttribute & WithValue(const Aws::String &value)
Definition: AwsCloudMapInstanceAttribute.h:125
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::WithKey
AwsCloudMapInstanceAttribute & WithKey(Aws::String &&value)
Definition: AwsCloudMapInstanceAttribute.h:82
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::SetKey
void SetKey(const Aws::String &value)
Definition: AwsCloudMapInstanceAttribute.h:58
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::GetValue
const Aws::String & GetValue() const
Definition: AwsCloudMapInstanceAttribute.h:95
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute::WithKey
AwsCloudMapInstanceAttribute & WithKey(const char *value)
Definition: AwsCloudMapInstanceAttribute.h:88