AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOptInStatus(const Aws::String& value) { m_optInStatusHasBeenSet = true; m_optInStatus = value; }
51 inline void SetOptInStatus(Aws::String&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::move(value); }
52 inline void SetOptInStatus(const char* value) { m_optInStatusHasBeenSet = true; m_optInStatus.assign(value); }
53 inline Region& WithOptInStatus(const Aws::String& value) { SetOptInStatus(value); return *this;}
54 inline Region& WithOptInStatus(Aws::String&& value) { SetOptInStatus(std::move(value)); return *this;}
55 inline Region& WithOptInStatus(const char* value) { SetOptInStatus(value); return *this;}
57
59
62 inline const Aws::String& GetRegionName() const{ return m_regionName; }
63 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
64 inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
65 inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
66 inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); }
67 inline Region& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
68 inline Region& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
69 inline Region& WithRegionName(const char* value) { SetRegionName(value); return *this;}
71
73
76 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
77 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
78 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
79 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
80 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
81 inline Region& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
82 inline Region& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
83 inline Region& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
85 private:
86
87 Aws::String m_optInStatus;
88 bool m_optInStatusHasBeenSet = false;
89
90 Aws::String m_regionName;
91 bool m_regionNameHasBeenSet = false;
92
93 Aws::String m_endpoint;
94 bool m_endpointHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EC2
99} // namespace Aws
void SetOptInStatus(const Aws::String &value)
Definition Region.h:50
Region & WithRegionName(Aws::String &&value)
Definition Region.h:68
Region & WithEndpoint(Aws::String &&value)
Definition Region.h:82
Region & WithRegionName(const char *value)
Definition Region.h:69
void SetRegionName(Aws::String &&value)
Definition Region.h:65
void SetRegionName(const char *value)
Definition Region.h:66
AWS_EC2_API Region & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Region & WithEndpoint(const char *value)
Definition Region.h:83
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool RegionNameHasBeenSet() const
Definition Region.h:63
void SetEndpoint(Aws::String &&value)
Definition Region.h:79
void SetOptInStatus(const char *value)
Definition Region.h:52
Region & WithOptInStatus(const char *value)
Definition Region.h:55
void SetEndpoint(const char *value)
Definition Region.h:80
Region & WithEndpoint(const Aws::String &value)
Definition Region.h:81
bool EndpointHasBeenSet() const
Definition Region.h:77
Region & WithOptInStatus(Aws::String &&value)
Definition Region.h:54
void SetRegionName(const Aws::String &value)
Definition Region.h:64
Region & WithOptInStatus(const Aws::String &value)
Definition Region.h:53
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool OptInStatusHasBeenSet() const
Definition Region.h:49
Region & WithRegionName(const Aws::String &value)
Definition Region.h:67
const Aws::String & GetEndpoint() const
Definition Region.h:76
void SetEndpoint(const Aws::String &value)
Definition Region.h:78
const Aws::String & GetOptInStatus() const
Definition Region.h:48
const Aws::String & GetRegionName() const
Definition Region.h:62
void SetOptInStatus(Aws::String &&value)
Definition Region.h:51
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