AWS SDK for C++  1.9.102
AWS SDK for C++
TagOptionDetail.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 ServiceCatalog
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetKey() const{ return m_key; }
44 
48  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 
53  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
54 
58  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
59 
63  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
64 
68  inline TagOptionDetail& WithKey(const Aws::String& value) { SetKey(value); return *this;}
69 
73  inline TagOptionDetail& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
74 
78  inline TagOptionDetail& WithKey(const char* value) { SetKey(value); return *this;}
79 
80 
84  inline const Aws::String& GetValue() const{ return m_value; }
85 
89  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
90 
94  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
95 
99  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
100 
104  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
105 
109  inline TagOptionDetail& WithValue(const Aws::String& value) { SetValue(value); return *this;}
110 
114  inline TagOptionDetail& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
115 
119  inline TagOptionDetail& WithValue(const char* value) { SetValue(value); return *this;}
120 
121 
125  inline bool GetActive() const{ return m_active; }
126 
130  inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
131 
135  inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
136 
140  inline TagOptionDetail& WithActive(bool value) { SetActive(value); return *this;}
141 
142 
146  inline const Aws::String& GetId() const{ return m_id; }
147 
151  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
152 
156  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
157 
161  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
162 
166  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
167 
171  inline TagOptionDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
172 
176  inline TagOptionDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
177 
181  inline TagOptionDetail& WithId(const char* value) { SetId(value); return *this;}
182 
183 
187  inline const Aws::String& GetOwner() const{ return m_owner; }
188 
192  inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
193 
197  inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
198 
202  inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
203 
207  inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
208 
212  inline TagOptionDetail& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
213 
217  inline TagOptionDetail& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
218 
222  inline TagOptionDetail& WithOwner(const char* value) { SetOwner(value); return *this;}
223 
224  private:
225 
226  Aws::String m_key;
227  bool m_keyHasBeenSet;
228 
229  Aws::String m_value;
230  bool m_valueHasBeenSet;
231 
232  bool m_active;
233  bool m_activeHasBeenSet;
234 
235  Aws::String m_id;
236  bool m_idHasBeenSet;
237 
238  Aws::String m_owner;
239  bool m_ownerHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace ServiceCatalog
244 } // namespace Aws
Aws::ServiceCatalog::Model::TagOptionDetail::SetKey
void SetKey(const char *value)
Definition: TagOptionDetail.h:63
Aws::ServiceCatalog::Model::TagOptionDetail::TagOptionDetail
TagOptionDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceCatalog::Model::TagOptionDetail::WithOwner
TagOptionDetail & WithOwner(const Aws::String &value)
Definition: TagOptionDetail.h:212
Aws::ServiceCatalog::Model::TagOptionDetail
Definition: TagOptionDetail.h:32
Aws::ServiceCatalog::Model::TagOptionDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceCatalog::Model::TagOptionDetail::SetKey
void SetKey(Aws::String &&value)
Definition: TagOptionDetail.h:58
Aws::ServiceCatalog::Model::TagOptionDetail::SetKey
void SetKey(const Aws::String &value)
Definition: TagOptionDetail.h:53
Aws::ServiceCatalog::Model::TagOptionDetail::SetValue
void SetValue(const char *value)
Definition: TagOptionDetail.h:104
Aws::ServiceCatalog::Model::TagOptionDetail::GetOwner
const Aws::String & GetOwner() const
Definition: TagOptionDetail.h:187
Aws::ServiceCatalog::Model::TagOptionDetail::GetId
const Aws::String & GetId() const
Definition: TagOptionDetail.h:146
Aws::ServiceCatalog::Model::TagOptionDetail::WithValue
TagOptionDetail & WithValue(const char *value)
Definition: TagOptionDetail.h:119
Aws::ServiceCatalog::Model::TagOptionDetail::SetId
void SetId(const Aws::String &value)
Definition: TagOptionDetail.h:156
Aws::ServiceCatalog::Model::TagOptionDetail::ActiveHasBeenSet
bool ActiveHasBeenSet() const
Definition: TagOptionDetail.h:130
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::TagOptionDetail::GetKey
const Aws::String & GetKey() const
Definition: TagOptionDetail.h:43
Aws::ServiceCatalog::Model::TagOptionDetail::WithKey
TagOptionDetail & WithKey(Aws::String &&value)
Definition: TagOptionDetail.h:73
Aws::ServiceCatalog::Model::TagOptionDetail::GetActive
bool GetActive() const
Definition: TagOptionDetail.h:125
Aws::ServiceCatalog::Model::TagOptionDetail::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: TagOptionDetail.h:48
Aws::ServiceCatalog::Model::TagOptionDetail::WithValue
TagOptionDetail & WithValue(Aws::String &&value)
Definition: TagOptionDetail.h:114
Aws::ServiceCatalog::Model::TagOptionDetail::WithId
TagOptionDetail & WithId(const Aws::String &value)
Definition: TagOptionDetail.h:171
Aws::ServiceCatalog::Model::TagOptionDetail::WithValue
TagOptionDetail & WithValue(const Aws::String &value)
Definition: TagOptionDetail.h:109
Aws::ServiceCatalog::Model::TagOptionDetail::SetId
void SetId(Aws::String &&value)
Definition: TagOptionDetail.h:161
Aws::ServiceCatalog::Model::TagOptionDetail::SetId
void SetId(const char *value)
Definition: TagOptionDetail.h:166
Aws::ServiceCatalog::Model::TagOptionDetail::WithId
TagOptionDetail & WithId(const char *value)
Definition: TagOptionDetail.h:181
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ServiceCatalog::Model::TagOptionDetail::WithKey
TagOptionDetail & WithKey(const Aws::String &value)
Definition: TagOptionDetail.h:68
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceCatalog::Model::TagOptionDetail::GetValue
const Aws::String & GetValue() const
Definition: TagOptionDetail.h:84
Aws::ServiceCatalog::Model::TagOptionDetail::operator=
TagOptionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceCatalog::Model::TagOptionDetail::WithKey
TagOptionDetail & WithKey(const char *value)
Definition: TagOptionDetail.h:78
Aws::ServiceCatalog::Model::TagOptionDetail::SetActive
void SetActive(bool value)
Definition: TagOptionDetail.h:135
Aws::ServiceCatalog::Model::TagOptionDetail::WithOwner
TagOptionDetail & WithOwner(const char *value)
Definition: TagOptionDetail.h:222
Aws::ServiceCatalog::Model::TagOptionDetail::WithOwner
TagOptionDetail & WithOwner(Aws::String &&value)
Definition: TagOptionDetail.h:217
Aws::ServiceCatalog::Model::TagOptionDetail::WithActive
TagOptionDetail & WithActive(bool value)
Definition: TagOptionDetail.h:140
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::TagOptionDetail::IdHasBeenSet
bool IdHasBeenSet() const
Definition: TagOptionDetail.h:151
Aws::ServiceCatalog::Model::TagOptionDetail::TagOptionDetail
TagOptionDetail()
Aws::ServiceCatalog::Model::TagOptionDetail::SetValue
void SetValue(const Aws::String &value)
Definition: TagOptionDetail.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::TagOptionDetail::WithId
TagOptionDetail & WithId(Aws::String &&value)
Definition: TagOptionDetail.h:176
Aws::ServiceCatalog::Model::TagOptionDetail::SetOwner
void SetOwner(const char *value)
Definition: TagOptionDetail.h:207
Aws::ServiceCatalog::Model::TagOptionDetail::SetOwner
void SetOwner(Aws::String &&value)
Definition: TagOptionDetail.h:202
Aws::ServiceCatalog::Model::TagOptionDetail::SetValue
void SetValue(Aws::String &&value)
Definition: TagOptionDetail.h:99
Aws::ServiceCatalog::Model::TagOptionDetail::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: TagOptionDetail.h:89
Aws::ServiceCatalog::Model::TagOptionDetail::SetOwner
void SetOwner(const Aws::String &value)
Definition: TagOptionDetail.h:197
Aws::ServiceCatalog::Model::TagOptionDetail::OwnerHasBeenSet
bool OwnerHasBeenSet() const
Definition: TagOptionDetail.h:192