AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateBucketResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Xml {
18class XmlDocument;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control {
22namespace Model {
24 public:
25 AWS_S3CONTROL_API CreateBucketResult() = default;
28
30
33 inline const Aws::String& GetLocation() const { return m_location; }
34 template <typename LocationT = Aws::String>
35 void SetLocation(LocationT&& value) {
36 m_locationHasBeenSet = true;
37 m_location = std::forward<LocationT>(value);
38 }
39 template <typename LocationT = Aws::String>
40 CreateBucketResult& WithLocation(LocationT&& value) {
41 SetLocation(std::forward<LocationT>(value));
42 return *this;
43 }
45
47
60 inline const Aws::String& GetBucketArn() const { return m_bucketArn; }
61 template <typename BucketArnT = Aws::String>
62 void SetBucketArn(BucketArnT&& value) {
63 m_bucketArnHasBeenSet = true;
64 m_bucketArn = std::forward<BucketArnT>(value);
65 }
66 template <typename BucketArnT = Aws::String>
67 CreateBucketResult& WithBucketArn(BucketArnT&& value) {
68 SetBucketArn(std::forward<BucketArnT>(value));
69 return *this;
70 }
72
74
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
91
94 inline const Aws::String& GetHostId() const { return m_hostId; }
95 template <typename HostIdT = Aws::String>
96 void SetHostId(HostIdT&& value) {
97 m_hostIdHasBeenSet = true;
98 m_hostId = std::forward<HostIdT>(value);
99 }
100 template <typename HostIdT = Aws::String>
101 CreateBucketResult& WithHostId(HostIdT&& value) {
102 SetHostId(std::forward<HostIdT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_location;
108
109 Aws::String m_bucketArn;
110
111 Aws::String m_requestId;
112
113 Aws::String m_hostId;
114 bool m_locationHasBeenSet = false;
115 bool m_bucketArnHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117 bool m_hostIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace S3Control
122} // namespace Aws
CreateBucketResult & WithRequestId(RequestIdT &&value)
CreateBucketResult & WithBucketArn(BucketArnT &&value)
CreateBucketResult & WithLocation(LocationT &&value)
CreateBucketResult & WithHostId(HostIdT &&value)
AWS_S3CONTROL_API CreateBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CONTROL_API CreateBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CONTROL_API CreateBucketResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument