AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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/S3_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 S3 {
23namespace Model {
25 public:
26 AWS_S3_API CreateBucketResult() = default;
29
31
39 inline const Aws::String& GetLocation() const { return m_location; }
40 template <typename LocationT = Aws::String>
41 void SetLocation(LocationT&& value) {
42 m_locationHasBeenSet = true;
43 m_location = std::forward<LocationT>(value);
44 }
45 template <typename LocationT = Aws::String>
46 CreateBucketResult& WithLocation(LocationT&& value) {
47 SetLocation(std::forward<LocationT>(value));
48 return *this;
49 }
51
53
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
76 inline const Aws::String& GetRequestId() const { return m_requestId; }
77 template <typename RequestIdT = Aws::String>
78 void SetRequestId(RequestIdT&& value) {
79 m_requestIdHasBeenSet = true;
80 m_requestId = std::forward<RequestIdT>(value);
81 }
82 template <typename RequestIdT = Aws::String>
83 CreateBucketResult& WithRequestId(RequestIdT&& value) {
84 SetRequestId(std::forward<RequestIdT>(value));
85 return *this;
86 }
88 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
89
90 private:
91 Aws::String m_location;
92
93 Aws::String m_bucketArn;
94
95 Aws::String m_requestId;
96 Aws::Http::HttpResponseCode m_HttpResponseCode;
97 bool m_locationHasBeenSet = false;
98 bool m_bucketArnHasBeenSet = false;
99 bool m_requestIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace S3
104} // namespace Aws
AWS_S3_API CreateBucketResult()=default
void SetBucketArn(BucketArnT &&value)
CreateBucketResult & WithLocation(LocationT &&value)
const Aws::String & GetBucketArn() const
const Aws::String & GetRequestId() const
AWS_S3_API CreateBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3_API CreateBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRequestId(RequestIdT &&value)
CreateBucketResult & WithRequestId(RequestIdT &&value)
CreateBucketResult & WithBucketArn(BucketArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetLocation() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument