AWS SDK for C++  1.9.106
AWS SDK for C++
PolicyTargetSummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
53  inline const Aws::String& GetTargetId() const{ return m_targetId; }
54 
66  inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
67 
79  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
80 
92  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
93 
105  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
106 
118  inline PolicyTargetSummary& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
119 
131  inline PolicyTargetSummary& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
132 
144  inline PolicyTargetSummary& WithTargetId(const char* value) { SetTargetId(value); return *this;}
145 
146 
154  inline const Aws::String& GetArn() const{ return m_arn; }
155 
163  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
164 
172  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
173 
181  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
182 
190  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
191 
199  inline PolicyTargetSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
200 
208  inline PolicyTargetSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
209 
217  inline PolicyTargetSummary& WithArn(const char* value) { SetArn(value); return *this;}
218 
219 
226  inline const Aws::String& GetName() const{ return m_name; }
227 
234  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
235 
242  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
243 
250  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
251 
258  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
259 
266  inline PolicyTargetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
267 
274  inline PolicyTargetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
275 
282  inline PolicyTargetSummary& WithName(const char* value) { SetName(value); return *this;}
283 
284 
288  inline const TargetType& GetType() const{ return m_type; }
289 
293  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
294 
298  inline void SetType(const TargetType& value) { m_typeHasBeenSet = true; m_type = value; }
299 
303  inline void SetType(TargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
304 
308  inline PolicyTargetSummary& WithType(const TargetType& value) { SetType(value); return *this;}
309 
313  inline PolicyTargetSummary& WithType(TargetType&& value) { SetType(std::move(value)); return *this;}
314 
315  private:
316 
317  Aws::String m_targetId;
318  bool m_targetIdHasBeenSet;
319 
320  Aws::String m_arn;
321  bool m_arnHasBeenSet;
322 
323  Aws::String m_name;
324  bool m_nameHasBeenSet;
325 
326  TargetType m_type;
327  bool m_typeHasBeenSet;
328  };
329 
330 } // namespace Model
331 } // namespace Organizations
332 } // namespace Aws
Aws::Organizations::Model::PolicyTargetSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::PolicyTargetSummary::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PolicyTargetSummary.h:293
Aws::Organizations::Model::PolicyTargetSummary::SetName
void SetName(Aws::String &&value)
Definition: PolicyTargetSummary.h:250
Aws::Organizations::Model::PolicyTargetSummary::WithName
PolicyTargetSummary & WithName(const char *value)
Definition: PolicyTargetSummary.h:282
Aws::Organizations::Model::PolicyTargetSummary::PolicyTargetSummary
PolicyTargetSummary()
Aws::Organizations::Model::PolicyTargetSummary::SetName
void SetName(const Aws::String &value)
Definition: PolicyTargetSummary.h:242
Aws::Organizations::Model::PolicyTargetSummary::WithName
PolicyTargetSummary & WithName(const Aws::String &value)
Definition: PolicyTargetSummary.h:266
Aws::Organizations::Model::PolicyTargetSummary::SetTargetId
void SetTargetId(Aws::String &&value)
Definition: PolicyTargetSummary.h:92
Aws::Organizations::Model::PolicyTargetSummary::SetType
void SetType(TargetType &&value)
Definition: PolicyTargetSummary.h:303
Aws::Organizations::Model::PolicyTargetSummary
Definition: PolicyTargetSummary.h:34
Aws::Organizations::Model::PolicyTargetSummary::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PolicyTargetSummary.h:234
Aws::Organizations::Model::PolicyTargetSummary::GetName
const Aws::String & GetName() const
Definition: PolicyTargetSummary.h:226
Aws::Organizations::Model::PolicyTargetSummary::WithArn
PolicyTargetSummary & WithArn(const Aws::String &value)
Definition: PolicyTargetSummary.h:199
Aws::Organizations::Model::PolicyTargetSummary::SetArn
void SetArn(Aws::String &&value)
Definition: PolicyTargetSummary.h:181
Aws::Organizations::Model::PolicyTargetSummary::GetArn
const Aws::String & GetArn() const
Definition: PolicyTargetSummary.h:154
Aws::Organizations::Model::PolicyTargetSummary::WithType
PolicyTargetSummary & WithType(TargetType &&value)
Definition: PolicyTargetSummary.h:313
Aws::Organizations::Model::PolicyTargetSummary::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: PolicyTargetSummary.h:163
Aws::Organizations::Model::PolicyTargetSummary::SetTargetId
void SetTargetId(const char *value)
Definition: PolicyTargetSummary.h:105
TargetType.h
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::PolicyTargetSummary::SetArn
void SetArn(const Aws::String &value)
Definition: PolicyTargetSummary.h:172
Aws::Organizations::Model::PolicyTargetSummary::operator=
PolicyTargetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::PolicyTargetSummary::SetType
void SetType(const TargetType &value)
Definition: PolicyTargetSummary.h:298
Aws::Organizations::Model::PolicyTargetSummary::GetTargetId
const Aws::String & GetTargetId() const
Definition: PolicyTargetSummary.h:53
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::PolicyTargetSummary::WithArn
PolicyTargetSummary & WithArn(Aws::String &&value)
Definition: PolicyTargetSummary.h:208
Aws::Organizations::Model::PolicyTargetSummary::WithTargetId
PolicyTargetSummary & WithTargetId(const char *value)
Definition: PolicyTargetSummary.h:144
Aws::Organizations::Model::PolicyTargetSummary::GetType
const TargetType & GetType() const
Definition: PolicyTargetSummary.h:288
Aws::Organizations::Model::PolicyTargetSummary::WithTargetId
PolicyTargetSummary & WithTargetId(Aws::String &&value)
Definition: PolicyTargetSummary.h:131
Aws::Organizations::Model::PolicyTargetSummary::SetTargetId
void SetTargetId(const Aws::String &value)
Definition: PolicyTargetSummary.h:79
Aws::Organizations::Model::PolicyTargetSummary::WithType
PolicyTargetSummary & WithType(const TargetType &value)
Definition: PolicyTargetSummary.h:308
Aws::Organizations::Model::PolicyTargetSummary::TargetIdHasBeenSet
bool TargetIdHasBeenSet() const
Definition: PolicyTargetSummary.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::TargetType
TargetType
Definition: TargetType.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::PolicyTargetSummary::WithTargetId
PolicyTargetSummary & WithTargetId(const Aws::String &value)
Definition: PolicyTargetSummary.h:118
Aws::Organizations::Model::PolicyTargetSummary::WithName
PolicyTargetSummary & WithName(Aws::String &&value)
Definition: PolicyTargetSummary.h:274
Aws::Organizations::Model::PolicyTargetSummary::PolicyTargetSummary
PolicyTargetSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::PolicyTargetSummary::WithArn
PolicyTargetSummary & WithArn(const char *value)
Definition: PolicyTargetSummary.h:217
Aws::Organizations::Model::PolicyTargetSummary::SetName
void SetName(const char *value)
Definition: PolicyTargetSummary.h:258
Aws::Organizations::Model::PolicyTargetSummary::SetArn
void SetArn(const char *value)
Definition: PolicyTargetSummary.h:190