AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename BucketNameT = Aws::String>
50 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
51 template<typename BucketNameT = Aws::String>
52 CreateBucketRequest& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
54
56
65 inline const Aws::String& GetBundleId() const { return m_bundleId; }
66 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
67 template<typename BundleIdT = Aws::String>
68 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
69 template<typename BundleIdT = Aws::String>
70 CreateBucketRequest& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
72
74
80 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template<typename TagsT = Aws::Vector<Tag>>
83 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
84 template<typename TagsT = Aws::Vector<Tag>>
85 CreateBucketRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
86 template<typename TagsT = Tag>
87 CreateBucketRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
89
91
98 inline bool GetEnableObjectVersioning() const { return m_enableObjectVersioning; }
99 inline bool EnableObjectVersioningHasBeenSet() const { return m_enableObjectVersioningHasBeenSet; }
100 inline void SetEnableObjectVersioning(bool value) { m_enableObjectVersioningHasBeenSet = true; m_enableObjectVersioning = value; }
103 private:
104
105 Aws::String m_bucketName;
106 bool m_bucketNameHasBeenSet = false;
107
108 Aws::String m_bundleId;
109 bool m_bundleIdHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113
114 bool m_enableObjectVersioning{false};
115 bool m_enableObjectVersioningHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Lightsail
120} // 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