AWS SDK for C++  1.9.66
AWS SDK for C++
CreatePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Organizations
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreatePolicy"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
45  inline const Aws::String& GetContent() const{ return m_content; }
46 
52  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
53 
59  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
60 
66  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
67 
73  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
74 
80  inline CreatePolicyRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
81 
87  inline CreatePolicyRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
88 
94  inline CreatePolicyRequest& WithContent(const char* value) { SetContent(value); return *this;}
95 
96 
100  inline const Aws::String& GetDescription() const{ return m_description; }
101 
105  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 
110  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
111 
115  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
116 
120  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
121 
125  inline CreatePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
126 
130  inline CreatePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
131 
135  inline CreatePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
136 
137 
144  inline const Aws::String& GetName() const{ return m_name; }
145 
152  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
153 
160  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
161 
168  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
169 
176  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
177 
184  inline CreatePolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
185 
192  inline CreatePolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
193 
200  inline CreatePolicyRequest& WithName(const char* value) { SetName(value); return *this;}
201 
202 
215  inline const PolicyType& GetType() const{ return m_type; }
216 
229  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
230 
243  inline void SetType(const PolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
244 
257  inline void SetType(PolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
258 
271  inline CreatePolicyRequest& WithType(const PolicyType& value) { SetType(value); return *this;}
272 
285  inline CreatePolicyRequest& WithType(PolicyType&& value) { SetType(std::move(value)); return *this;}
286 
287 
299  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
300 
312  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
313 
325  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
326 
338  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
339 
351  inline CreatePolicyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
352 
364  inline CreatePolicyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
365 
377  inline CreatePolicyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
378 
390  inline CreatePolicyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
391 
392  private:
393 
394  Aws::String m_content;
395  bool m_contentHasBeenSet;
396 
397  Aws::String m_description;
398  bool m_descriptionHasBeenSet;
399 
400  Aws::String m_name;
401  bool m_nameHasBeenSet;
402 
403  PolicyType m_type;
404  bool m_typeHasBeenSet;
405 
406  Aws::Vector<Tag> m_tags;
407  bool m_tagsHasBeenSet;
408  };
409 
410 } // namespace Model
411 } // namespace Organizations
412 } // namespace Aws
Aws::Organizations::Model::CreatePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::CreatePolicyRequest::GetContent
const Aws::String & GetContent() const
Definition: CreatePolicyRequest.h:45
Aws::Organizations::Model::CreatePolicyRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreatePolicyRequest.h:105
Aws::Organizations::Model::CreatePolicyRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreatePolicyRequest.h:312
Aws::Organizations::Model::CreatePolicyRequest::SetName
void SetName(Aws::String &&value)
Definition: CreatePolicyRequest.h:168
Aws::Organizations::Model::CreatePolicyRequest::WithDescription
CreatePolicyRequest & WithDescription(const char *value)
Definition: CreatePolicyRequest.h:135
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::CreatePolicyRequest::SetContent
void SetContent(Aws::String &&value)
Definition: CreatePolicyRequest.h:66
Aws::Organizations::Model::CreatePolicyRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreatePolicyRequest.h:229
Aws::Organizations::Model::CreatePolicyRequest::GetType
const PolicyType & GetType() const
Definition: CreatePolicyRequest.h:215
Aws::Organizations::Model::CreatePolicyRequest::SetContent
void SetContent(const Aws::String &value)
Definition: CreatePolicyRequest.h:59
Aws::Organizations::Model::CreatePolicyRequest::WithTags
CreatePolicyRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreatePolicyRequest.h:351
Aws::Organizations::Model::CreatePolicyRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreatePolicyRequest.h:115
Aws::Organizations::Model::CreatePolicyRequest::WithContent
CreatePolicyRequest & WithContent(Aws::String &&value)
Definition: CreatePolicyRequest.h:87
Aws::Organizations::Model::CreatePolicyRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreatePolicyRequest.h:325
Aws::Organizations::Model::CreatePolicyRequest::GetName
const Aws::String & GetName() const
Definition: CreatePolicyRequest.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
PolicyType.h
Aws::Organizations::Model::CreatePolicyRequest::AddTags
CreatePolicyRequest & AddTags(const Tag &value)
Definition: CreatePolicyRequest.h:377
Aws::Organizations::Model::CreatePolicyRequest::AddTags
CreatePolicyRequest & AddTags(Tag &&value)
Definition: CreatePolicyRequest.h:390
AWSVector.h
Aws::Organizations::Model::CreatePolicyRequest::SetType
void SetType(const PolicyType &value)
Definition: CreatePolicyRequest.h:243
Aws::Organizations::Model::CreatePolicyRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreatePolicyRequest.h:110
Aws::Organizations::Model::CreatePolicyRequest::WithName
CreatePolicyRequest & WithName(Aws::String &&value)
Definition: CreatePolicyRequest.h:192
Aws::Organizations::Model::CreatePolicyRequest::SetName
void SetName(const char *value)
Definition: CreatePolicyRequest.h:176
Aws::Organizations::Model::CreatePolicyRequest::WithDescription
CreatePolicyRequest & WithDescription(Aws::String &&value)
Definition: CreatePolicyRequest.h:130
Aws::Organizations::Model::CreatePolicyRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreatePolicyRequest.h:299
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::CreatePolicyRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: CreatePolicyRequest.h:52
Aws::Organizations::Model::PolicyType
PolicyType
Definition: PolicyType.h:17
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::CreatePolicyRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreatePolicyRequest.h:338
Aws::Organizations::Model::CreatePolicyRequest::WithName
CreatePolicyRequest & WithName(const Aws::String &value)
Definition: CreatePolicyRequest.h:184
AWSString.h
Aws::Organizations::Model::CreatePolicyRequest::WithContent
CreatePolicyRequest & WithContent(const Aws::String &value)
Definition: CreatePolicyRequest.h:80
Aws::Organizations::Model::CreatePolicyRequest::WithName
CreatePolicyRequest & WithName(const char *value)
Definition: CreatePolicyRequest.h:200
Aws::Organizations::Model::CreatePolicyRequest::WithTags
CreatePolicyRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreatePolicyRequest.h:364
Aws::Organizations::Model::CreatePolicyRequest::WithContent
CreatePolicyRequest & WithContent(const char *value)
Definition: CreatePolicyRequest.h:94
Aws::Organizations::Model::CreatePolicyRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreatePolicyRequest.h:100
Aws::Organizations::Model::CreatePolicyRequest::CreatePolicyRequest
CreatePolicyRequest()
Aws::Organizations::Model::CreatePolicyRequest::WithDescription
CreatePolicyRequest & WithDescription(const Aws::String &value)
Definition: CreatePolicyRequest.h:125
Aws::Organizations::Model::CreatePolicyRequest::SetDescription
void SetDescription(const char *value)
Definition: CreatePolicyRequest.h:120
Tag.h
Aws::Organizations::Model::CreatePolicyRequest::WithType
CreatePolicyRequest & WithType(const PolicyType &value)
Definition: CreatePolicyRequest.h:271
Aws::Organizations::Model::CreatePolicyRequest::SetName
void SetName(const Aws::String &value)
Definition: CreatePolicyRequest.h:160
Aws::Organizations::Model::Tag
Definition: Tag.h:36
Aws::Organizations::Model::CreatePolicyRequest::SetContent
void SetContent(const char *value)
Definition: CreatePolicyRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::CreatePolicyRequest
Definition: CreatePolicyRequest.h:25
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::CreatePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::CreatePolicyRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreatePolicyRequest.h:152
Aws::Organizations::Model::CreatePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePolicyRequest.h:33
Aws::Organizations::Model::CreatePolicyRequest::SetType
void SetType(PolicyType &&value)
Definition: CreatePolicyRequest.h:257
Aws::Organizations::Model::CreatePolicyRequest::WithType
CreatePolicyRequest & WithType(PolicyType &&value)
Definition: CreatePolicyRequest.h:285
OrganizationsRequest.h