AWS SDK for C++  1.9.74
AWS SDK for C++
Region.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Region();
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
46 
50  inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
51 
55  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
56 
60  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
61 
65  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
66 
70  inline Region& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
71 
75  inline Region& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
76 
80  inline Region& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
81 
82 
86  inline const Aws::String& GetRegionName() const{ return m_regionName; }
87 
91  inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
92 
96  inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
97 
101  inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
102 
106  inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); }
107 
111  inline Region& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
112 
116  inline Region& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
117 
121  inline Region& WithRegionName(const char* value) { SetRegionName(value); return *this;}
122 
123 
129  inline const Aws::String& GetOptInStatus() const{ return m_optInStatus; }
130 
136  inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
137 
143  inline void SetOptInStatus(const Aws::String& value) { m_optInStatusHasBeenSet = true; m_optInStatus = value; }
144 
150  inline void SetOptInStatus(Aws::String&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::move(value); }
151 
157  inline void SetOptInStatus(const char* value) { m_optInStatusHasBeenSet = true; m_optInStatus.assign(value); }
158 
164  inline Region& WithOptInStatus(const Aws::String& value) { SetOptInStatus(value); return *this;}
165 
171  inline Region& WithOptInStatus(Aws::String&& value) { SetOptInStatus(std::move(value)); return *this;}
172 
178  inline Region& WithOptInStatus(const char* value) { SetOptInStatus(value); return *this;}
179 
180  private:
181 
182  Aws::String m_endpoint;
183  bool m_endpointHasBeenSet;
184 
185  Aws::String m_regionName;
186  bool m_regionNameHasBeenSet;
187 
188  Aws::String m_optInStatus;
189  bool m_optInStatusHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace EC2
194 } // namespace Aws
Aws::EC2::Model::Region::SetEndpoint
void SetEndpoint(const Aws::String &value)
Definition: Region.h:55
Aws::EC2::Model::Region::WithRegionName
Region & WithRegionName(const Aws::String &value)
Definition: Region.h:111
Aws::EC2::Model::Region::GetRegionName
const Aws::String & GetRegionName() const
Definition: Region.h:86
Aws::EC2::Model::Region::GetEndpoint
const Aws::String & GetEndpoint() const
Definition: Region.h:45
Aws::EC2::Model::Region::OptInStatusHasBeenSet
bool OptInStatusHasBeenSet() const
Definition: Region.h:136
Aws::EC2::Model::Region::SetOptInStatus
void SetOptInStatus(Aws::String &&value)
Definition: Region.h:150
Aws::EC2::Model::Region::Region
Region(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Region::SetOptInStatus
void SetOptInStatus(const Aws::String &value)
Definition: Region.h:143
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::Region::WithEndpoint
Region & WithEndpoint(const char *value)
Definition: Region.h:80
Aws::EC2::Model::Region::GetOptInStatus
const Aws::String & GetOptInStatus() const
Definition: Region.h:129
Aws::EC2::Model::Region::WithRegionName
Region & WithRegionName(Aws::String &&value)
Definition: Region.h:116
Aws::EC2::Model::Region::SetEndpoint
void SetEndpoint(const char *value)
Definition: Region.h:65
Aws::EC2::Model::Region::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::Region::SetRegionName
void SetRegionName(const Aws::String &value)
Definition: Region.h:96
Aws::EC2::Model::Region::SetRegionName
void SetRegionName(Aws::String &&value)
Definition: Region.h:101
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::Region::operator=
Region & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Region::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::Region::WithOptInStatus
Region & WithOptInStatus(const Aws::String &value)
Definition: Region.h:164
Aws::EC2::Model::Region::SetOptInStatus
void SetOptInStatus(const char *value)
Definition: Region.h:157
AWSString.h
Aws::EC2::Model::Region::WithEndpoint
Region & WithEndpoint(const Aws::String &value)
Definition: Region.h:70
Aws::EC2::Model::Region::EndpointHasBeenSet
bool EndpointHasBeenSet() const
Definition: Region.h:50
Aws::EC2::Model::Region::WithRegionName
Region & WithRegionName(const char *value)
Definition: Region.h:121
Aws::EC2::Model::Region::SetRegionName
void SetRegionName(const char *value)
Definition: Region.h:106
Aws::EC2::Model::Region::SetEndpoint
void SetEndpoint(Aws::String &&value)
Definition: Region.h:60
Aws::EC2::Model::Region::WithEndpoint
Region & WithEndpoint(Aws::String &&value)
Definition: Region.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::Region::WithOptInStatus
Region & WithOptInStatus(const char *value)
Definition: Region.h:178
Aws::EC2::Model::Region::RegionNameHasBeenSet
bool RegionNameHasBeenSet() const
Definition: Region.h:91
Aws::EC2::Model::Region::WithOptInStatus
Region & WithOptInStatus(Aws::String &&value)
Definition: Region.h:171
EC2_EXPORTS.h
Aws::EC2::Model::Region::Region
Region()
Aws::EC2::Model::Region
Definition: Region.h:32