AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
HeadBucketResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/S3Crt_EXPORTS.h>
10#include <aws/s3-crt/model/LocationType.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3Crt {
24namespace Model {
26 public:
27 AWS_S3CRT_API HeadBucketResult() = default;
30
32
40 inline const Aws::String& GetBucketArn() const { return m_bucketArn; }
41 template <typename BucketArnT = Aws::String>
42 void SetBucketArn(BucketArnT&& value) {
43 m_bucketArnHasBeenSet = true;
44 m_bucketArn = std::forward<BucketArnT>(value);
45 }
46 template <typename BucketArnT = Aws::String>
47 HeadBucketResult& WithBucketArn(BucketArnT&& value) {
48 SetBucketArn(std::forward<BucketArnT>(value));
49 return *this;
50 }
52
54
58 inline LocationType GetBucketLocationType() const { return m_bucketLocationType; }
60 m_bucketLocationTypeHasBeenSet = true;
61 m_bucketLocationType = value;
62 }
65 return *this;
66 }
68
70
77 inline const Aws::String& GetBucketLocationName() const { return m_bucketLocationName; }
78 template <typename BucketLocationNameT = Aws::String>
79 void SetBucketLocationName(BucketLocationNameT&& value) {
80 m_bucketLocationNameHasBeenSet = true;
81 m_bucketLocationName = std::forward<BucketLocationNameT>(value);
82 }
83 template <typename BucketLocationNameT = Aws::String>
84 HeadBucketResult& WithBucketLocationName(BucketLocationNameT&& value) {
85 SetBucketLocationName(std::forward<BucketLocationNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetBucketRegion() const { return m_bucketRegion; }
95 template <typename BucketRegionT = Aws::String>
96 void SetBucketRegion(BucketRegionT&& value) {
97 m_bucketRegionHasBeenSet = true;
98 m_bucketRegion = std::forward<BucketRegionT>(value);
99 }
100 template <typename BucketRegionT = Aws::String>
101 HeadBucketResult& WithBucketRegion(BucketRegionT&& value) {
102 SetBucketRegion(std::forward<BucketRegionT>(value));
103 return *this;
104 }
106
108
113 inline bool GetAccessPointAlias() const { return m_accessPointAlias; }
114 inline void SetAccessPointAlias(bool value) {
115 m_accessPointAliasHasBeenSet = true;
116 m_accessPointAlias = value;
117 }
119 SetAccessPointAlias(value);
120 return *this;
121 }
123
125
126 inline const Aws::String& GetRequestId() const { return m_requestId; }
127 template <typename RequestIdT = Aws::String>
128 void SetRequestId(RequestIdT&& value) {
129 m_requestIdHasBeenSet = true;
130 m_requestId = std::forward<RequestIdT>(value);
131 }
132 template <typename RequestIdT = Aws::String>
133 HeadBucketResult& WithRequestId(RequestIdT&& value) {
134 SetRequestId(std::forward<RequestIdT>(value));
135 return *this;
136 }
138 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
139
140 private:
141 Aws::String m_bucketArn;
142
143 LocationType m_bucketLocationType{LocationType::NOT_SET};
144
145 Aws::String m_bucketLocationName;
146
147 Aws::String m_bucketRegion;
148
149 bool m_accessPointAlias{false};
150
151 Aws::String m_requestId;
152 Aws::Http::HttpResponseCode m_HttpResponseCode;
153 bool m_bucketArnHasBeenSet = false;
154 bool m_bucketLocationTypeHasBeenSet = false;
155 bool m_bucketLocationNameHasBeenSet = false;
156 bool m_bucketRegionHasBeenSet = false;
157 bool m_accessPointAliasHasBeenSet = false;
158 bool m_requestIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace S3Crt
163} // namespace Aws
AWS_S3CRT_API HeadBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
HeadBucketResult & WithBucketRegion(BucketRegionT &&value)
void SetRequestId(RequestIdT &&value)
void SetBucketRegion(BucketRegionT &&value)
HeadBucketResult & WithBucketArn(BucketArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetBucketRegion() const
const Aws::String & GetRequestId() const
LocationType GetBucketLocationType() const
const Aws::String & GetBucketLocationName() const
HeadBucketResult & WithBucketLocationName(BucketLocationNameT &&value)
HeadBucketResult & WithRequestId(RequestIdT &&value)
void SetBucketArn(BucketArnT &&value)
AWS_S3CRT_API HeadBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CRT_API HeadBucketResult()=default
HeadBucketResult & WithBucketLocationType(LocationType value)
void SetBucketLocationName(BucketLocationNameT &&value)
const Aws::String & GetBucketArn() const
HeadBucketResult & WithAccessPointAlias(bool value)
void SetBucketLocationType(LocationType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument