AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateBucketResult.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 UpdateBucketResult& WithBucket(const Bucket& value) { SetBucket(value); return *this;}
56 
60  inline UpdateBucketResult& 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 UpdateBucketResult& WithOperations(const Aws::Vector<Operation>& value) { SetOperations(value); return *this;}
90 
96  inline UpdateBucketResult& WithOperations(Aws::Vector<Operation>&& value) { SetOperations(std::move(value)); return *this;}
97 
103  inline UpdateBucketResult& AddOperations(const Operation& value) { m_operations.push_back(value); return *this; }
104 
110  inline UpdateBucketResult& 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::UpdateBucketResult::SetOperations
void SetOperations(const Aws::Vector< Operation > &value)
Definition: UpdateBucketResult.h:75
Aws::Lightsail::Model::UpdateBucketResult::WithBucket
UpdateBucketResult & WithBucket(Bucket &&value)
Definition: UpdateBucketResult.h:60
Aws::Lightsail::Model::UpdateBucketResult::UpdateBucketResult
UpdateBucketResult()
Aws::Lightsail::Model::UpdateBucketResult::AddOperations
UpdateBucketResult & AddOperations(Operation &&value)
Definition: UpdateBucketResult.h:110
Aws::Lightsail::Model::UpdateBucketResult::operator=
UpdateBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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::UpdateBucketResult::UpdateBucketResult
UpdateBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::UpdateBucketResult::SetBucket
void SetBucket(const Bucket &value)
Definition: UpdateBucketResult.h:45
Aws::Lightsail::Model::UpdateBucketResult::GetOperations
const Aws::Vector< Operation > & GetOperations() const
Definition: UpdateBucketResult.h:68
Aws::Lightsail::Model::UpdateBucketResult::AddOperations
UpdateBucketResult & AddOperations(const Operation &value)
Definition: UpdateBucketResult.h:103
Aws::Lightsail::Model::UpdateBucketResult::WithOperations
UpdateBucketResult & WithOperations(Aws::Vector< Operation > &&value)
Definition: UpdateBucketResult.h:96
Aws::Lightsail::Model::UpdateBucketResult::WithOperations
UpdateBucketResult & WithOperations(const Aws::Vector< Operation > &value)
Definition: UpdateBucketResult.h:89
Aws::Lightsail::Model::UpdateBucketResult::SetBucket
void SetBucket(Bucket &&value)
Definition: UpdateBucketResult.h:50
Aws::Lightsail::Model::Bucket
Definition: Bucket.h:39
Lightsail_EXPORTS.h
Aws::Lightsail::Model::UpdateBucketResult::SetOperations
void SetOperations(Aws::Vector< Operation > &&value)
Definition: UpdateBucketResult.h:82
Aws
Definition: AccessManagementClient.h:15
Bucket.h
Aws::Lightsail::Model::UpdateBucketResult::GetBucket
const Bucket & GetBucket() const
Definition: UpdateBucketResult.h:40
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Operation.h
Aws::Lightsail::Model::UpdateBucketResult::WithBucket
UpdateBucketResult & WithBucket(const Bucket &value)
Definition: UpdateBucketResult.h:55
Aws::Lightsail::Model::UpdateBucketResult
Definition: UpdateBucketResult.h:30