AWS SDK for C++  1.8.182
AWS SDK for C++
GetAccessPointPolicyStatusRequest.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 "GetAccessPointPolicyStatus"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetAccountId() const{ return m_accountId; }
41 
45  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 
50  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 
55  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
56 
60  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
61 
65  inline GetAccessPointPolicyStatusRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
66 
70  inline GetAccessPointPolicyStatusRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
71 
75  inline GetAccessPointPolicyStatusRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
76 
77 
81  inline const Aws::String& GetName() const{ return m_name; }
82 
86  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 
91  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97 
101  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 
106  inline GetAccessPointPolicyStatusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
111  inline GetAccessPointPolicyStatusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
112 
116  inline GetAccessPointPolicyStatusRequest& WithName(const char* value) { SetName(value); return *this;}
117 
118  private:
119 
120  Aws::String m_accountId;
121  bool m_accountIdHasBeenSet;
122 
123  Aws::String m_name;
124  bool m_nameHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace S3Control
129 } // namespace Aws
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GetAccessPointPolicyStatusRequest.h:86
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::WithName
GetAccessPointPolicyStatusRequest & WithName(Aws::String &&value)
Definition: GetAccessPointPolicyStatusRequest.h:111
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::SetName
void SetName(const Aws::String &value)
Definition: GetAccessPointPolicyStatusRequest.h:91
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: GetAccessPointPolicyStatusRequest.h:50
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::GetAccessPointPolicyStatusRequest
GetAccessPointPolicyStatusRequest()
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: GetAccessPointPolicyStatusRequest.h:55
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::WithName
GetAccessPointPolicyStatusRequest & WithName(const char *value)
Definition: GetAccessPointPolicyStatusRequest.h:116
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: GetAccessPointPolicyStatusRequest.h:45
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::WithAccountId
GetAccessPointPolicyStatusRequest & WithAccountId(Aws::String &&value)
Definition: GetAccessPointPolicyStatusRequest.h:70
S3Control_EXPORTS.h
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAccessPointPolicyStatusRequest.h:30
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::SetName
void SetName(const char *value)
Definition: GetAccessPointPolicyStatusRequest.h:101
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest
Definition: GetAccessPointPolicyStatusRequest.h:22
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::WithAccountId
GetAccessPointPolicyStatusRequest & WithAccountId(const char *value)
Definition: GetAccessPointPolicyStatusRequest.h:75
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::SetName
void SetName(Aws::String &&value)
Definition: GetAccessPointPolicyStatusRequest.h:96
AWSString.h
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::GetName
const Aws::String & GetName() const
Definition: GetAccessPointPolicyStatusRequest.h:81
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::WithAccountId
GetAccessPointPolicyStatusRequest & WithAccountId(const Aws::String &value)
Definition: GetAccessPointPolicyStatusRequest.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::SetAccountId
void SetAccountId(const char *value)
Definition: GetAccessPointPolicyStatusRequest.h:60
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: GetAccessPointPolicyStatusRequest.h:40
Aws::S3Control::Model::GetAccessPointPolicyStatusRequest::WithName
GetAccessPointPolicyStatusRequest & WithName(const Aws::String &value)
Definition: GetAccessPointPolicyStatusRequest.h:106