AWS SDK for C++  1.9.109
AWS SDK for C++
UpdatePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Organizations
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdatePolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetPolicyId() const{ return m_policyId; }
44 
51  inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
52 
59  inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
60 
67  inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
68 
75  inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
76 
83  inline UpdatePolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
84 
91  inline UpdatePolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
92 
99  inline UpdatePolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
100 
101 
108  inline const Aws::String& GetName() const{ return m_name; }
109 
116  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 
124  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
125 
132  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
133 
140  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
141 
148  inline UpdatePolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
149 
156  inline UpdatePolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
157 
164  inline UpdatePolicyRequest& WithName(const char* value) { SetName(value); return *this;}
165 
166 
170  inline const Aws::String& GetDescription() const{ return m_description; }
171 
175  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
176 
180  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
181 
185  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
186 
190  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
191 
195  inline UpdatePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
196 
200  inline UpdatePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
201 
205  inline UpdatePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
206 
207 
215  inline const Aws::String& GetContent() const{ return m_content; }
216 
224  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
225 
233  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
234 
242  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
243 
251  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
252 
260  inline UpdatePolicyRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
261 
269  inline UpdatePolicyRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
270 
278  inline UpdatePolicyRequest& WithContent(const char* value) { SetContent(value); return *this;}
279 
280  private:
281 
282  Aws::String m_policyId;
283  bool m_policyIdHasBeenSet;
284 
285  Aws::String m_name;
286  bool m_nameHasBeenSet;
287 
288  Aws::String m_description;
289  bool m_descriptionHasBeenSet;
290 
291  Aws::String m_content;
292  bool m_contentHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace Organizations
297 } // namespace Aws
Aws::Organizations::Model::UpdatePolicyRequest::WithDescription
UpdatePolicyRequest & WithDescription(const char *value)
Definition: UpdatePolicyRequest.h:205
Aws::Organizations::Model::UpdatePolicyRequest::SetName
void SetName(const char *value)
Definition: UpdatePolicyRequest.h:140
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::UpdatePolicyRequest::WithPolicyId
UpdatePolicyRequest & WithPolicyId(const char *value)
Definition: UpdatePolicyRequest.h:99
Aws::Organizations::Model::UpdatePolicyRequest::WithName
UpdatePolicyRequest & WithName(const char *value)
Definition: UpdatePolicyRequest.h:164
Aws::Organizations::Model::UpdatePolicyRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdatePolicyRequest.h:116
Aws::Organizations::Model::UpdatePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::UpdatePolicyRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdatePolicyRequest.h:132
Aws::Organizations::Model::UpdatePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdatePolicyRequest.h:30
Aws::Organizations::Model::UpdatePolicyRequest::WithName
UpdatePolicyRequest & WithName(Aws::String &&value)
Definition: UpdatePolicyRequest.h:156
Aws::Organizations::Model::UpdatePolicyRequest::GetPolicyId
const Aws::String & GetPolicyId() const
Definition: UpdatePolicyRequest.h:43
Aws::Organizations::Model::UpdatePolicyRequest::WithContent
UpdatePolicyRequest & WithContent(const Aws::String &value)
Definition: UpdatePolicyRequest.h:260
Aws::Organizations::Model::UpdatePolicyRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdatePolicyRequest.h:170
Aws::Organizations::Model::UpdatePolicyRequest::WithContent
UpdatePolicyRequest & WithContent(const char *value)
Definition: UpdatePolicyRequest.h:278
Aws::Organizations::Model::UpdatePolicyRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdatePolicyRequest.h:175
Aws::Organizations::Model::UpdatePolicyRequest::UpdatePolicyRequest
UpdatePolicyRequest()
Aws::Organizations::Model::UpdatePolicyRequest::PolicyIdHasBeenSet
bool PolicyIdHasBeenSet() const
Definition: UpdatePolicyRequest.h:51
Aws::Organizations::Model::UpdatePolicyRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdatePolicyRequest.h:180
Aws::Organizations::Model::UpdatePolicyRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdatePolicyRequest.h:185
Aws::Organizations::Model::UpdatePolicyRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdatePolicyRequest.h:190
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::UpdatePolicyRequest
Definition: UpdatePolicyRequest.h:22
Aws::Organizations::Model::UpdatePolicyRequest::WithName
UpdatePolicyRequest & WithName(const Aws::String &value)
Definition: UpdatePolicyRequest.h:148
Aws::Organizations::Model::UpdatePolicyRequest::GetContent
const Aws::String & GetContent() const
Definition: UpdatePolicyRequest.h:215
Aws::Organizations::Model::UpdatePolicyRequest::SetContent
void SetContent(const Aws::String &value)
Definition: UpdatePolicyRequest.h:233
AWSString.h
Aws::Organizations::Model::UpdatePolicyRequest::SetPolicyId
void SetPolicyId(const Aws::String &value)
Definition: UpdatePolicyRequest.h:59
Aws::Organizations::Model::UpdatePolicyRequest::WithContent
UpdatePolicyRequest & WithContent(Aws::String &&value)
Definition: UpdatePolicyRequest.h:269
Aws::Organizations::Model::UpdatePolicyRequest::WithDescription
UpdatePolicyRequest & WithDescription(Aws::String &&value)
Definition: UpdatePolicyRequest.h:200
Aws::Organizations::Model::UpdatePolicyRequest::GetName
const Aws::String & GetName() const
Definition: UpdatePolicyRequest.h:108
Aws::Organizations::Model::UpdatePolicyRequest::SetContent
void SetContent(const char *value)
Definition: UpdatePolicyRequest.h:251
Aws::Organizations::Model::UpdatePolicyRequest::WithPolicyId
UpdatePolicyRequest & WithPolicyId(Aws::String &&value)
Definition: UpdatePolicyRequest.h:91
Aws::Organizations::Model::UpdatePolicyRequest::WithPolicyId
UpdatePolicyRequest & WithPolicyId(const Aws::String &value)
Definition: UpdatePolicyRequest.h:83
Aws::Organizations::Model::UpdatePolicyRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdatePolicyRequest.h:124
Aws::Organizations::Model::UpdatePolicyRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: UpdatePolicyRequest.h:224
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::UpdatePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::UpdatePolicyRequest::SetPolicyId
void SetPolicyId(Aws::String &&value)
Definition: UpdatePolicyRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::UpdatePolicyRequest::SetPolicyId
void SetPolicyId(const char *value)
Definition: UpdatePolicyRequest.h:75
Aws::Organizations::Model::UpdatePolicyRequest::WithDescription
UpdatePolicyRequest & WithDescription(const Aws::String &value)
Definition: UpdatePolicyRequest.h:195
Aws::Organizations::Model::UpdatePolicyRequest::SetContent
void SetContent(Aws::String &&value)
Definition: UpdatePolicyRequest.h:242
OrganizationsRequest.h