AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBucketConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/BucketLocationConstraint.h>
9#include <aws/s3/model/LocationInfo.h>
10#include <aws/s3/model/BucketInfo.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/s3/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace S3
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_S3_API CreateBucketConfiguration() = default;
40
41 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
58 inline BucketLocationConstraint GetLocationConstraint() const { return m_locationConstraint; }
59 inline bool LocationConstraintHasBeenSet() const { return m_locationConstraintHasBeenSet; }
60 inline void SetLocationConstraint(BucketLocationConstraint value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = value; }
63
65
75 inline const LocationInfo& GetLocation() const { return m_location; }
76 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
77 template<typename LocationT = LocationInfo>
78 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
79 template<typename LocationT = LocationInfo>
80 CreateBucketConfiguration& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
82
84
88 inline const BucketInfo& GetBucket() const { return m_bucket; }
89 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
90 template<typename BucketT = BucketInfo>
91 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
92 template<typename BucketT = BucketInfo>
93 CreateBucketConfiguration& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
95
97
105 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template<typename TagsT = Aws::Vector<Tag>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
109 template<typename TagsT = Aws::Vector<Tag>>
110 CreateBucketConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsT = Tag>
112 CreateBucketConfiguration& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
114 private:
115
117 bool m_locationConstraintHasBeenSet = false;
118
119 LocationInfo m_location;
120 bool m_locationHasBeenSet = false;
121
122 BucketInfo m_bucket;
123 bool m_bucketHasBeenSet = false;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace S3
131} // namespace Aws
CreateBucketConfiguration & WithBucket(BucketT &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CreateBucketConfiguration & WithTags(TagsT &&value)
AWS_S3_API CreateBucketConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CreateBucketConfiguration & WithLocationConstraint(BucketLocationConstraint value)
CreateBucketConfiguration & WithLocation(LocationT &&value)
CreateBucketConfiguration & AddTags(TagsT &&value)
void SetLocationConstraint(BucketLocationConstraint value)
AWS_S3_API CreateBucketConfiguration()=default
AWS_S3_API CreateBucketConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
BucketLocationConstraint GetLocationConstraint() const
std::vector< T, Aws::Allocator< T > > Vector