AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateBucketRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Lightsail {
17namespace Model {
18
22 public:
23 AWS_LIGHTSAIL_API CreateBucketRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateBucket"; }
30
31 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
32
34
36
43 inline const Aws::String& GetBucketName() const { return m_bucketName; }
44 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
45 template <typename BucketNameT = Aws::String>
46 void SetBucketName(BucketNameT&& value) {
47 m_bucketNameHasBeenSet = true;
48 m_bucketName = std::forward<BucketNameT>(value);
49 }
50 template <typename BucketNameT = Aws::String>
51 CreateBucketRequest& WithBucketName(BucketNameT&& value) {
52 SetBucketName(std::forward<BucketNameT>(value));
53 return *this;
54 }
56
58
67 inline const Aws::String& GetBundleId() const { return m_bundleId; }
68 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
69 template <typename BundleIdT = Aws::String>
70 void SetBundleId(BundleIdT&& value) {
71 m_bundleIdHasBeenSet = true;
72 m_bundleId = std::forward<BundleIdT>(value);
73 }
74 template <typename BundleIdT = Aws::String>
75 CreateBucketRequest& WithBundleId(BundleIdT&& value) {
76 SetBundleId(std::forward<BundleIdT>(value));
77 return *this;
78 }
80
82
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template <typename TagsT = Aws::Vector<Tag>>
91 void SetTags(TagsT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags = std::forward<TagsT>(value);
94 }
95 template <typename TagsT = Aws::Vector<Tag>>
96 CreateBucketRequest& WithTags(TagsT&& value) {
97 SetTags(std::forward<TagsT>(value));
98 return *this;
99 }
100 template <typename TagsT = Tag>
101 CreateBucketRequest& AddTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags.emplace_back(std::forward<TagsT>(value));
104 return *this;
105 }
107
109
116 inline bool GetEnableObjectVersioning() const { return m_enableObjectVersioning; }
117 inline bool EnableObjectVersioningHasBeenSet() const { return m_enableObjectVersioningHasBeenSet; }
118 inline void SetEnableObjectVersioning(bool value) {
119 m_enableObjectVersioningHasBeenSet = true;
120 m_enableObjectVersioning = value;
121 }
124 return *this;
125 }
127 private:
128 Aws::String m_bucketName;
129
130 Aws::String m_bundleId;
131
132 Aws::Vector<Tag> m_tags;
133
134 bool m_enableObjectVersioning{false};
135 bool m_bucketNameHasBeenSet = false;
136 bool m_bundleIdHasBeenSet = false;
137 bool m_tagsHasBeenSet = false;
138 bool m_enableObjectVersioningHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Lightsail
143} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateBucketRequest & WithTags(TagsT &&value)
CreateBucketRequest & WithBundleId(BundleIdT &&value)
CreateBucketRequest & WithEnableObjectVersioning(bool value)
CreateBucketRequest & WithBucketName(BucketNameT &&value)
CreateBucketRequest & AddTags(TagsT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API CreateBucketRequest()=default
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