AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegionalBucket.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{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_S3CONTROL_API RegionalBucket();
35 AWS_S3CONTROL_API RegionalBucket(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CONTROL_API RegionalBucket& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline const Aws::String& GetBucket() const{ return m_bucket; }
46 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
47 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
48 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
49 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
50 inline RegionalBucket& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
51 inline RegionalBucket& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
52 inline RegionalBucket& WithBucket(const char* value) { SetBucket(value); return *this;}
54
56
59 inline const Aws::String& GetBucketArn() const{ return m_bucketArn; }
60 inline bool BucketArnHasBeenSet() const { return m_bucketArnHasBeenSet; }
61 inline void SetBucketArn(const Aws::String& value) { m_bucketArnHasBeenSet = true; m_bucketArn = value; }
62 inline void SetBucketArn(Aws::String&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = std::move(value); }
63 inline void SetBucketArn(const char* value) { m_bucketArnHasBeenSet = true; m_bucketArn.assign(value); }
64 inline RegionalBucket& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;}
65 inline RegionalBucket& WithBucketArn(Aws::String&& value) { SetBucketArn(std::move(value)); return *this;}
66 inline RegionalBucket& WithBucketArn(const char* value) { SetBucketArn(value); return *this;}
68
70
73 inline bool GetPublicAccessBlockEnabled() const{ return m_publicAccessBlockEnabled; }
74 inline bool PublicAccessBlockEnabledHasBeenSet() const { return m_publicAccessBlockEnabledHasBeenSet; }
75 inline void SetPublicAccessBlockEnabled(bool value) { m_publicAccessBlockEnabledHasBeenSet = true; m_publicAccessBlockEnabled = value; }
76 inline RegionalBucket& WithPublicAccessBlockEnabled(bool value) { SetPublicAccessBlockEnabled(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
84 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
85 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
86 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
87 inline RegionalBucket& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
88 inline RegionalBucket& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetOutpostId() const{ return m_outpostId; }
96 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
97 inline void SetOutpostId(const Aws::String& value) { m_outpostIdHasBeenSet = true; m_outpostId = value; }
98 inline void SetOutpostId(Aws::String&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::move(value); }
99 inline void SetOutpostId(const char* value) { m_outpostIdHasBeenSet = true; m_outpostId.assign(value); }
100 inline RegionalBucket& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
101 inline RegionalBucket& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
102 inline RegionalBucket& WithOutpostId(const char* value) { SetOutpostId(value); return *this;}
104 private:
105
106 Aws::String m_bucket;
107 bool m_bucketHasBeenSet = false;
108
109 Aws::String m_bucketArn;
110 bool m_bucketArnHasBeenSet = false;
111
112 bool m_publicAccessBlockEnabled;
113 bool m_publicAccessBlockEnabledHasBeenSet = false;
114
115 Aws::Utils::DateTime m_creationDate;
116 bool m_creationDateHasBeenSet = false;
117
118 Aws::String m_outpostId;
119 bool m_outpostIdHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace S3Control
124} // namespace Aws
void SetOutpostId(const Aws::String &value)
void SetOutpostId(const char *value)
AWS_S3CONTROL_API RegionalBucket(const Aws::Utils::Xml::XmlNode &xmlNode)
RegionalBucket & WithOutpostId(const char *value)
void SetCreationDate(Aws::Utils::DateTime &&value)
RegionalBucket & WithCreationDate(const Aws::Utils::DateTime &value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
RegionalBucket & WithCreationDate(Aws::Utils::DateTime &&value)
RegionalBucket & WithPublicAccessBlockEnabled(bool value)
const Aws::Utils::DateTime & GetCreationDate() const
RegionalBucket & WithBucket(const Aws::String &value)
RegionalBucket & WithBucketArn(const Aws::String &value)
void SetBucketArn(Aws::String &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetBucketArn(const Aws::String &value)
RegionalBucket & WithOutpostId(const Aws::String &value)
void SetBucketArn(const char *value)
void SetBucket(const Aws::String &value)
RegionalBucket & WithBucket(const char *value)
RegionalBucket & WithOutpostId(Aws::String &&value)
const Aws::String & GetOutpostId() const
RegionalBucket & WithBucketArn(Aws::String &&value)
void SetBucket(Aws::String &&value)
RegionalBucket & WithBucketArn(const char *value)
const Aws::String & GetBucket() const
const Aws::String & GetBucketArn() const
AWS_S3CONTROL_API RegionalBucket & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RegionalBucket & WithBucket(Aws::String &&value)
void SetOutpostId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String