AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MultiRegionAccessPointReport.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 <aws/s3control/model/PublicAccessBlockConfiguration.h>
11#include <aws/s3control/model/MultiRegionAccessPointStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/s3control/model/RegionReport.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace S3Control
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_S3CONTROL_API MultiRegionAccessPointReport() = default;
40 AWS_S3CONTROL_API MultiRegionAccessPointReport(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 MultiRegionAccessPointReport& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
66 inline const Aws::String& GetAlias() const { return m_alias; }
67 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
68 template<typename AliasT = Aws::String>
69 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
70 template<typename AliasT = Aws::String>
71 MultiRegionAccessPointReport& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
79 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
80 template<typename CreatedAtT = Aws::Utils::DateTime>
81 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
82 template<typename CreatedAtT = Aws::Utils::DateTime>
83 MultiRegionAccessPointReport& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
85
87
88 inline const PublicAccessBlockConfiguration& GetPublicAccessBlock() const { return m_publicAccessBlock; }
89 inline bool PublicAccessBlockHasBeenSet() const { return m_publicAccessBlockHasBeenSet; }
90 template<typename PublicAccessBlockT = PublicAccessBlockConfiguration>
91 void SetPublicAccessBlock(PublicAccessBlockT&& value) { m_publicAccessBlockHasBeenSet = true; m_publicAccessBlock = std::forward<PublicAccessBlockT>(value); }
92 template<typename PublicAccessBlockT = PublicAccessBlockConfiguration>
93 MultiRegionAccessPointReport& WithPublicAccessBlock(PublicAccessBlockT&& value) { SetPublicAccessBlock(std::forward<PublicAccessBlockT>(value)); return *this;}
95
97
106 inline MultiRegionAccessPointStatus GetStatus() const { return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(MultiRegionAccessPointStatus value) { m_statusHasBeenSet = true; m_status = value; }
111
113
117 inline const Aws::Vector<RegionReport>& GetRegions() const { return m_regions; }
118 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
119 template<typename RegionsT = Aws::Vector<RegionReport>>
120 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
121 template<typename RegionsT = Aws::Vector<RegionReport>>
122 MultiRegionAccessPointReport& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
123 template<typename RegionsT = RegionReport>
124 MultiRegionAccessPointReport& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
126 private:
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::String m_alias;
132 bool m_aliasHasBeenSet = false;
133
134 Aws::Utils::DateTime m_createdAt{};
135 bool m_createdAtHasBeenSet = false;
136
137 PublicAccessBlockConfiguration m_publicAccessBlock;
138 bool m_publicAccessBlockHasBeenSet = false;
139
141 bool m_statusHasBeenSet = false;
142
144 bool m_regionsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace S3Control
149} // namespace Aws
MultiRegionAccessPointReport & WithRegions(RegionsT &&value)
AWS_S3CONTROL_API MultiRegionAccessPointReport(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API MultiRegionAccessPointReport()=default
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const PublicAccessBlockConfiguration & GetPublicAccessBlock() const
AWS_S3CONTROL_API MultiRegionAccessPointReport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MultiRegionAccessPointReport & WithPublicAccessBlock(PublicAccessBlockT &&value)
MultiRegionAccessPointReport & WithCreatedAt(CreatedAtT &&value)
MultiRegionAccessPointReport & WithName(NameT &&value)
MultiRegionAccessPointReport & WithAlias(AliasT &&value)
MultiRegionAccessPointReport & AddRegions(RegionsT &&value)
MultiRegionAccessPointReport & WithStatus(MultiRegionAccessPointStatus value)
const Aws::Vector< RegionReport > & GetRegions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector