AWS SDK for C++  1.9.105
AWS SDK for C++
ElasticIp.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace OpsWorks
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetIp() const{ return m_ip; }
44 
48  inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
49 
53  inline void SetIp(const Aws::String& value) { m_ipHasBeenSet = true; m_ip = value; }
54 
58  inline void SetIp(Aws::String&& value) { m_ipHasBeenSet = true; m_ip = std::move(value); }
59 
63  inline void SetIp(const char* value) { m_ipHasBeenSet = true; m_ip.assign(value); }
64 
68  inline ElasticIp& WithIp(const Aws::String& value) { SetIp(value); return *this;}
69 
73  inline ElasticIp& WithIp(Aws::String&& value) { SetIp(std::move(value)); return *this;}
74 
78  inline ElasticIp& WithIp(const char* value) { SetIp(value); return *this;}
79 
80 
84  inline const Aws::String& GetName() const{ return m_name; }
85 
89  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 
94  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 
104  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
105 
109  inline ElasticIp& WithName(const Aws::String& value) { SetName(value); return *this;}
110 
114  inline ElasticIp& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 
119  inline ElasticIp& WithName(const char* value) { SetName(value); return *this;}
120 
121 
125  inline const Aws::String& GetDomain() const{ return m_domain; }
126 
130  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
131 
135  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
136 
140  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
141 
145  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
146 
150  inline ElasticIp& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
151 
155  inline ElasticIp& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
156 
160  inline ElasticIp& WithDomain(const char* value) { SetDomain(value); return *this;}
161 
162 
168  inline const Aws::String& GetRegion() const{ return m_region; }
169 
175  inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
176 
182  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
183 
189  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
190 
196  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
197 
203  inline ElasticIp& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
204 
210  inline ElasticIp& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
211 
217  inline ElasticIp& WithRegion(const char* value) { SetRegion(value); return *this;}
218 
219 
223  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
224 
228  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
229 
233  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
234 
238  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
239 
243  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
244 
248  inline ElasticIp& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
249 
253  inline ElasticIp& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
254 
258  inline ElasticIp& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
259 
260  private:
261 
262  Aws::String m_ip;
263  bool m_ipHasBeenSet;
264 
265  Aws::String m_name;
266  bool m_nameHasBeenSet;
267 
268  Aws::String m_domain;
269  bool m_domainHasBeenSet;
270 
271  Aws::String m_region;
272  bool m_regionHasBeenSet;
273 
274  Aws::String m_instanceId;
275  bool m_instanceIdHasBeenSet;
276  };
277 
278 } // namespace Model
279 } // namespace OpsWorks
280 } // namespace Aws
Aws::OpsWorks::Model::ElasticIp::GetDomain
const Aws::String & GetDomain() const
Definition: ElasticIp.h:125
Aws::OpsWorks::Model::ElasticIp::SetName
void SetName(const char *value)
Definition: ElasticIp.h:104
Aws::OpsWorks::Model::ElasticIp::WithName
ElasticIp & WithName(const Aws::String &value)
Definition: ElasticIp.h:109
Aws::OpsWorks::Model::ElasticIp::operator=
ElasticIp & operator=(Aws::Utils::Json::JsonView jsonValue)
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::ElasticIp::SetIp
void SetIp(const Aws::String &value)
Definition: ElasticIp.h:53
Aws::OpsWorks::Model::ElasticIp::SetDomain
void SetDomain(const Aws::String &value)
Definition: ElasticIp.h:135
Aws::OpsWorks::Model::ElasticIp::WithInstanceId
ElasticIp & WithInstanceId(const char *value)
Definition: ElasticIp.h:258
Aws::OpsWorks::Model::ElasticIp::GetName
const Aws::String & GetName() const
Definition: ElasticIp.h:84
Aws::OpsWorks::Model::ElasticIp::SetRegion
void SetRegion(Aws::String &&value)
Definition: ElasticIp.h:189
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::ElasticIp::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ElasticIp.h:238
Aws::OpsWorks::Model::ElasticIp::WithInstanceId
ElasticIp & WithInstanceId(Aws::String &&value)
Definition: ElasticIp.h:253
Aws::OpsWorks::Model::ElasticIp::SetRegion
void SetRegion(const char *value)
Definition: ElasticIp.h:196
Aws::OpsWorks::Model::ElasticIp::WithName
ElasticIp & WithName(Aws::String &&value)
Definition: ElasticIp.h:114
Aws::OpsWorks::Model::ElasticIp::SetRegion
void SetRegion(const Aws::String &value)
Definition: ElasticIp.h:182
Aws::OpsWorks::Model::ElasticIp::SetInstanceId
void SetInstanceId(const char *value)
Definition: ElasticIp.h:243
Aws::OpsWorks::Model::ElasticIp::WithRegion
ElasticIp & WithRegion(const Aws::String &value)
Definition: ElasticIp.h:203
Aws::OpsWorks::Model::ElasticIp::GetIp
const Aws::String & GetIp() const
Definition: ElasticIp.h:43
Aws::OpsWorks::Model::ElasticIp::WithIp
ElasticIp & WithIp(const Aws::String &value)
Definition: ElasticIp.h:68
Aws::OpsWorks::Model::ElasticIp::RegionHasBeenSet
bool RegionHasBeenSet() const
Definition: ElasticIp.h:175
Aws::OpsWorks::Model::ElasticIp::SetName
void SetName(Aws::String &&value)
Definition: ElasticIp.h:99
Aws::OpsWorks::Model::ElasticIp::WithIp
ElasticIp & WithIp(Aws::String &&value)
Definition: ElasticIp.h:73
Aws::OpsWorks::Model::ElasticIp::WithDomain
ElasticIp & WithDomain(const Aws::String &value)
Definition: ElasticIp.h:150
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::ElasticIp::SetDomain
void SetDomain(Aws::String &&value)
Definition: ElasticIp.h:140
Aws::OpsWorks::Model::ElasticIp::ElasticIp
ElasticIp()
Aws::OpsWorks::Model::ElasticIp::SetDomain
void SetDomain(const char *value)
Definition: ElasticIp.h:145
Aws::OpsWorks::Model::ElasticIp
Definition: ElasticIp.h:32
Aws::OpsWorks::Model::ElasticIp::WithRegion
ElasticIp & WithRegion(const char *value)
Definition: ElasticIp.h:217
Aws::OpsWorks::Model::ElasticIp::WithIp
ElasticIp & WithIp(const char *value)
Definition: ElasticIp.h:78
Aws::OpsWorks::Model::ElasticIp::WithDomain
ElasticIp & WithDomain(const char *value)
Definition: ElasticIp.h:160
Aws::OpsWorks::Model::ElasticIp::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ElasticIp.h:233
Aws::OpsWorks::Model::ElasticIp::WithDomain
ElasticIp & WithDomain(Aws::String &&value)
Definition: ElasticIp.h:155
Aws::OpsWorks::Model::ElasticIp::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ElasticIp.h:228
Aws::OpsWorks::Model::ElasticIp::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ElasticIp.h:223
Aws::OpsWorks::Model::ElasticIp::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ElasticIp.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::ElasticIp::WithRegion
ElasticIp & WithRegion(Aws::String &&value)
Definition: ElasticIp.h:210
Aws::OpsWorks::Model::ElasticIp::SetIp
void SetIp(const char *value)
Definition: ElasticIp.h:63
Aws::OpsWorks::Model::ElasticIp::SetIp
void SetIp(Aws::String &&value)
Definition: ElasticIp.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::ElasticIp::SetName
void SetName(const Aws::String &value)
Definition: ElasticIp.h:94
Aws::OpsWorks::Model::ElasticIp::WithName
ElasticIp & WithName(const char *value)
Definition: ElasticIp.h:119
Aws::OpsWorks::Model::ElasticIp::GetRegion
const Aws::String & GetRegion() const
Definition: ElasticIp.h:168
Aws::OpsWorks::Model::ElasticIp::DomainHasBeenSet
bool DomainHasBeenSet() const
Definition: ElasticIp.h:130
Aws::OpsWorks::Model::ElasticIp::ElasticIp
ElasticIp(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::ElasticIp::IpHasBeenSet
bool IpHasBeenSet() const
Definition: ElasticIp.h:48
Aws::OpsWorks::Model::ElasticIp::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::ElasticIp::WithInstanceId
ElasticIp & WithInstanceId(const Aws::String &value)
Definition: ElasticIp.h:248