AWS SDK for C++  1.8.154
AWS SDK for C++
GetBucketResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace S3Control
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetBucket() const{ return m_bucket; }
40 
44  inline void SetBucket(const Aws::String& value) { m_bucket = value; }
45 
49  inline void SetBucket(Aws::String&& value) { m_bucket = std::move(value); }
50 
54  inline void SetBucket(const char* value) { m_bucket.assign(value); }
55 
59  inline GetBucketResult& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
60 
64  inline GetBucketResult& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
65 
69  inline GetBucketResult& WithBucket(const char* value) { SetBucket(value); return *this;}
70 
71 
75  inline bool GetPublicAccessBlockEnabled() const{ return m_publicAccessBlockEnabled; }
76 
80  inline void SetPublicAccessBlockEnabled(bool value) { m_publicAccessBlockEnabled = value; }
81 
85  inline GetBucketResult& WithPublicAccessBlockEnabled(bool value) { SetPublicAccessBlockEnabled(value); return *this;}
86 
87 
91  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
92 
96  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
97 
101  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
102 
106  inline GetBucketResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
107 
111  inline GetBucketResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_bucket;
116 
117  bool m_publicAccessBlockEnabled;
118 
119  Aws::Utils::DateTime m_creationDate;
120  };
121 
122 } // namespace Model
123 } // namespace S3Control
124 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::S3Control::Model::GetBucketResult
Definition: GetBucketResult.h:29
Aws::S3Control::Model::GetBucketResult::WithCreationDate
GetBucketResult & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: GetBucketResult.h:106
Aws::S3Control::Model::GetBucketResult::SetBucket
void SetBucket(const Aws::String &value)
Definition: GetBucketResult.h:44
DateTime.h
Aws::S3Control::Model::GetBucketResult::WithBucket
GetBucketResult & WithBucket(Aws::String &&value)
Definition: GetBucketResult.h:64
Aws::S3Control::Model::GetBucketResult::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: GetBucketResult.h:101
Aws::S3Control::Model::GetBucketResult::WithCreationDate
GetBucketResult & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: GetBucketResult.h:111
S3Control_EXPORTS.h
Aws::S3Control::Model::GetBucketResult::GetBucketResult
GetBucketResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::S3Control::Model::GetBucketResult::GetPublicAccessBlockEnabled
bool GetPublicAccessBlockEnabled() const
Definition: GetBucketResult.h:75
Aws::S3Control::Model::GetBucketResult::GetBucket
const Aws::String & GetBucket() const
Definition: GetBucketResult.h:39
Aws::S3Control::Model::GetBucketResult::WithPublicAccessBlockEnabled
GetBucketResult & WithPublicAccessBlockEnabled(bool value)
Definition: GetBucketResult.h:85
Aws::S3Control::Model::GetBucketResult::operator=
GetBucketResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::GetBucketResult::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: GetBucketResult.h:91
Aws::S3Control::Model::GetBucketResult::GetBucketResult
GetBucketResult()
AWSString.h
Aws::S3Control::Model::GetBucketResult::WithBucket
GetBucketResult & WithBucket(const Aws::String &value)
Definition: GetBucketResult.h:59
Aws::S3Control::Model::GetBucketResult::WithBucket
GetBucketResult & WithBucket(const char *value)
Definition: GetBucketResult.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::GetBucketResult::SetBucket
void SetBucket(const char *value)
Definition: GetBucketResult.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::GetBucketResult::SetBucket
void SetBucket(Aws::String &&value)
Definition: GetBucketResult.h:49
Aws::S3Control::Model::GetBucketResult::SetPublicAccessBlockEnabled
void SetPublicAccessBlockEnabled(bool value)
Definition: GetBucketResult.h:80
Aws::S3Control::Model::GetBucketResult::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: GetBucketResult.h:96