AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
RegionReport.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3Control {
19namespace Model {
20
28 public:
29 AWS_S3CONTROL_API RegionReport() = default;
30 AWS_S3CONTROL_API RegionReport(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_S3CONTROL_API RegionReport& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline const Aws::String& GetBucket() const { return m_bucket; }
40 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
41 template <typename BucketT = Aws::String>
42 void SetBucket(BucketT&& value) {
43 m_bucketHasBeenSet = true;
44 m_bucket = std::forward<BucketT>(value);
45 }
46 template <typename BucketT = Aws::String>
47 RegionReport& WithBucket(BucketT&& value) {
48 SetBucket(std::forward<BucketT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRegion() const { return m_region; }
58 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
59 template <typename RegionT = Aws::String>
60 void SetRegion(RegionT&& value) {
61 m_regionHasBeenSet = true;
62 m_region = std::forward<RegionT>(value);
63 }
64 template <typename RegionT = Aws::String>
65 RegionReport& WithRegion(RegionT&& value) {
66 SetRegion(std::forward<RegionT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
77 inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; }
78 template <typename BucketAccountIdT = Aws::String>
79 void SetBucketAccountId(BucketAccountIdT&& value) {
80 m_bucketAccountIdHasBeenSet = true;
81 m_bucketAccountId = std::forward<BucketAccountIdT>(value);
82 }
83 template <typename BucketAccountIdT = Aws::String>
84 RegionReport& WithBucketAccountId(BucketAccountIdT&& value) {
85 SetBucketAccountId(std::forward<BucketAccountIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_bucket;
91
92 Aws::String m_region;
93
94 Aws::String m_bucketAccountId;
95 bool m_bucketHasBeenSet = false;
96 bool m_regionHasBeenSet = false;
97 bool m_bucketAccountIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace S3Control
102} // namespace Aws
void SetBucket(BucketT &&value)
const Aws::String & GetBucket() const
RegionReport & WithRegion(RegionT &&value)
AWS_S3CONTROL_API RegionReport(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API RegionReport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
RegionReport & WithBucket(BucketT &&value)
AWS_S3CONTROL_API RegionReport()=default
RegionReport & WithBucketAccountId(BucketAccountIdT &&value)
const Aws::String & GetBucketAccountId() const
void SetBucketAccountId(BucketAccountIdT &&value)
void SetRegion(RegionT &&value)
const Aws::String & GetRegion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String