AWS SDK for C++  1.8.157
AWS SDK for C++
CreateBucketResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlDocument;
21 } // namespace Xml
22 } // namespace Utils
23 namespace S3Control
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const Aws::String& GetLocation() const{ return m_location; }
39 
43  inline void SetLocation(const Aws::String& value) { m_location = value; }
44 
48  inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
49 
53  inline void SetLocation(const char* value) { m_location.assign(value); }
54 
58  inline CreateBucketResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
59 
63  inline CreateBucketResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
64 
68  inline CreateBucketResult& WithLocation(const char* value) { SetLocation(value); return *this;}
69 
70 
84  inline const Aws::String& GetBucketArn() const{ return m_bucketArn; }
85 
99  inline void SetBucketArn(const Aws::String& value) { m_bucketArn = value; }
100 
114  inline void SetBucketArn(Aws::String&& value) { m_bucketArn = std::move(value); }
115 
129  inline void SetBucketArn(const char* value) { m_bucketArn.assign(value); }
130 
144  inline CreateBucketResult& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;}
145 
159  inline CreateBucketResult& WithBucketArn(Aws::String&& value) { SetBucketArn(std::move(value)); return *this;}
160 
174  inline CreateBucketResult& WithBucketArn(const char* value) { SetBucketArn(value); return *this;}
175 
176  private:
177 
178  Aws::String m_location;
179 
180  Aws::String m_bucketArn;
181  };
182 
183 } // namespace Model
184 } // namespace S3Control
185 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::S3Control::Model::CreateBucketResult::operator=
CreateBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::S3Control::Model::CreateBucketResult::CreateBucketResult
CreateBucketResult()
Aws::S3Control::Model::CreateBucketResult::SetBucketArn
void SetBucketArn(const Aws::String &value)
Definition: CreateBucketResult.h:99
Aws::S3Control::Model::CreateBucketResult
Definition: CreateBucketResult.h:28
Aws::S3Control::Model::CreateBucketResult::GetBucketArn
const Aws::String & GetBucketArn() const
Definition: CreateBucketResult.h:84
Aws::S3Control::Model::CreateBucketResult::SetLocation
void SetLocation(const char *value)
Definition: CreateBucketResult.h:53
S3Control_EXPORTS.h
Aws::S3Control::Model::CreateBucketResult::SetLocation
void SetLocation(const Aws::String &value)
Definition: CreateBucketResult.h:43
Aws::S3Control::Model::CreateBucketResult::SetLocation
void SetLocation(Aws::String &&value)
Definition: CreateBucketResult.h:48
Aws::S3Control::Model::CreateBucketResult::SetBucketArn
void SetBucketArn(const char *value)
Definition: CreateBucketResult.h:129
Aws::S3Control::Model::CreateBucketResult::WithLocation
CreateBucketResult & WithLocation(const Aws::String &value)
Definition: CreateBucketResult.h:58
Aws::S3Control::Model::CreateBucketResult::WithLocation
CreateBucketResult & WithLocation(Aws::String &&value)
Definition: CreateBucketResult.h:63
Aws::S3Control::Model::CreateBucketResult::SetBucketArn
void SetBucketArn(Aws::String &&value)
Definition: CreateBucketResult.h:114
Aws::S3Control::Model::CreateBucketResult::WithBucketArn
CreateBucketResult & WithBucketArn(Aws::String &&value)
Definition: CreateBucketResult.h:159
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
AWSString.h
Aws::S3Control::Model::CreateBucketResult::WithLocation
CreateBucketResult & WithLocation(const char *value)
Definition: CreateBucketResult.h:68
Aws::S3Control::Model::CreateBucketResult::WithBucketArn
CreateBucketResult & WithBucketArn(const char *value)
Definition: CreateBucketResult.h:174
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::CreateBucketResult::WithBucketArn
CreateBucketResult & WithBucketArn(const Aws::String &value)
Definition: CreateBucketResult.h:144
Aws::S3Control::Model::CreateBucketResult::GetLocation
const Aws::String & GetLocation() const
Definition: CreateBucketResult.h:38
Aws::S3Control::Model::CreateBucketResult::CreateBucketResult
CreateBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)