AWS SDK for C++  1.9.104
AWS SDK for C++
CreateBucketResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Lightsail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Bucket& GetBucket() const{ return m_bucket; }
41 
45  inline void SetBucket(const Bucket& value) { m_bucket = value; }
46 
50  inline void SetBucket(Bucket&& value) { m_bucket = std::move(value); }
51 
55  inline CreateBucketResult& WithBucket(const Bucket& value) { SetBucket(value); return *this;}
56 
60  inline CreateBucketResult& WithBucket(Bucket&& value) { SetBucket(std::move(value)); return *this;}
61 
62 
68  inline const Aws::Vector<Operation>& GetOperations() const{ return m_operations; }
69 
75  inline void SetOperations(const Aws::Vector<Operation>& value) { m_operations = value; }
76 
82  inline void SetOperations(Aws::Vector<Operation>&& value) { m_operations = std::move(value); }
83 
89  inline CreateBucketResult& WithOperations(const Aws::Vector<Operation>& value) { SetOperations(value); return *this;}
90 
96  inline CreateBucketResult& WithOperations(Aws::Vector<Operation>&& value) { SetOperations(std::move(value)); return *this;}
97 
103  inline CreateBucketResult& AddOperations(const Operation& value) { m_operations.push_back(value); return *this; }
104 
110  inline CreateBucketResult& AddOperations(Operation&& value) { m_operations.push_back(std::move(value)); return *this; }
111 
112  private:
113 
114  Bucket m_bucket;
115 
116  Aws::Vector<Operation> m_operations;
117  };
118 
119 } // namespace Model
120 } // namespace Lightsail
121 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::CreateBucketResult::GetBucket
const Bucket & GetBucket() const
Definition: CreateBucketResult.h:40
Aws::Lightsail::Model::CreateBucketResult::AddOperations
CreateBucketResult & AddOperations(const Operation &value)
Definition: CreateBucketResult.h:103
Aws::Lightsail::Model::CreateBucketResult::CreateBucketResult
CreateBucketResult()
Aws::Lightsail::Model::CreateBucketResult::WithOperations
CreateBucketResult & WithOperations(Aws::Vector< Operation > &&value)
Definition: CreateBucketResult.h:96
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::CreateBucketResult::SetBucket
void SetBucket(Bucket &&value)
Definition: CreateBucketResult.h:50
Aws::Lightsail::Model::CreateBucketResult::AddOperations
CreateBucketResult & AddOperations(Operation &&value)
Definition: CreateBucketResult.h:110
Aws::Lightsail::Model::CreateBucketResult::WithBucket
CreateBucketResult & WithBucket(Bucket &&value)
Definition: CreateBucketResult.h:60
Aws::Lightsail::Model::CreateBucketResult::CreateBucketResult
CreateBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::CreateBucketResult::operator=
CreateBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::CreateBucketResult::SetBucket
void SetBucket(const Bucket &value)
Definition: CreateBucketResult.h:45
Aws::Lightsail::Model::Bucket
Definition: Bucket.h:39
Aws::Lightsail::Model::CreateBucketResult::GetOperations
const Aws::Vector< Operation > & GetOperations() const
Definition: CreateBucketResult.h:68
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateBucketResult::WithOperations
CreateBucketResult & WithOperations(const Aws::Vector< Operation > &value)
Definition: CreateBucketResult.h:89
Aws::Lightsail::Model::CreateBucketResult
Definition: CreateBucketResult.h:30
Aws::Lightsail::Model::CreateBucketResult::SetOperations
void SetOperations(Aws::Vector< Operation > &&value)
Definition: CreateBucketResult.h:82
Aws::Lightsail::Model::CreateBucketResult::SetOperations
void SetOperations(const Aws::Vector< Operation > &value)
Definition: CreateBucketResult.h:75
Aws
Definition: AccessManagementClient.h:15
Bucket.h
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Operation.h
Aws::Lightsail::Model::CreateBucketResult::WithBucket
CreateBucketResult & WithBucket(const Bucket &value)
Definition: CreateBucketResult.h:55