AWS SDK for C++  1.8.127
AWS SDK for C++
PutPublicAccessBlockRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace S3Control
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutPublicAccessBlock"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const{ return m_publicAccessBlockConfiguration; }
43 
48  inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
49 
54  inline void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = value; }
55 
60  inline void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::move(value); }
61 
66  inline PutPublicAccessBlockRequest& WithPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { SetPublicAccessBlockConfiguration(value); return *this;}
67 
72  inline PutPublicAccessBlockRequest& WithPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { SetPublicAccessBlockConfiguration(std::move(value)); return *this;}
73 
74 
79  inline const Aws::String& GetAccountId() const{ return m_accountId; }
80 
85  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
86 
91  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
92 
97  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
98 
103  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
104 
109  inline PutPublicAccessBlockRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
110 
115  inline PutPublicAccessBlockRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
116 
121  inline PutPublicAccessBlockRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
122 
123  private:
124 
125  PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
126  bool m_publicAccessBlockConfigurationHasBeenSet;
127 
128  Aws::String m_accountId;
129  bool m_accountIdHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace S3Control
134 } // namespace Aws
Aws::S3Control::Model::PutPublicAccessBlockRequest::SetAccountId
void SetAccountId(const char *value)
Definition: PutPublicAccessBlockRequest.h:103
Aws::S3Control::Model::PutPublicAccessBlockRequest::SetPublicAccessBlockConfiguration
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
Definition: PutPublicAccessBlockRequest.h:60
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::S3Control::Model::PutPublicAccessBlockRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::PutPublicAccessBlockRequest::PutPublicAccessBlockRequest
PutPublicAccessBlockRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::PutPublicAccessBlockRequest::WithPublicAccessBlockConfiguration
PutPublicAccessBlockRequest & WithPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
Definition: PutPublicAccessBlockRequest.h:66
Aws::S3Control::Model::PutPublicAccessBlockRequest::WithAccountId
PutPublicAccessBlockRequest & WithAccountId(const Aws::String &value)
Definition: PutPublicAccessBlockRequest.h:109
Aws::S3Control::Model::PutPublicAccessBlockRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: PutPublicAccessBlockRequest.h:85
Aws::S3Control::Model::PutPublicAccessBlockRequest::GetPublicAccessBlockConfiguration
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
Definition: PutPublicAccessBlockRequest.h:42
Aws::S3Control::Model::PutPublicAccessBlockRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutPublicAccessBlockRequest.h:31
S3Control_EXPORTS.h
Aws::S3Control::Model::PutPublicAccessBlockRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: PutPublicAccessBlockRequest.h:91
Aws::S3Control::Model::PutPublicAccessBlockRequest
Definition: PutPublicAccessBlockRequest.h:23
Aws::S3Control::Model::PutPublicAccessBlockRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::PublicAccessBlockConfiguration
Definition: PublicAccessBlockConfiguration.h:36
AWSString.h
Aws::S3Control::Model::PutPublicAccessBlockRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: PutPublicAccessBlockRequest.h:97
PublicAccessBlockConfiguration.h
Aws::S3Control::Model::PutPublicAccessBlockRequest::WithPublicAccessBlockConfiguration
PutPublicAccessBlockRequest & WithPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
Definition: PutPublicAccessBlockRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::PutPublicAccessBlockRequest::SetPublicAccessBlockConfiguration
void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
Definition: PutPublicAccessBlockRequest.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::PutPublicAccessBlockRequest::WithAccountId
PutPublicAccessBlockRequest & WithAccountId(const char *value)
Definition: PutPublicAccessBlockRequest.h:121
S3ControlRequest.h
Aws::S3Control::Model::PutPublicAccessBlockRequest::PublicAccessBlockConfigurationHasBeenSet
bool PublicAccessBlockConfigurationHasBeenSet() const
Definition: PutPublicAccessBlockRequest.h:48
Aws::S3Control::Model::PutPublicAccessBlockRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: PutPublicAccessBlockRequest.h:79
Aws::S3Control::Model::PutPublicAccessBlockRequest::WithAccountId
PutPublicAccessBlockRequest & WithAccountId(Aws::String &&value)
Definition: PutPublicAccessBlockRequest.h:115