AWS SDK for C++  1.9.128
AWS SDK for C++
TagRef.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 
36  {
37  public:
38  TagRef();
42 
43 
48  inline const Aws::String& GetKey() const{ return m_key; }
49 
54  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
55 
60  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
61 
66  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
67 
72  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
73 
78  inline TagRef& WithKey(const Aws::String& value) { SetKey(value); return *this;}
79 
84  inline TagRef& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
85 
90  inline TagRef& WithKey(const char* value) { SetKey(value); return *this;}
91 
92 
97  inline const Aws::String& GetValue() const{ return m_value; }
98 
103  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
104 
109  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
110 
115  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
116 
121  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
122 
127  inline TagRef& WithValue(const Aws::String& value) { SetValue(value); return *this;}
128 
133  inline TagRef& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
134 
139  inline TagRef& WithValue(const char* value) { SetValue(value); return *this;}
140 
141  private:
142 
143  Aws::String m_key;
144  bool m_keyHasBeenSet;
145 
146  Aws::String m_value;
147  bool m_valueHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace AppMesh
152 } // namespace Aws
Aws::AppMesh::Model::TagRef::SetValue
void SetValue(Aws::String &&value)
Definition: TagRef.h:115
Aws::AppMesh::Model::TagRef::SetKey
void SetKey(const char *value)
Definition: TagRef.h:72
Aws::AppMesh::Model::TagRef::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::TagRef
Definition: TagRef.h:36
Aws::AppMesh::Model::TagRef::SetValue
void SetValue(const Aws::String &value)
Definition: TagRef.h:109
Aws::AppMesh::Model::TagRef::SetValue
void SetValue(const char *value)
Definition: TagRef.h:121
Aws::AppMesh::Model::TagRef::SetKey
void SetKey(Aws::String &&value)
Definition: TagRef.h:66
AppMesh_EXPORTS.h
Aws::AppMesh::Model::TagRef::TagRef
TagRef()
Aws::AppMesh::Model::TagRef::WithValue
TagRef & WithValue(Aws::String &&value)
Definition: TagRef.h:133
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::TagRef::WithValue
TagRef & WithValue(const char *value)
Definition: TagRef.h:139
Aws::AppMesh::Model::TagRef::TagRef
TagRef(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::TagRef::SetKey
void SetKey(const Aws::String &value)
Definition: TagRef.h:60
Aws::AppMesh::Model::TagRef::GetValue
const Aws::String & GetValue() const
Definition: TagRef.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::TagRef::WithKey
TagRef & WithKey(Aws::String &&value)
Definition: TagRef.h:84
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::TagRef::WithKey
TagRef & WithKey(const char *value)
Definition: TagRef.h:90
Aws::AppMesh::Model::TagRef::operator=
TagRef & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::TagRef::WithValue
TagRef & WithValue(const Aws::String &value)
Definition: TagRef.h:127
Aws::AppMesh::Model::TagRef::WithKey
TagRef & WithKey(const Aws::String &value)
Definition: TagRef.h:78
Aws::AppMesh::Model::TagRef::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: TagRef.h:103
Aws::AppMesh::Model::TagRef::GetKey
const Aws::String & GetKey() const
Definition: TagRef.h:48
Aws::AppMesh::Model::TagRef::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: TagRef.h:54
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28