AWS SDK for C++

AWS SDK for C++ Version 1.11.782

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/s3control/S3Control_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace S3Control {
23namespace Model {
25 public:
26 AWS_S3CONTROL_API CreateBucketResult() = default;
29
31
34 inline const Aws::String& GetLocation() const { return m_location; }
35 template <typename LocationT = Aws::String>
36 void SetLocation(LocationT&& value) {
37 m_locationHasBeenSet = true;
38 m_location = std::forward<LocationT>(value);
39 }
40 template <typename LocationT = Aws::String>
41 CreateBucketResult& WithLocation(LocationT&& value) {
42 SetLocation(std::forward<LocationT>(value));
43 return *this;
44 }
46
48
61 inline const Aws::String& GetBucketArn() const { return m_bucketArn; }
62 template <typename BucketArnT = Aws::String>
63 void SetBucketArn(BucketArnT&& value) {
64 m_bucketArnHasBeenSet = true;
65 m_bucketArn = std::forward<BucketArnT>(value);
66 }
67 template <typename BucketArnT = Aws::String>
68 CreateBucketResult& WithBucketArn(BucketArnT&& value) {
69 SetBucketArn(std::forward<BucketArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 CreateBucketResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetHostId() const { return m_hostId; }
96 template <typename HostIdT = Aws::String>
97 void SetHostId(HostIdT&& value) {
98 m_hostIdHasBeenSet = true;
99 m_hostId = std::forward<HostIdT>(value);
100 }
101 template <typename HostIdT = Aws::String>
102 CreateBucketResult& WithHostId(HostIdT&& value) {
103 SetHostId(std::forward<HostIdT>(value));
104 return *this;
105 }
107 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
108
109 private:
110 Aws::String m_location;
111
112 Aws::String m_bucketArn;
113
114 Aws::String m_requestId;
115
116 Aws::String m_hostId;
117 Aws::Http::HttpResponseCode m_HttpResponseCode;
118 bool m_locationHasBeenSet = false;
119 bool m_bucketArnHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121 bool m_hostIdHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace S3Control
126} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument