AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBucketRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Lightsail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LIGHTSAIL_API CreateBucketRequest();
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
35
37
38
40
47 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
48 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
49 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
50 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
51 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
52 inline CreateBucketRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
53 inline CreateBucketRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
54 inline CreateBucketRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
56
58
67 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
68 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
69 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
70 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
71 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
72 inline CreateBucketRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
73 inline CreateBucketRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
74 inline CreateBucketRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
76
78
84 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
87 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
88 inline CreateBucketRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
89 inline CreateBucketRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
90 inline CreateBucketRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
91 inline CreateBucketRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
93
95
102 inline bool GetEnableObjectVersioning() const{ return m_enableObjectVersioning; }
103 inline bool EnableObjectVersioningHasBeenSet() const { return m_enableObjectVersioningHasBeenSet; }
104 inline void SetEnableObjectVersioning(bool value) { m_enableObjectVersioningHasBeenSet = true; m_enableObjectVersioning = value; }
107 private:
108
109 Aws::String m_bucketName;
110 bool m_bucketNameHasBeenSet = false;
111
112 Aws::String m_bundleId;
113 bool m_bundleIdHasBeenSet = false;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_tagsHasBeenSet = false;
117
118 bool m_enableObjectVersioning;
119 bool m_enableObjectVersioningHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Lightsail
124} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateBucketRequest & WithBucketName(const Aws::String &value)
CreateBucketRequest & WithBundleId(const Aws::String &value)
CreateBucketRequest & AddTags(const Tag &value)
CreateBucketRequest & WithBundleId(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateBucketRequest & WithEnableObjectVersioning(bool value)
CreateBucketRequest & WithBundleId(Aws::String &&value)
CreateBucketRequest & WithBucketName(const char *value)
CreateBucketRequest & AddTags(Tag &&value)
void SetBundleId(const Aws::String &value)
CreateBucketRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBucketRequest & WithBucketName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateBucketRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
void SetBucketName(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
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