AWS SDK for C++  1.8.157
AWS SDK for C++
RegionalBucket.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3Control
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline const Aws::String& GetBucket() const{ return m_bucket; }
45 
49  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
50 
54  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
55 
59  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
60 
64  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
65 
69  inline RegionalBucket& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
70 
74  inline RegionalBucket& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
75 
79  inline RegionalBucket& WithBucket(const char* value) { SetBucket(value); return *this;}
80 
81 
85  inline const Aws::String& GetBucketArn() const{ return m_bucketArn; }
86 
90  inline bool BucketArnHasBeenSet() const { return m_bucketArnHasBeenSet; }
91 
95  inline void SetBucketArn(const Aws::String& value) { m_bucketArnHasBeenSet = true; m_bucketArn = value; }
96 
100  inline void SetBucketArn(Aws::String&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = std::move(value); }
101 
105  inline void SetBucketArn(const char* value) { m_bucketArnHasBeenSet = true; m_bucketArn.assign(value); }
106 
110  inline RegionalBucket& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;}
111 
115  inline RegionalBucket& WithBucketArn(Aws::String&& value) { SetBucketArn(std::move(value)); return *this;}
116 
120  inline RegionalBucket& WithBucketArn(const char* value) { SetBucketArn(value); return *this;}
121 
122 
126  inline bool GetPublicAccessBlockEnabled() const{ return m_publicAccessBlockEnabled; }
127 
131  inline bool PublicAccessBlockEnabledHasBeenSet() const { return m_publicAccessBlockEnabledHasBeenSet; }
132 
136  inline void SetPublicAccessBlockEnabled(bool value) { m_publicAccessBlockEnabledHasBeenSet = true; m_publicAccessBlockEnabled = value; }
137 
141  inline RegionalBucket& WithPublicAccessBlockEnabled(bool value) { SetPublicAccessBlockEnabled(value); return *this;}
142 
143 
147  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
148 
152  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
153 
157  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
158 
162  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
163 
167  inline RegionalBucket& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
168 
172  inline RegionalBucket& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
173 
174 
178  inline const Aws::String& GetOutpostId() const{ return m_outpostId; }
179 
183  inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
184 
188  inline void SetOutpostId(const Aws::String& value) { m_outpostIdHasBeenSet = true; m_outpostId = value; }
189 
193  inline void SetOutpostId(Aws::String&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::move(value); }
194 
198  inline void SetOutpostId(const char* value) { m_outpostIdHasBeenSet = true; m_outpostId.assign(value); }
199 
203  inline RegionalBucket& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
204 
208  inline RegionalBucket& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
209 
213  inline RegionalBucket& WithOutpostId(const char* value) { SetOutpostId(value); return *this;}
214 
215  private:
216 
217  Aws::String m_bucket;
218  bool m_bucketHasBeenSet;
219 
220  Aws::String m_bucketArn;
221  bool m_bucketArnHasBeenSet;
222 
223  bool m_publicAccessBlockEnabled;
224  bool m_publicAccessBlockEnabledHasBeenSet;
225 
226  Aws::Utils::DateTime m_creationDate;
227  bool m_creationDateHasBeenSet;
228 
229  Aws::String m_outpostId;
230  bool m_outpostIdHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace S3Control
235 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::S3Control::Model::RegionalBucket::GetPublicAccessBlockEnabled
bool GetPublicAccessBlockEnabled() const
Definition: RegionalBucket.h:126
Aws::S3Control::Model::RegionalBucket::PublicAccessBlockEnabledHasBeenSet
bool PublicAccessBlockEnabledHasBeenSet() const
Definition: RegionalBucket.h:131
Aws::S3Control::Model::RegionalBucket::WithBucket
RegionalBucket & WithBucket(Aws::String &&value)
Definition: RegionalBucket.h:74
Aws::S3Control::Model::RegionalBucket::GetBucketArn
const Aws::String & GetBucketArn() const
Definition: RegionalBucket.h:85
Aws::S3Control::Model::RegionalBucket::SetPublicAccessBlockEnabled
void SetPublicAccessBlockEnabled(bool value)
Definition: RegionalBucket.h:136
Aws::S3Control::Model::RegionalBucket::BucketArnHasBeenSet
bool BucketArnHasBeenSet() const
Definition: RegionalBucket.h:90
Aws::S3Control::Model::RegionalBucket::GetOutpostId
const Aws::String & GetOutpostId() const
Definition: RegionalBucket.h:178
Aws::S3Control::Model::RegionalBucket::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: RegionalBucket.h:157
Aws::S3Control::Model::RegionalBucket::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: RegionalBucket.h:152
Aws::S3Control::Model::RegionalBucket::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: RegionalBucket.h:147
Aws::S3Control::Model::RegionalBucket::WithCreationDate
RegionalBucket & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: RegionalBucket.h:167
DateTime.h
Aws::S3Control::Model::RegionalBucket::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: RegionalBucket.h:162
Aws::S3Control::Model::RegionalBucket::WithBucket
RegionalBucket & WithBucket(const char *value)
Definition: RegionalBucket.h:79
Aws::S3Control::Model::RegionalBucket::WithOutpostId
RegionalBucket & WithOutpostId(const Aws::String &value)
Definition: RegionalBucket.h:203
Aws::S3Control::Model::RegionalBucket::SetBucket
void SetBucket(Aws::String &&value)
Definition: RegionalBucket.h:59
S3Control_EXPORTS.h
Aws::S3Control::Model::RegionalBucket::SetBucket
void SetBucket(const Aws::String &value)
Definition: RegionalBucket.h:54
Aws::S3Control::Model::RegionalBucket::SetBucketArn
void SetBucketArn(Aws::String &&value)
Definition: RegionalBucket.h:100
Aws::S3Control::Model::RegionalBucket::SetBucketArn
void SetBucketArn(const Aws::String &value)
Definition: RegionalBucket.h:95
Aws::S3Control::Model::RegionalBucket::OutpostIdHasBeenSet
bool OutpostIdHasBeenSet() const
Definition: RegionalBucket.h:183
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::RegionalBucket::SetOutpostId
void SetOutpostId(const Aws::String &value)
Definition: RegionalBucket.h:188
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::RegionalBucket::SetOutpostId
void SetOutpostId(Aws::String &&value)
Definition: RegionalBucket.h:193
AWSString.h
Aws::S3Control::Model::RegionalBucket::WithCreationDate
RegionalBucket & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: RegionalBucket.h:172
Aws::S3Control::Model::RegionalBucket::WithBucket
RegionalBucket & WithBucket(const Aws::String &value)
Definition: RegionalBucket.h:69
Aws::S3Control::Model::RegionalBucket::WithBucketArn
RegionalBucket & WithBucketArn(Aws::String &&value)
Definition: RegionalBucket.h:115
Aws::S3Control::Model::RegionalBucket::RegionalBucket
RegionalBucket(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::RegionalBucket::SetOutpostId
void SetOutpostId(const char *value)
Definition: RegionalBucket.h:198
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::RegionalBucket::WithPublicAccessBlockEnabled
RegionalBucket & WithPublicAccessBlockEnabled(bool value)
Definition: RegionalBucket.h:141
Aws::S3Control::Model::RegionalBucket::WithOutpostId
RegionalBucket & WithOutpostId(Aws::String &&value)
Definition: RegionalBucket.h:208
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::RegionalBucket::SetBucketArn
void SetBucketArn(const char *value)
Definition: RegionalBucket.h:105
Aws::S3Control::Model::RegionalBucket::RegionalBucket
RegionalBucket()
Aws::S3Control::Model::RegionalBucket::WithBucketArn
RegionalBucket & WithBucketArn(const Aws::String &value)
Definition: RegionalBucket.h:110
Aws::S3Control::Model::RegionalBucket::WithOutpostId
RegionalBucket & WithOutpostId(const char *value)
Definition: RegionalBucket.h:213
Aws::S3Control::Model::RegionalBucket::GetBucket
const Aws::String & GetBucket() const
Definition: RegionalBucket.h:44
Aws::S3Control::Model::RegionalBucket::SetBucket
void SetBucket(const char *value)
Definition: RegionalBucket.h:64
Aws::S3Control::Model::RegionalBucket::operator=
RegionalBucket & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::RegionalBucket::WithBucketArn
RegionalBucket & WithBucketArn(const char *value)
Definition: RegionalBucket.h:120
Aws::S3Control::Model::RegionalBucket::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: RegionalBucket.h:49
Aws::S3Control::Model::RegionalBucket
Definition: RegionalBucket.h:32
Aws::S3Control::Model::RegionalBucket::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const