AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBucketResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Xml
19{
20 class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3
24{
25namespace Model
26{
28 {
29 public:
30 AWS_S3_API CreateBucketResult() = default;
33
34
36
39 inline const Aws::String& GetLocation() const { return m_location; }
40 template<typename LocationT = Aws::String>
41 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
42 template<typename LocationT = Aws::String>
43 CreateBucketResult& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
45
47
55 inline const Aws::String& GetBucketArn() const { return m_bucketArn; }
56 template<typename BucketArnT = Aws::String>
57 void SetBucketArn(BucketArnT&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = std::forward<BucketArnT>(value); }
58 template<typename BucketArnT = Aws::String>
59 CreateBucketResult& WithBucketArn(BucketArnT&& value) { SetBucketArn(std::forward<BucketArnT>(value)); return *this;}
61
63
64 inline const Aws::String& GetRequestId() const { return m_requestId; }
65 template<typename RequestIdT = Aws::String>
66 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
67 template<typename RequestIdT = Aws::String>
68 CreateBucketResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
70 private:
71
72 Aws::String m_location;
73 bool m_locationHasBeenSet = false;
74
75 Aws::String m_bucketArn;
76 bool m_bucketArnHasBeenSet = false;
77
78 Aws::String m_requestId;
79 bool m_requestIdHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace S3
84} // 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)
const Aws::String & GetLocation() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument