AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ElasticIp.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpsWorks
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_OPSWORKS_API ElasticIp();
35 AWS_OPSWORKS_API ElasticIp(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPSWORKS_API ElasticIp& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetIp() const{ return m_ip; }
45 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
46 inline void SetIp(const Aws::String& value) { m_ipHasBeenSet = true; m_ip = value; }
47 inline void SetIp(Aws::String&& value) { m_ipHasBeenSet = true; m_ip = std::move(value); }
48 inline void SetIp(const char* value) { m_ipHasBeenSet = true; m_ip.assign(value); }
49 inline ElasticIp& WithIp(const Aws::String& value) { SetIp(value); return *this;}
50 inline ElasticIp& WithIp(Aws::String&& value) { SetIp(std::move(value)); return *this;}
51 inline ElasticIp& WithIp(const char* value) { SetIp(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline ElasticIp& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline ElasticIp& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline ElasticIp& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetDomain() const{ return m_domain; }
73 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
74 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
75 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
76 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
77 inline ElasticIp& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
78 inline ElasticIp& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
79 inline ElasticIp& WithDomain(const char* value) { SetDomain(value); return *this;}
81
83
88 inline const Aws::String& GetRegion() const{ return m_region; }
89 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
90 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
91 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
92 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
93 inline ElasticIp& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
94 inline ElasticIp& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
95 inline ElasticIp& WithRegion(const char* value) { SetRegion(value); return *this;}
97
99
102 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
103 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
104 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
105 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
106 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
107 inline ElasticIp& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
108 inline ElasticIp& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
109 inline ElasticIp& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
111 private:
112
113 Aws::String m_ip;
114 bool m_ipHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_domain;
120 bool m_domainHasBeenSet = false;
121
122 Aws::String m_region;
123 bool m_regionHasBeenSet = false;
124
125 Aws::String m_instanceId;
126 bool m_instanceIdHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace OpsWorks
131} // namespace Aws
ElasticIp & WithDomain(const char *value)
Definition ElasticIp.h:79
ElasticIp & WithName(const char *value)
Definition ElasticIp.h:65
void SetName(const char *value)
Definition ElasticIp.h:62
void SetName(Aws::String &&value)
Definition ElasticIp.h:61
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDomain() const
Definition ElasticIp.h:72
void SetDomain(const Aws::String &value)
Definition ElasticIp.h:74
void SetInstanceId(const char *value)
Definition ElasticIp.h:106
const Aws::String & GetRegion() const
Definition ElasticIp.h:88
ElasticIp & WithDomain(const Aws::String &value)
Definition ElasticIp.h:77
ElasticIp & WithDomain(Aws::String &&value)
Definition ElasticIp.h:78
void SetRegion(const Aws::String &value)
Definition ElasticIp.h:90
void SetIp(Aws::String &&value)
Definition ElasticIp.h:47
void SetName(const Aws::String &value)
Definition ElasticIp.h:60
AWS_OPSWORKS_API ElasticIp(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition ElasticIp.h:58
void SetIp(const char *value)
Definition ElasticIp.h:48
AWS_OPSWORKS_API ElasticIp & operator=(Aws::Utils::Json::JsonView jsonValue)
ElasticIp & WithInstanceId(const Aws::String &value)
Definition ElasticIp.h:107
ElasticIp & WithInstanceId(Aws::String &&value)
Definition ElasticIp.h:108
const Aws::String & GetIp() const
Definition ElasticIp.h:44
void SetRegion(const char *value)
Definition ElasticIp.h:92
void SetDomain(Aws::String &&value)
Definition ElasticIp.h:75
ElasticIp & WithRegion(const char *value)
Definition ElasticIp.h:95
AWS_OPSWORKS_API ElasticIp()
void SetInstanceId(const Aws::String &value)
Definition ElasticIp.h:104
ElasticIp & WithIp(const Aws::String &value)
Definition ElasticIp.h:49
void SetDomain(const char *value)
Definition ElasticIp.h:76
ElasticIp & WithInstanceId(const char *value)
Definition ElasticIp.h:109
ElasticIp & WithName(Aws::String &&value)
Definition ElasticIp.h:64
const Aws::String & GetInstanceId() const
Definition ElasticIp.h:102
ElasticIp & WithName(const Aws::String &value)
Definition ElasticIp.h:63
void SetRegion(Aws::String &&value)
Definition ElasticIp.h:91
void SetIp(const Aws::String &value)
Definition ElasticIp.h:46
ElasticIp & WithIp(const char *value)
Definition ElasticIp.h:51
void SetInstanceId(Aws::String &&value)
Definition ElasticIp.h:105
ElasticIp & WithRegion(Aws::String &&value)
Definition ElasticIp.h:94
ElasticIp & WithRegion(const Aws::String &value)
Definition ElasticIp.h:93
ElasticIp & WithIp(Aws::String &&value)
Definition ElasticIp.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue