AWS SDK for C++  1.9.124
AWS SDK for C++
CreateBucketConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace S3Crt
21 {
22 namespace Model
23 {
24 
31  {
32  public:
36 
37  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38 
39 
45  inline const BucketLocationConstraint& GetLocationConstraint() const{ return m_locationConstraint; }
46 
52  inline bool LocationConstraintHasBeenSet() const { return m_locationConstraintHasBeenSet; }
53 
59  inline void SetLocationConstraint(const BucketLocationConstraint& value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = value; }
60 
66  inline void SetLocationConstraint(BucketLocationConstraint&& value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = std::move(value); }
67 
73  inline CreateBucketConfiguration& WithLocationConstraint(const BucketLocationConstraint& value) { SetLocationConstraint(value); return *this;}
74 
80  inline CreateBucketConfiguration& WithLocationConstraint(BucketLocationConstraint&& value) { SetLocationConstraint(std::move(value)); return *this;}
81 
82  private:
83 
84  BucketLocationConstraint m_locationConstraint;
85  bool m_locationConstraintHasBeenSet;
86  };
87 
88 } // namespace Model
89 } // namespace S3Crt
90 } // namespace Aws
Aws::S3Crt::Model::CreateBucketConfiguration::SetLocationConstraint
void SetLocationConstraint(BucketLocationConstraint &&value)
Definition: CreateBucketConfiguration.h:66
Aws::S3Crt::Model::CreateBucketConfiguration
Definition: CreateBucketConfiguration.h:31
Aws::S3Crt::Model::CreateBucketConfiguration::LocationConstraintHasBeenSet
bool LocationConstraintHasBeenSet() const
Definition: CreateBucketConfiguration.h:52
Aws::S3Crt::Model::CreateBucketConfiguration::WithLocationConstraint
CreateBucketConfiguration & WithLocationConstraint(BucketLocationConstraint &&value)
Definition: CreateBucketConfiguration.h:80
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_S3CRT_API
#define AWS_S3CRT_API
Definition: S3Crt_EXPORTS.h:28
Aws::S3Crt::Model::CreateBucketConfiguration::WithLocationConstraint
CreateBucketConfiguration & WithLocationConstraint(const BucketLocationConstraint &value)
Definition: CreateBucketConfiguration.h:73
Aws::S3Crt::Model::CreateBucketConfiguration::CreateBucketConfiguration
CreateBucketConfiguration()
Aws::S3Crt::Model::CreateBucketConfiguration::operator=
CreateBucketConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Crt::Model::BucketLocationConstraint
BucketLocationConstraint
Definition: BucketLocationConstraint.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::S3Crt::Model::CreateBucketConfiguration::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Crt::Model::CreateBucketConfiguration::GetLocationConstraint
const BucketLocationConstraint & GetLocationConstraint() const
Definition: CreateBucketConfiguration.h:45
Aws::S3Crt::Model::CreateBucketConfiguration::SetLocationConstraint
void SetLocationConstraint(const BucketLocationConstraint &value)
Definition: CreateBucketConfiguration.h:59
Aws::S3Crt::Model::CreateBucketConfiguration::CreateBucketConfiguration
CreateBucketConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
BucketLocationConstraint.h
S3Crt_EXPORTS.h