AWS SDK for C++  1.8.95
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();
40  TagRef& operator=(Aws::Utils::Json::JsonView jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
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
void SetKey(Aws::String &&value)
Definition: TagRef.h:66
void SetValue(Aws::String &&value)
Definition: TagRef.h:115
TagRef & WithKey(Aws::String &&value)
Definition: TagRef.h:84
bool KeyHasBeenSet() const
Definition: TagRef.h:54
TagRef & WithValue(const char *value)
Definition: TagRef.h:139
void SetKey(const Aws::String &value)
Definition: TagRef.h:60
void SetValue(const char *value)
Definition: TagRef.h:121
TagRef & WithValue(Aws::String &&value)
Definition: TagRef.h:133
TagRef & WithKey(const char *value)
Definition: TagRef.h:90
TagRef & WithKey(const Aws::String &value)
Definition: TagRef.h:78
const Aws::String & GetValue() const
Definition: TagRef.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
bool ValueHasBeenSet() const
Definition: TagRef.h:103
void SetKey(const char *value)
Definition: TagRef.h:72
#define AWS_APPMESH_API
void SetValue(const Aws::String &value)
Definition: TagRef.h:109
TagRef & WithValue(const Aws::String &value)
Definition: TagRef.h:127
const Aws::String & GetKey() const
Definition: TagRef.h:48