AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateBucketResult.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/Bucket.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lightsail/model/Operation.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail
27{
28namespace Model
29{
31 {
32 public:
33 AWS_LIGHTSAIL_API CreateBucketResult() = default;
36
37
39
42 inline const Bucket& GetBucket() const { return m_bucket; }
43 template<typename BucketT = Bucket>
44 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
45 template<typename BucketT = Bucket>
46 CreateBucketResult& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
48
50
55 inline const Aws::Vector<Operation>& GetOperations() const { return m_operations; }
56 template<typename OperationsT = Aws::Vector<Operation>>
57 void SetOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations = std::forward<OperationsT>(value); }
58 template<typename OperationsT = Aws::Vector<Operation>>
59 CreateBucketResult& WithOperations(OperationsT&& value) { SetOperations(std::forward<OperationsT>(value)); return *this;}
60 template<typename OperationsT = Operation>
61 CreateBucketResult& AddOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations.emplace_back(std::forward<OperationsT>(value)); return *this; }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template<typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
69 template<typename RequestIdT = Aws::String>
70 CreateBucketResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
72 private:
73
74 Bucket m_bucket;
75 bool m_bucketHasBeenSet = false;
76
77 Aws::Vector<Operation> m_operations;
78 bool m_operationsHasBeenSet = false;
79
80 Aws::String m_requestId;
81 bool m_requestIdHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Lightsail
86} // namespace Aws
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