AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutPublicAccessBlockRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/model/PublicAccessBlockConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace S3Control
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_S3CONTROL_API PutPublicAccessBlockRequest() = default;
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_S3CONTROL_API Aws::String SerializePayload() const override;
34
36
40 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
41
43
47 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
48 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
49 template<typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
50 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value); }
51 template<typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
52 PutPublicAccessBlockRequest& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) { SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value)); return *this;}
54
56
60 inline const Aws::String& GetAccountId() const { return m_accountId; }
61 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
62 template<typename AccountIdT = Aws::String>
63 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
64 template<typename AccountIdT = Aws::String>
65 PutPublicAccessBlockRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
67 private:
68
69 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
70 bool m_publicAccessBlockConfigurationHasBeenSet = false;
71
72 Aws::String m_accountId;
73 bool m_accountIdHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace S3Control
78} // 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