AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/s3-crt/S3Crt_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 S3Crt {
23namespace Model {
25 public:
26 AWS_S3CRT_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
56 inline const Aws::String& GetBucketArn() const { return m_bucketArn; }
57 template <typename BucketArnT = Aws::String>
58 void SetBucketArn(BucketArnT&& value) {
59 m_bucketArnHasBeenSet = true;
60 m_bucketArn = std::forward<BucketArnT>(value);
61 }
62 template <typename BucketArnT = Aws::String>
63 CreateBucketResult& WithBucketArn(BucketArnT&& value) {
64 SetBucketArn(std::forward<BucketArnT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 template <typename RequestIdT = Aws::String>
73 void SetRequestId(RequestIdT&& value) {
74 m_requestIdHasBeenSet = true;
75 m_requestId = std::forward<RequestIdT>(value);
76 }
77 template <typename RequestIdT = Aws::String>
78 CreateBucketResult& WithRequestId(RequestIdT&& value) {
79 SetRequestId(std::forward<RequestIdT>(value));
80 return *this;
81 }
83 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
84
85 private:
86 Aws::String m_location;
87
88 Aws::String m_bucketArn;
89
90 Aws::String m_requestId;
91 Aws::Http::HttpResponseCode m_HttpResponseCode;
92 bool m_locationHasBeenSet = false;
93 bool m_bucketArnHasBeenSet = false;
94 bool m_requestIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace S3Crt
99} // namespace Aws
const Aws::String & GetBucketArn() const
const Aws::String & GetRequestId() const
CreateBucketResult & WithLocation(LocationT &&value)
AWS_S3CRT_API CreateBucketResult()=default
CreateBucketResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetLocation() const
AWS_S3CRT_API CreateBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateBucketResult & WithBucketArn(BucketArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_S3CRT_API CreateBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument