AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
Region.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/RegionGeography.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
29class Region {
30 public:
31 AWS_EC2_API Region() = default;
32 AWS_EC2_API Region(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_EC2_API Region& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
44 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
45 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
46 template <typename OptInStatusT = Aws::String>
47 void SetOptInStatus(OptInStatusT&& value) {
48 m_optInStatusHasBeenSet = true;
49 m_optInStatus = std::forward<OptInStatusT>(value);
50 }
51 template <typename OptInStatusT = Aws::String>
52 Region& WithOptInStatus(OptInStatusT&& value) {
53 SetOptInStatus(std::forward<OptInStatusT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Vector<RegionGeography>& GetGeography() const { return m_geography; }
64 inline bool GeographyHasBeenSet() const { return m_geographyHasBeenSet; }
65 template <typename GeographyT = Aws::Vector<RegionGeography>>
66 void SetGeography(GeographyT&& value) {
67 m_geographyHasBeenSet = true;
68 m_geography = std::forward<GeographyT>(value);
69 }
70 template <typename GeographyT = Aws::Vector<RegionGeography>>
71 Region& WithGeography(GeographyT&& value) {
72 SetGeography(std::forward<GeographyT>(value));
73 return *this;
74 }
75 template <typename GeographyT = RegionGeography>
76 Region& AddGeography(GeographyT&& value) {
77 m_geographyHasBeenSet = true;
78 m_geography.emplace_back(std::forward<GeographyT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetRegionName() const { return m_regionName; }
88 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
89 template <typename RegionNameT = Aws::String>
90 void SetRegionName(RegionNameT&& value) {
91 m_regionNameHasBeenSet = true;
92 m_regionName = std::forward<RegionNameT>(value);
93 }
94 template <typename RegionNameT = Aws::String>
95 Region& WithRegionName(RegionNameT&& value) {
96 SetRegionName(std::forward<RegionNameT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
106 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
107 template <typename EndpointT = Aws::String>
108 void SetEndpoint(EndpointT&& value) {
109 m_endpointHasBeenSet = true;
110 m_endpoint = std::forward<EndpointT>(value);
111 }
112 template <typename EndpointT = Aws::String>
113 Region& WithEndpoint(EndpointT&& value) {
114 SetEndpoint(std::forward<EndpointT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_optInStatus;
120
122
123 Aws::String m_regionName;
124
125 Aws::String m_endpoint;
126 bool m_optInStatusHasBeenSet = false;
127 bool m_geographyHasBeenSet = false;
128 bool m_regionNameHasBeenSet = false;
129 bool m_endpointHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace EC2
134} // namespace Aws
AWS_EC2_API Region & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API Region()=default
bool RegionNameHasBeenSet() const
Definition Region.h:88
Region & WithOptInStatus(OptInStatusT &&value)
Definition Region.h:52
Region & WithEndpoint(EndpointT &&value)
Definition Region.h:113
void SetEndpoint(EndpointT &&value)
Definition Region.h:108
bool EndpointHasBeenSet() const
Definition Region.h:106
const Aws::Vector< RegionGeography > & GetGeography() const
Definition Region.h:63
bool GeographyHasBeenSet() const
Definition Region.h:64
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool OptInStatusHasBeenSet() const
Definition Region.h:45
void SetRegionName(RegionNameT &&value)
Definition Region.h:90
void SetGeography(GeographyT &&value)
Definition Region.h:66
const Aws::String & GetEndpoint() const
Definition Region.h:105
void SetOptInStatus(OptInStatusT &&value)
Definition Region.h:47
Region & AddGeography(GeographyT &&value)
Definition Region.h:76
const Aws::String & GetOptInStatus() const
Definition Region.h:44
Region & WithGeography(GeographyT &&value)
Definition Region.h:71
const Aws::String & GetRegionName() const
Definition Region.h:87
Region & WithRegionName(RegionNameT &&value)
Definition Region.h:95
AWS_EC2_API Region(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream