AWS SDK for C++  1.9.159
AWS SDK for C++
Region.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 S3Control
21 {
22 namespace Model
23 {
24 
32  {
33  public:
34  Region();
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline const Aws::String& GetBucket() const{ return m_bucket; }
45 
49  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
50 
54  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
55 
59  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
60 
64  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
65 
69  inline Region& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
70 
74  inline Region& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
75 
79  inline Region& WithBucket(const char* value) { SetBucket(value); return *this;}
80 
81  private:
82 
83  Aws::String m_bucket;
84  bool m_bucketHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace S3Control
89 } // namespace Aws
Aws::S3Control::Model::Region::WithBucket
Region & WithBucket(const Aws::String &value)
Definition: Region.h:69
Aws::S3Control::Model::Region::WithBucket
Region & WithBucket(const char *value)
Definition: Region.h:79
Aws::S3Control::Model::Region::WithBucket
Region & WithBucket(Aws::String &&value)
Definition: Region.h:74
Aws::S3Control::Model::Region::SetBucket
void SetBucket(const Aws::String &value)
Definition: Region.h:54
S3Control_EXPORTS.h
Aws::S3Control::Model::Region::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: Region.h:49
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
AWSString.h
Aws::S3Control::Model::Region::operator=
Region & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::Region
Definition: Region.h:32
Aws::S3Control::Model::Region::Region
Region()
Aws::S3Control::Model::Region::SetBucket
void SetBucket(Aws::String &&value)
Definition: Region.h:59
Aws::S3Control::Model::Region::SetBucket
void SetBucket(const char *value)
Definition: Region.h:64
Aws::S3Control::Model::Region::Region
Region(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::Region::GetBucket
const Aws::String & GetBucket() const
Definition: Region.h:44
Aws::S3Control::Model::Region::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const