AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
CreateAccessPointRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/VpcConfiguration.h>
11#include <aws/s3control/model/PublicAccessBlockConfiguration.h>
12#include <aws/s3control/model/Scope.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/s3control/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace S3Control
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_S3CONTROL_API CreateAccessPointRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessPoint"; }
36
37 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
38
40
44 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
45
47
51 inline const Aws::String& GetAccountId() const { return m_accountId; }
52 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
53 template<typename AccountIdT = Aws::String>
54 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
55 template<typename AccountIdT = Aws::String>
56 CreateAccessPointRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
58
60
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 CreateAccessPointRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77
79
92 inline const Aws::String& GetBucket() const { return m_bucket; }
93 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
94 template<typename BucketT = Aws::String>
95 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
96 template<typename BucketT = Aws::String>
97 CreateAccessPointRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
99
101
107 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
108 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
109 template<typename VpcConfigurationT = VpcConfiguration>
110 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
111 template<typename VpcConfigurationT = VpcConfiguration>
112 CreateAccessPointRequest& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
114
116
120 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
121 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
122 template<typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
123 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value); }
124 template<typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
125 CreateAccessPointRequest& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) { SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value)); return *this;}
127
129
137 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
138 inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; }
139 template<typename BucketAccountIdT = Aws::String>
140 void SetBucketAccountId(BucketAccountIdT&& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = std::forward<BucketAccountIdT>(value); }
141 template<typename BucketAccountIdT = Aws::String>
142 CreateAccessPointRequest& WithBucketAccountId(BucketAccountIdT&& value) { SetBucketAccountId(std::forward<BucketAccountIdT>(value)); return *this;}
144
146
154 inline const Scope& GetScope() const { return m_scope; }
155 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
156 template<typename ScopeT = Scope>
157 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
158 template<typename ScopeT = Scope>
159 CreateAccessPointRequest& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
161
163
176 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
177 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 template<typename TagsT = Aws::Vector<Tag>>
179 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
180 template<typename TagsT = Aws::Vector<Tag>>
181 CreateAccessPointRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
182 template<typename TagsT = Tag>
183 CreateAccessPointRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
185 private:
186
187 Aws::String m_accountId;
188 bool m_accountIdHasBeenSet = false;
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
193 Aws::String m_bucket;
194 bool m_bucketHasBeenSet = false;
195
196 VpcConfiguration m_vpcConfiguration;
197 bool m_vpcConfigurationHasBeenSet = false;
198
199 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
200 bool m_publicAccessBlockConfigurationHasBeenSet = false;
201
202 Aws::String m_bucketAccountId;
203 bool m_bucketAccountIdHasBeenSet = false;
204
205 Scope m_scope;
206 bool m_scopeHasBeenSet = false;
207
208 Aws::Vector<Tag> m_tags;
209 bool m_tagsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace S3Control
214} // namespace Aws
CreateAccessPointRequest & WithVpcConfiguration(VpcConfigurationT &&value)
CreateAccessPointRequest & WithBucket(BucketT &&value)
CreateAccessPointRequest & WithName(NameT &&value)
CreateAccessPointRequest & WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
CreateAccessPointRequest & WithBucketAccountId(BucketAccountIdT &&value)
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAccessPointRequest & WithTags(TagsT &&value)
CreateAccessPointRequest & WithAccountId(AccountIdT &&value)
CreateAccessPointRequest & AddTags(TagsT &&value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API CreateAccessPointRequest()=default
virtual const char * GetServiceRequestName() const override
CreateAccessPointRequest & WithScope(ScopeT &&value)
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector