AWS SDK for C++  1.8.95
AWS SDK for C++
Tag.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 ACMPCA
22 {
23 namespace Model
24 {
25 
38  {
39  public:
40  Tag();
42  Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
45 
49  inline const Aws::String& GetKey() const{ return m_key; }
50 
54  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
55 
59  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
60 
64  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
65 
69  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
70 
74  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
75 
79  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
80 
84  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
85 
86 
90  inline const Aws::String& GetValue() const{ return m_value; }
91 
95  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
96 
100  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
101 
105  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
106 
110  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
111 
115  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
116 
120  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
121 
125  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
126 
127  private:
128 
129  Aws::String m_key;
130  bool m_keyHasBeenSet;
131 
132  Aws::String m_value;
133  bool m_valueHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace ACMPCA
138 } // namespace Aws
Tag & WithValue(const char *value)
Definition: Tag.h:125
void SetKey(const Aws::String &value)
Definition: Tag.h:59
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:120
bool KeyHasBeenSet() const
Definition: Tag.h:54
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:79
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:115
void SetValue(Aws::String &&value)
Definition: Tag.h:105
Tag & WithKey(const char *value)
Definition: Tag.h:84
void SetValue(const Aws::String &value)
Definition: Tag.h:100
const Aws::String & GetKey() const
Definition: Tag.h:49
bool ValueHasBeenSet() const
Definition: Tag.h:95
const Aws::String & GetValue() const
Definition: Tag.h:90
void SetKey(const char *value)
Definition: Tag.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:74
#define AWS_ACMPCA_API
void SetKey(Aws::String &&value)
Definition: Tag.h:64
void SetValue(const char *value)
Definition: Tag.h:110