AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HeadBucketResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/LocationType.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Xml
20{
21 class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3
25{
26namespace Model
27{
29 {
30 public:
31 AWS_S3_API HeadBucketResult() = default;
34
35
37
45 inline const Aws::String& GetBucketArn() const { return m_bucketArn; }
46 template<typename BucketArnT = Aws::String>
47 void SetBucketArn(BucketArnT&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = std::forward<BucketArnT>(value); }
48 template<typename BucketArnT = Aws::String>
49 HeadBucketResult& WithBucketArn(BucketArnT&& value) { SetBucketArn(std::forward<BucketArnT>(value)); return *this;}
51
53
57 inline LocationType GetBucketLocationType() const { return m_bucketLocationType; }
58 inline void SetBucketLocationType(LocationType value) { m_bucketLocationTypeHasBeenSet = true; m_bucketLocationType = value; }
61
63
70 inline const Aws::String& GetBucketLocationName() const { return m_bucketLocationName; }
71 template<typename BucketLocationNameT = Aws::String>
72 void SetBucketLocationName(BucketLocationNameT&& value) { m_bucketLocationNameHasBeenSet = true; m_bucketLocationName = std::forward<BucketLocationNameT>(value); }
73 template<typename BucketLocationNameT = Aws::String>
74 HeadBucketResult& WithBucketLocationName(BucketLocationNameT&& value) { SetBucketLocationName(std::forward<BucketLocationNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetBucketRegion() const { return m_bucketRegion; }
82 template<typename BucketRegionT = Aws::String>
83 void SetBucketRegion(BucketRegionT&& value) { m_bucketRegionHasBeenSet = true; m_bucketRegion = std::forward<BucketRegionT>(value); }
84 template<typename BucketRegionT = Aws::String>
85 HeadBucketResult& WithBucketRegion(BucketRegionT&& value) { SetBucketRegion(std::forward<BucketRegionT>(value)); return *this;}
87
89
94 inline bool GetAccessPointAlias() const { return m_accessPointAlias; }
95 inline void SetAccessPointAlias(bool value) { m_accessPointAliasHasBeenSet = true; m_accessPointAlias = value; }
96 inline HeadBucketResult& WithAccessPointAlias(bool value) { SetAccessPointAlias(value); return *this;}
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template<typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
104 template<typename RequestIdT = Aws::String>
105 HeadBucketResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
107 private:
108
109 Aws::String m_bucketArn;
110 bool m_bucketArnHasBeenSet = false;
111
112 LocationType m_bucketLocationType{LocationType::NOT_SET};
113 bool m_bucketLocationTypeHasBeenSet = false;
114
115 Aws::String m_bucketLocationName;
116 bool m_bucketLocationNameHasBeenSet = false;
117
118 Aws::String m_bucketRegion;
119 bool m_bucketRegionHasBeenSet = false;
120
121 bool m_accessPointAlias{false};
122 bool m_accessPointAliasHasBeenSet = false;
123
124 Aws::String m_requestId;
125 bool m_requestIdHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace S3
130} // namespace Aws
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
HeadBucketResult & WithBucketArn(BucketArnT &&value)
AWS_S3_API HeadBucketResult()=default
void SetBucketLocationName(BucketLocationNameT &&value)
HeadBucketResult & WithBucketLocationType(LocationType value)
const Aws::String & GetBucketLocationName() const
void SetBucketArn(BucketArnT &&value)
const Aws::String & GetBucketArn() const
const Aws::String & GetBucketRegion() const
HeadBucketResult & WithRequestId(RequestIdT &&value)
HeadBucketResult & WithBucketLocationName(BucketLocationNameT &&value)
HeadBucketResult & WithAccessPointAlias(bool value)
void SetBucketRegion(BucketRegionT &&value)
AWS_S3_API HeadBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetBucketLocationType(LocationType value)
AWS_S3_API HeadBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
LocationType GetBucketLocationType() const
HeadBucketResult & WithBucketRegion(BucketRegionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument