AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetBucketLocationResult.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#include <aws/s3-crt/model/BucketLocationConstraint.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3Crt {
24namespace Model {
26 public:
27 AWS_S3CRT_API GetBucketLocationResult() = default;
30
32
40 inline BucketLocationConstraint GetLocationConstraint() const { return m_locationConstraint; }
42 m_locationConstraintHasBeenSet = true;
43 m_locationConstraint = value;
44 }
47 return *this;
48 }
50
52
53 inline const Aws::String& GetRequestId() const { return m_requestId; }
54 template <typename RequestIdT = Aws::String>
55 void SetRequestId(RequestIdT&& value) {
56 m_requestIdHasBeenSet = true;
57 m_requestId = std::forward<RequestIdT>(value);
58 }
59 template <typename RequestIdT = Aws::String>
61 SetRequestId(std::forward<RequestIdT>(value));
62 return *this;
63 }
65 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
66
67 private:
69
70 Aws::String m_requestId;
71 Aws::Http::HttpResponseCode m_HttpResponseCode;
72 bool m_locationConstraintHasBeenSet = false;
73 bool m_requestIdHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace S3Crt
78} // namespace Aws
GetBucketLocationResult & WithRequestId(RequestIdT &&value)
AWS_S3CRT_API GetBucketLocationResult()=default
void SetLocationConstraint(BucketLocationConstraint value)
BucketLocationConstraint GetLocationConstraint() const
AWS_S3CRT_API GetBucketLocationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetBucketLocationResult & WithLocationConstraint(BucketLocationConstraint value)
AWS_S3CRT_API GetBucketLocationResult & 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