AWS SDK for C++  1.9.109
AWS SDK for C++
CreateBucketRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Lightsail
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateBucket"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
46  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
47 
55  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
56 
64  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
65 
73  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
74 
82  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
83 
91  inline CreateBucketRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
92 
100  inline CreateBucketRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
101 
109  inline CreateBucketRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
110 
111 
119  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
120 
128  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
129 
137  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
138 
146  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
147 
155  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
156 
164  inline CreateBucketRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
165 
173  inline CreateBucketRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
174 
182  inline CreateBucketRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
183 
184 
189  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
190 
195  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
196 
201  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
202 
207  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
208 
213  inline CreateBucketRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
214 
219  inline CreateBucketRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
220 
225  inline CreateBucketRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
226 
231  inline CreateBucketRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
232 
233 
241  inline bool GetEnableObjectVersioning() const{ return m_enableObjectVersioning; }
242 
250  inline bool EnableObjectVersioningHasBeenSet() const { return m_enableObjectVersioningHasBeenSet; }
251 
259  inline void SetEnableObjectVersioning(bool value) { m_enableObjectVersioningHasBeenSet = true; m_enableObjectVersioning = value; }
260 
268  inline CreateBucketRequest& WithEnableObjectVersioning(bool value) { SetEnableObjectVersioning(value); return *this;}
269 
270  private:
271 
272  Aws::String m_bucketName;
273  bool m_bucketNameHasBeenSet;
274 
275  Aws::String m_bundleId;
276  bool m_bundleIdHasBeenSet;
277 
278  Aws::Vector<Tag> m_tags;
279  bool m_tagsHasBeenSet;
280 
281  bool m_enableObjectVersioning;
282  bool m_enableObjectVersioningHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace Lightsail
287 } // namespace Aws
Aws::Lightsail::Model::CreateBucketRequest::GetBucketName
const Aws::String & GetBucketName() const
Definition: CreateBucketRequest.h:46
Aws::Lightsail::Model::CreateBucketRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateBucketRequest::SetEnableObjectVersioning
void SetEnableObjectVersioning(bool value)
Definition: CreateBucketRequest.h:259
Aws::Lightsail::Model::CreateBucketRequest::SetBundleId
void SetBundleId(const char *value)
Definition: CreateBucketRequest.h:155
Aws::Lightsail::Model::CreateBucketRequest::WithTags
CreateBucketRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateBucketRequest.h:213
Aws::Lightsail::Model::CreateBucketRequest::WithBundleId
CreateBucketRequest & WithBundleId(const char *value)
Definition: CreateBucketRequest.h:182
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::CreateBucketRequest::AddTags
CreateBucketRequest & AddTags(const Tag &value)
Definition: CreateBucketRequest.h:225
Aws::Lightsail::Model::CreateBucketRequest::AddTags
CreateBucketRequest & AddTags(Tag &&value)
Definition: CreateBucketRequest.h:231
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::CreateBucketRequest::GetEnableObjectVersioning
bool GetEnableObjectVersioning() const
Definition: CreateBucketRequest.h:241
Aws::Lightsail::Model::CreateBucketRequest::WithBundleId
CreateBucketRequest & WithBundleId(Aws::String &&value)
Definition: CreateBucketRequest.h:173
Aws::Lightsail::Model::CreateBucketRequest::BundleIdHasBeenSet
bool BundleIdHasBeenSet() const
Definition: CreateBucketRequest.h:128
Aws::Lightsail::Model::CreateBucketRequest::SetBucketName
void SetBucketName(const char *value)
Definition: CreateBucketRequest.h:82
Aws::Lightsail::Model::CreateBucketRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateBucketRequest.h:195
Aws::Lightsail::Model::CreateBucketRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateBucketRequest.h:189
Tag.h
Aws::Lightsail::Model::CreateBucketRequest::GetBundleId
const Aws::String & GetBundleId() const
Definition: CreateBucketRequest.h:119
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CreateBucketRequest::CreateBucketRequest
CreateBucketRequest()
Aws::Lightsail::Model::CreateBucketRequest::WithBucketName
CreateBucketRequest & WithBucketName(const char *value)
Definition: CreateBucketRequest.h:109
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::CreateBucketRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateBucketRequest.h:201
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateBucketRequest::WithBucketName
CreateBucketRequest & WithBucketName(Aws::String &&value)
Definition: CreateBucketRequest.h:100
Aws::Lightsail::Model::CreateBucketRequest::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: CreateBucketRequest.h:73
Aws::Lightsail::Model::CreateBucketRequest::WithBucketName
CreateBucketRequest & WithBucketName(const Aws::String &value)
Definition: CreateBucketRequest.h:91
Aws::Lightsail::Model::CreateBucketRequest::SetBundleId
void SetBundleId(const Aws::String &value)
Definition: CreateBucketRequest.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateBucketRequest::SetBundleId
void SetBundleId(Aws::String &&value)
Definition: CreateBucketRequest.h:146
Aws::Lightsail::Model::CreateBucketRequest::WithEnableObjectVersioning
CreateBucketRequest & WithEnableObjectVersioning(bool value)
Definition: CreateBucketRequest.h:268
Aws::Lightsail::Model::CreateBucketRequest::WithTags
CreateBucketRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateBucketRequest.h:219
Aws::Lightsail::Model::CreateBucketRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateBucketRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateBucketRequest.h:207
Aws::Lightsail::Model::CreateBucketRequest::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: CreateBucketRequest.h:55
Aws::Lightsail::Model::CreateBucketRequest::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: CreateBucketRequest.h:64
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateBucketRequest
Definition: CreateBucketRequest.h:24
Aws::Lightsail::Model::CreateBucketRequest::EnableObjectVersioningHasBeenSet
bool EnableObjectVersioningHasBeenSet() const
Definition: CreateBucketRequest.h:250
Aws::Lightsail::Model::CreateBucketRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateBucketRequest.h:32
Aws::Lightsail::Model::CreateBucketRequest::WithBundleId
CreateBucketRequest & WithBundleId(const Aws::String &value)
Definition: CreateBucketRequest.h:164