AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
54 inline const BucketLocationConstraint& GetLocationConstraint() const{ return m_locationConstraint; }
55 inline bool LocationConstraintHasBeenSet() const { return m_locationConstraintHasBeenSet; }
56 inline void SetLocationConstraint(const BucketLocationConstraint& value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = value; }
57 inline void SetLocationConstraint(BucketLocationConstraint&& value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = std::move(value); }
61
63
68 inline const LocationInfo& GetLocation() const{ return m_location; }
69 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
70 inline void SetLocation(const LocationInfo& value) { m_locationHasBeenSet = true; m_location = value; }
71 inline void SetLocation(LocationInfo&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
72 inline CreateBucketConfiguration& WithLocation(const LocationInfo& value) { SetLocation(value); return *this;}
73 inline CreateBucketConfiguration& WithLocation(LocationInfo&& value) { SetLocation(std::move(value)); return *this;}
75
77
81 inline const BucketInfo& GetBucket() const{ return m_bucket; }
82 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
83 inline void SetBucket(const BucketInfo& value) { m_bucketHasBeenSet = true; m_bucket = value; }
84 inline void SetBucket(BucketInfo&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
85 inline CreateBucketConfiguration& WithBucket(const BucketInfo& value) { SetBucket(value); return *this;}
86 inline CreateBucketConfiguration& WithBucket(BucketInfo&& value) { SetBucket(std::move(value)); return *this;}
88 private:
89
90 BucketLocationConstraint m_locationConstraint;
91 bool m_locationConstraintHasBeenSet = false;
92
93 LocationInfo m_location;
94 bool m_locationHasBeenSet = false;
95
96 BucketInfo m_bucket;
97 bool m_bucketHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace S3
102} // namespace Aws
CreateBucketConfiguration & WithBucket(BucketInfo &&value)
void SetLocationConstraint(const BucketLocationConstraint &value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API CreateBucketConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const BucketLocationConstraint & GetLocationConstraint() const
CreateBucketConfiguration & WithLocation(LocationInfo &&value)
CreateBucketConfiguration & WithLocationConstraint(const BucketLocationConstraint &value)
void SetLocationConstraint(BucketLocationConstraint &&value)
AWS_S3_API CreateBucketConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
CreateBucketConfiguration & WithLocationConstraint(BucketLocationConstraint &&value)
CreateBucketConfiguration & WithLocation(const LocationInfo &value)
CreateBucketConfiguration & WithBucket(const BucketInfo &value)