AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
HeadBucketResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3-crt/S3Crt_EXPORTS.h>
9#include <aws/s3-crt/model/LocationType.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 S3Crt {
23namespace Model {
25 public:
26 AWS_S3CRT_API HeadBucketResult() = default;
29
31
39 inline const Aws::String& GetBucketArn() const { return m_bucketArn; }
40 template <typename BucketArnT = Aws::String>
41 void SetBucketArn(BucketArnT&& value) {
42 m_bucketArnHasBeenSet = true;
43 m_bucketArn = std::forward<BucketArnT>(value);
44 }
45 template <typename BucketArnT = Aws::String>
46 HeadBucketResult& WithBucketArn(BucketArnT&& value) {
47 SetBucketArn(std::forward<BucketArnT>(value));
48 return *this;
49 }
51
53
57 inline LocationType GetBucketLocationType() const { return m_bucketLocationType; }
59 m_bucketLocationTypeHasBeenSet = true;
60 m_bucketLocationType = value;
61 }
64 return *this;
65 }
67
69
76 inline const Aws::String& GetBucketLocationName() const { return m_bucketLocationName; }
77 template <typename BucketLocationNameT = Aws::String>
78 void SetBucketLocationName(BucketLocationNameT&& value) {
79 m_bucketLocationNameHasBeenSet = true;
80 m_bucketLocationName = std::forward<BucketLocationNameT>(value);
81 }
82 template <typename BucketLocationNameT = Aws::String>
83 HeadBucketResult& WithBucketLocationName(BucketLocationNameT&& value) {
84 SetBucketLocationName(std::forward<BucketLocationNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetBucketRegion() const { return m_bucketRegion; }
94 template <typename BucketRegionT = Aws::String>
95 void SetBucketRegion(BucketRegionT&& value) {
96 m_bucketRegionHasBeenSet = true;
97 m_bucketRegion = std::forward<BucketRegionT>(value);
98 }
99 template <typename BucketRegionT = Aws::String>
100 HeadBucketResult& WithBucketRegion(BucketRegionT&& value) {
101 SetBucketRegion(std::forward<BucketRegionT>(value));
102 return *this;
103 }
105
107
112 inline bool GetAccessPointAlias() const { return m_accessPointAlias; }
113 inline void SetAccessPointAlias(bool value) {
114 m_accessPointAliasHasBeenSet = true;
115 m_accessPointAlias = value;
116 }
118 SetAccessPointAlias(value);
119 return *this;
120 }
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template <typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) {
128 m_requestIdHasBeenSet = true;
129 m_requestId = std::forward<RequestIdT>(value);
130 }
131 template <typename RequestIdT = Aws::String>
132 HeadBucketResult& WithRequestId(RequestIdT&& value) {
133 SetRequestId(std::forward<RequestIdT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_bucketArn;
139
140 LocationType m_bucketLocationType{LocationType::NOT_SET};
141
142 Aws::String m_bucketLocationName;
143
144 Aws::String m_bucketRegion;
145
146 bool m_accessPointAlias{false};
147
148 Aws::String m_requestId;
149 bool m_bucketArnHasBeenSet = false;
150 bool m_bucketLocationTypeHasBeenSet = false;
151 bool m_bucketLocationNameHasBeenSet = false;
152 bool m_bucketRegionHasBeenSet = false;
153 bool m_accessPointAliasHasBeenSet = false;
154 bool m_requestIdHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace S3Crt
159} // 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)
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