AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Region.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
31 class Region
32 {
33 public:
34 AWS_EC2_API Region() = default;
35 AWS_EC2_API Region(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API Region& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
48 inline const Aws::String& GetOptInStatus() const { return m_optInStatus; }
49 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
50 template<typename OptInStatusT = Aws::String>
51 void SetOptInStatus(OptInStatusT&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::forward<OptInStatusT>(value); }
52 template<typename OptInStatusT = Aws::String>
53 Region& WithOptInStatus(OptInStatusT&& value) { SetOptInStatus(std::forward<OptInStatusT>(value)); return *this;}
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) { m_regionNameHasBeenSet = true; m_regionName = std::forward<RegionNameT>(value); }
64 template<typename RegionNameT = Aws::String>
65 Region& WithRegionName(RegionNameT&& value) { SetRegionName(std::forward<RegionNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
73 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
74 template<typename EndpointT = Aws::String>
75 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
76 template<typename EndpointT = Aws::String>
77 Region& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
79 private:
80
81 Aws::String m_optInStatus;
82 bool m_optInStatusHasBeenSet = false;
83
84 Aws::String m_regionName;
85 bool m_regionNameHasBeenSet = false;
86
87 Aws::String m_endpoint;
88 bool m_endpointHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EC2
93} // 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:53
Region & WithEndpoint(EndpointT &&value)
Definition Region.h:77
void SetEndpoint(EndpointT &&value)
Definition Region.h:75
bool EndpointHasBeenSet() const
Definition Region.h:73
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool OptInStatusHasBeenSet() const
Definition Region.h:49
void SetRegionName(RegionNameT &&value)
Definition Region.h:63
const Aws::String & GetEndpoint() const
Definition Region.h:72
void SetOptInStatus(OptInStatusT &&value)
Definition Region.h:51
const Aws::String & GetOptInStatus() const
Definition Region.h:48
const Aws::String & GetRegionName() const
Definition Region.h:60
Region & WithRegionName(RegionNameT &&value)
Definition Region.h:65
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