AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
27class Region {
28 public:
29 AWS_EC2_API Region() = default;
30 AWS_EC2_API Region(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_EC2_API Region& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
42 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
43 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
44 template <typename OptInStatusT = Aws::String>
45 void SetOptInStatus(OptInStatusT&& value) {
46 m_optInStatusHasBeenSet = true;
47 m_optInStatus = std::forward<OptInStatusT>(value);
48 }
49 template <typename OptInStatusT = Aws::String>
50 Region& WithOptInStatus(OptInStatusT&& value) {
51 SetOptInStatus(std::forward<OptInStatusT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRegionName() const { return m_regionName; }
61 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
62 template <typename RegionNameT = Aws::String>
63 void SetRegionName(RegionNameT&& value) {
64 m_regionNameHasBeenSet = true;
65 m_regionName = std::forward<RegionNameT>(value);
66 }
67 template <typename RegionNameT = Aws::String>
68 Region& WithRegionName(RegionNameT&& value) {
69 SetRegionName(std::forward<RegionNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
79 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
80 template <typename EndpointT = Aws::String>
81 void SetEndpoint(EndpointT&& value) {
82 m_endpointHasBeenSet = true;
83 m_endpoint = std::forward<EndpointT>(value);
84 }
85 template <typename EndpointT = Aws::String>
86 Region& WithEndpoint(EndpointT&& value) {
87 SetEndpoint(std::forward<EndpointT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_optInStatus;
93
94 Aws::String m_regionName;
95
96 Aws::String m_endpoint;
97 bool m_optInStatusHasBeenSet = false;
98 bool m_regionNameHasBeenSet = false;
99 bool m_endpointHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EC2
104} // 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:61
Region & WithOptInStatus(OptInStatusT &&value)
Definition Region.h:50
Region & WithEndpoint(EndpointT &&value)
Definition Region.h:86
void SetEndpoint(EndpointT &&value)
Definition Region.h:81
bool EndpointHasBeenSet() const
Definition Region.h:79
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool OptInStatusHasBeenSet() const
Definition Region.h:43
void SetRegionName(RegionNameT &&value)
Definition Region.h:63
const Aws::String & GetEndpoint() const
Definition Region.h:78
void SetOptInStatus(OptInStatusT &&value)
Definition Region.h:45
const Aws::String & GetOptInStatus() const
Definition Region.h:42
const Aws::String & GetRegionName() const
Definition Region.h:60
Region & WithRegionName(RegionNameT &&value)
Definition Region.h:68
AWS_EC2_API Region(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream