AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutPublicAccessBlockRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/PublicAccessBlockConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Control {
16namespace Model {
17
21 public:
22 AWS_S3CONTROL_API PutPublicAccessBlockRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutPublicAccessBlock"; }
29
30 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
31
33
37 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
38
40
44 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
45 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
46 template <typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
47 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
48 m_publicAccessBlockConfigurationHasBeenSet = true;
49 m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value);
50 }
51 template <typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
52 PutPublicAccessBlockRequest& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
53 SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetAccountId() const { return m_accountId; }
64 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
65 template <typename AccountIdT = Aws::String>
66 void SetAccountId(AccountIdT&& value) {
67 m_accountIdHasBeenSet = true;
68 m_accountId = std::forward<AccountIdT>(value);
69 }
70 template <typename AccountIdT = Aws::String>
72 SetAccountId(std::forward<AccountIdT>(value));
73 return *this;
74 }
76 private:
77 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
78
79 Aws::String m_accountId;
80 bool m_publicAccessBlockConfigurationHasBeenSet = false;
81 bool m_accountIdHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace S3Control
86} // namespace Aws
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
AWS_S3CONTROL_API PutPublicAccessBlockRequest()=default
PutPublicAccessBlockRequest & WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
PutPublicAccessBlockRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String