AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateBucketResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Bucket.h>
12#include <aws/lightsail/model/Operation.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Lightsail {
26namespace Model {
28 public:
29 AWS_LIGHTSAIL_API CreateBucketResult() = default;
32
34
37 inline const Bucket& GetBucket() const { return m_bucket; }
38 template <typename BucketT = Bucket>
39 void SetBucket(BucketT&& value) {
40 m_bucketHasBeenSet = true;
41 m_bucket = std::forward<BucketT>(value);
42 }
43 template <typename BucketT = Bucket>
44 CreateBucketResult& WithBucket(BucketT&& value) {
45 SetBucket(std::forward<BucketT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::Vector<Operation>& GetOperations() const { return m_operations; }
57 template <typename OperationsT = Aws::Vector<Operation>>
58 void SetOperations(OperationsT&& value) {
59 m_operationsHasBeenSet = true;
60 m_operations = std::forward<OperationsT>(value);
61 }
62 template <typename OperationsT = Aws::Vector<Operation>>
63 CreateBucketResult& WithOperations(OperationsT&& value) {
64 SetOperations(std::forward<OperationsT>(value));
65 return *this;
66 }
67 template <typename OperationsT = Operation>
68 CreateBucketResult& AddOperations(OperationsT&& value) {
69 m_operationsHasBeenSet = true;
70 m_operations.emplace_back(std::forward<OperationsT>(value));
71 return *this;
72 }
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template <typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) {
80 m_requestIdHasBeenSet = true;
81 m_requestId = std::forward<RequestIdT>(value);
82 }
83 template <typename RequestIdT = Aws::String>
84 CreateBucketResult& WithRequestId(RequestIdT&& value) {
85 SetRequestId(std::forward<RequestIdT>(value));
86 return *this;
87 }
89 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
90
91 private:
92 Bucket m_bucket;
93
94 Aws::Vector<Operation> m_operations;
95
96 Aws::String m_requestId;
97 Aws::Http::HttpResponseCode m_HttpResponseCode;
98 bool m_bucketHasBeenSet = false;
99 bool m_operationsHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Lightsail
105} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateBucketResult & AddOperations(OperationsT &&value)
CreateBucketResult & WithRequestId(RequestIdT &&value)
AWS_LIGHTSAIL_API CreateBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API CreateBucketResult()=default
CreateBucketResult & WithOperations(OperationsT &&value)
const Aws::Vector< Operation > & GetOperations() const
AWS_LIGHTSAIL_API CreateBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateBucketResult & WithBucket(BucketT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue