AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetBucketResult.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 S3Control
25{
26namespace Model
27{
29 {
30 public:
31 AWS_S3CONTROL_API GetBucketResult() = default;
34
35
37
40 inline const Aws::String& GetBucket() const { return m_bucket; }
41 template<typename BucketT = Aws::String>
42 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
43 template<typename BucketT = Aws::String>
44 GetBucketResult& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
46
48
51 inline bool GetPublicAccessBlockEnabled() const { return m_publicAccessBlockEnabled; }
52 inline void SetPublicAccessBlockEnabled(bool value) { m_publicAccessBlockEnabledHasBeenSet = true; m_publicAccessBlockEnabled = value; }
55
57
60 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
61 template<typename CreationDateT = Aws::Utils::DateTime>
62 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
63 template<typename CreationDateT = Aws::Utils::DateTime>
64 GetBucketResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
66
68
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 template<typename RequestIdT = Aws::String>
73 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
74 template<typename RequestIdT = Aws::String>
75 GetBucketResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetHostId() const { return m_hostId; }
83 template<typename HostIdT = Aws::String>
84 void SetHostId(HostIdT&& value) { m_hostIdHasBeenSet = true; m_hostId = std::forward<HostIdT>(value); }
85 template<typename HostIdT = Aws::String>
86 GetBucketResult& WithHostId(HostIdT&& value) { SetHostId(std::forward<HostIdT>(value)); return *this;}
88 private:
89
90 Aws::String m_bucket;
91 bool m_bucketHasBeenSet = false;
92
93 bool m_publicAccessBlockEnabled{false};
94 bool m_publicAccessBlockEnabledHasBeenSet = false;
95
96 Aws::Utils::DateTime m_creationDate{};
97 bool m_creationDateHasBeenSet = false;
98
99 Aws::String m_requestId;
100 bool m_requestIdHasBeenSet = false;
101
102 Aws::String m_hostId;
103 bool m_hostIdHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace S3Control
108} // namespace Aws
AWS_S3CONTROL_API GetBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetBucket() const
GetBucketResult & WithRequestId(RequestIdT &&value)
GetBucketResult & WithPublicAccessBlockEnabled(bool value)
GetBucketResult & WithBucket(BucketT &&value)
GetBucketResult & WithCreationDate(CreationDateT &&value)
AWS_S3CONTROL_API GetBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetHostId() const
AWS_S3CONTROL_API GetBucketResult()=default
void SetCreationDate(CreationDateT &&value)
GetBucketResult & WithHostId(HostIdT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument