AWS SDK for C++  1.8.182
AWS SDK for C++
PutAccessPointPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace S3Control
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 "PutAccessPointPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetAccountId() const{ return m_accountId; }
42 
47  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 
53  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 
59  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
60 
65  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
66 
71  inline PutAccessPointPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
72 
77  inline PutAccessPointPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
78 
83  inline PutAccessPointPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
84 
85 
99  inline const Aws::String& GetName() const{ return m_name; }
100 
114  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
115 
129  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
130 
144  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
145 
159  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
160 
174  inline PutAccessPointPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
175 
189  inline PutAccessPointPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
190 
204  inline PutAccessPointPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
205 
206 
214  inline const Aws::String& GetPolicy() const{ return m_policy; }
215 
223  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
224 
232  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
233 
241  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
242 
250  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
251 
259  inline PutAccessPointPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
260 
268  inline PutAccessPointPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
269 
277  inline PutAccessPointPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
278 
279  private:
280 
281  Aws::String m_accountId;
282  bool m_accountIdHasBeenSet;
283 
284  Aws::String m_name;
285  bool m_nameHasBeenSet;
286 
287  Aws::String m_policy;
288  bool m_policyHasBeenSet;
289  };
290 
291 } // namespace Model
292 } // namespace S3Control
293 } // namespace Aws
Aws::S3Control::Model::PutAccessPointPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutAccessPointPolicyRequest.h:30
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: PutAccessPointPolicyRequest.h:59
Aws::S3Control::Model::PutAccessPointPolicyRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: PutAccessPointPolicyRequest.h:47
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: PutAccessPointPolicyRequest.h:232
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::PutAccessPointPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithAccountId
PutAccessPointPolicyRequest & WithAccountId(const char *value)
Definition: PutAccessPointPolicyRequest.h:83
Aws::S3Control::Model::PutAccessPointPolicyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: PutAccessPointPolicyRequest.h:223
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithName
PutAccessPointPolicyRequest & WithName(Aws::String &&value)
Definition: PutAccessPointPolicyRequest.h:189
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: PutAccessPointPolicyRequest.h:241
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetName
void SetName(const Aws::String &value)
Definition: PutAccessPointPolicyRequest.h:129
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetPolicy
void SetPolicy(const char *value)
Definition: PutAccessPointPolicyRequest.h:250
S3Control_EXPORTS.h
Aws::S3Control::Model::PutAccessPointPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithAccountId
PutAccessPointPolicyRequest & WithAccountId(const Aws::String &value)
Definition: PutAccessPointPolicyRequest.h:71
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetName
void SetName(const char *value)
Definition: PutAccessPointPolicyRequest.h:159
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithPolicy
PutAccessPointPolicyRequest & WithPolicy(const Aws::String &value)
Definition: PutAccessPointPolicyRequest.h:259
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithPolicy
PutAccessPointPolicyRequest & WithPolicy(const char *value)
Definition: PutAccessPointPolicyRequest.h:277
Aws::S3Control::Model::PutAccessPointPolicyRequest
Definition: PutAccessPointPolicyRequest.h:22
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithName
PutAccessPointPolicyRequest & WithName(const Aws::String &value)
Definition: PutAccessPointPolicyRequest.h:174
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithPolicy
PutAccessPointPolicyRequest & WithPolicy(Aws::String &&value)
Definition: PutAccessPointPolicyRequest.h:268
AWSString.h
Aws::S3Control::Model::PutAccessPointPolicyRequest::PutAccessPointPolicyRequest
PutAccessPointPolicyRequest()
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetAccountId
void SetAccountId(const char *value)
Definition: PutAccessPointPolicyRequest.h:65
Aws::S3Control::Model::PutAccessPointPolicyRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: PutAccessPointPolicyRequest.h:214
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::PutAccessPointPolicyRequest::GetName
const Aws::String & GetName() const
Definition: PutAccessPointPolicyRequest.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithName
PutAccessPointPolicyRequest & WithName(const char *value)
Definition: PutAccessPointPolicyRequest.h:204
Aws::S3Control::Model::PutAccessPointPolicyRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutAccessPointPolicyRequest.h:114
Aws::S3Control::Model::PutAccessPointPolicyRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: PutAccessPointPolicyRequest.h:41
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetName
void SetName(Aws::String &&value)
Definition: PutAccessPointPolicyRequest.h:144
Aws::S3Control::Model::PutAccessPointPolicyRequest::WithAccountId
PutAccessPointPolicyRequest & WithAccountId(Aws::String &&value)
Definition: PutAccessPointPolicyRequest.h:77
Aws::S3Control::Model::PutAccessPointPolicyRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: PutAccessPointPolicyRequest.h:53