AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = value; }
50 inline void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::move(value); }
54
56
60 inline const Aws::String& GetAccountId() const{ return m_accountId; }
61 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
62 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
63 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
64 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
65 inline PutPublicAccessBlockRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
66 inline PutPublicAccessBlockRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
67 inline PutPublicAccessBlockRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
69 private:
70
71 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
72 bool m_publicAccessBlockConfigurationHasBeenSet = false;
73
74 Aws::String m_accountId;
75 bool m_accountIdHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace S3Control
80} // namespace Aws
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
PutPublicAccessBlockRequest & WithAccountId(Aws::String &&value)
void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutPublicAccessBlockRequest & WithAccountId(const char *value)
PutPublicAccessBlockRequest & WithPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
PutPublicAccessBlockRequest & WithAccountId(const Aws::String &value)
PutPublicAccessBlockRequest & WithPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String