AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpamScope.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 <aws/ec2/model/IpamScopeType.h>
11#include <aws/ec2/model/IpamScopeState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
44 {
45 public:
46 AWS_EC2_API IpamScope();
47 AWS_EC2_API IpamScope(const Aws::Utils::Xml::XmlNode& xmlNode);
48 AWS_EC2_API IpamScope& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
52
53
55
58 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
59 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
60 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
61 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
62 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
63 inline IpamScope& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
64 inline IpamScope& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
65 inline IpamScope& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
67
69
72 inline const Aws::String& GetIpamScopeId() const{ return m_ipamScopeId; }
73 inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; }
74 inline void SetIpamScopeId(const Aws::String& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = value; }
75 inline void SetIpamScopeId(Aws::String&& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = std::move(value); }
76 inline void SetIpamScopeId(const char* value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId.assign(value); }
77 inline IpamScope& WithIpamScopeId(const Aws::String& value) { SetIpamScopeId(value); return *this;}
78 inline IpamScope& WithIpamScopeId(Aws::String&& value) { SetIpamScopeId(std::move(value)); return *this;}
79 inline IpamScope& WithIpamScopeId(const char* value) { SetIpamScopeId(value); return *this;}
81
83
86 inline const Aws::String& GetIpamScopeArn() const{ return m_ipamScopeArn; }
87 inline bool IpamScopeArnHasBeenSet() const { return m_ipamScopeArnHasBeenSet; }
88 inline void SetIpamScopeArn(const Aws::String& value) { m_ipamScopeArnHasBeenSet = true; m_ipamScopeArn = value; }
89 inline void SetIpamScopeArn(Aws::String&& value) { m_ipamScopeArnHasBeenSet = true; m_ipamScopeArn = std::move(value); }
90 inline void SetIpamScopeArn(const char* value) { m_ipamScopeArnHasBeenSet = true; m_ipamScopeArn.assign(value); }
91 inline IpamScope& WithIpamScopeArn(const Aws::String& value) { SetIpamScopeArn(value); return *this;}
92 inline IpamScope& WithIpamScopeArn(Aws::String&& value) { SetIpamScopeArn(std::move(value)); return *this;}
93 inline IpamScope& WithIpamScopeArn(const char* value) { SetIpamScopeArn(value); return *this;}
95
97
100 inline const Aws::String& GetIpamArn() const{ return m_ipamArn; }
101 inline bool IpamArnHasBeenSet() const { return m_ipamArnHasBeenSet; }
102 inline void SetIpamArn(const Aws::String& value) { m_ipamArnHasBeenSet = true; m_ipamArn = value; }
103 inline void SetIpamArn(Aws::String&& value) { m_ipamArnHasBeenSet = true; m_ipamArn = std::move(value); }
104 inline void SetIpamArn(const char* value) { m_ipamArnHasBeenSet = true; m_ipamArn.assign(value); }
105 inline IpamScope& WithIpamArn(const Aws::String& value) { SetIpamArn(value); return *this;}
106 inline IpamScope& WithIpamArn(Aws::String&& value) { SetIpamArn(std::move(value)); return *this;}
107 inline IpamScope& WithIpamArn(const char* value) { SetIpamArn(value); return *this;}
109
111
114 inline const Aws::String& GetIpamRegion() const{ return m_ipamRegion; }
115 inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; }
116 inline void SetIpamRegion(const Aws::String& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = value; }
117 inline void SetIpamRegion(Aws::String&& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = std::move(value); }
118 inline void SetIpamRegion(const char* value) { m_ipamRegionHasBeenSet = true; m_ipamRegion.assign(value); }
119 inline IpamScope& WithIpamRegion(const Aws::String& value) { SetIpamRegion(value); return *this;}
120 inline IpamScope& WithIpamRegion(Aws::String&& value) { SetIpamRegion(std::move(value)); return *this;}
121 inline IpamScope& WithIpamRegion(const char* value) { SetIpamRegion(value); return *this;}
123
125
128 inline const IpamScopeType& GetIpamScopeType() const{ return m_ipamScopeType; }
129 inline bool IpamScopeTypeHasBeenSet() const { return m_ipamScopeTypeHasBeenSet; }
130 inline void SetIpamScopeType(const IpamScopeType& value) { m_ipamScopeTypeHasBeenSet = true; m_ipamScopeType = value; }
131 inline void SetIpamScopeType(IpamScopeType&& value) { m_ipamScopeTypeHasBeenSet = true; m_ipamScopeType = std::move(value); }
132 inline IpamScope& WithIpamScopeType(const IpamScopeType& value) { SetIpamScopeType(value); return *this;}
133 inline IpamScope& WithIpamScopeType(IpamScopeType&& value) { SetIpamScopeType(std::move(value)); return *this;}
135
137
140 inline bool GetIsDefault() const{ return m_isDefault; }
141 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
142 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
143 inline IpamScope& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
145
147
150 inline const Aws::String& GetDescription() const{ return m_description; }
151 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
152 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
153 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
154 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
155 inline IpamScope& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
156 inline IpamScope& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
157 inline IpamScope& WithDescription(const char* value) { SetDescription(value); return *this;}
159
161
164 inline int GetPoolCount() const{ return m_poolCount; }
165 inline bool PoolCountHasBeenSet() const { return m_poolCountHasBeenSet; }
166 inline void SetPoolCount(int value) { m_poolCountHasBeenSet = true; m_poolCount = value; }
167 inline IpamScope& WithPoolCount(int value) { SetPoolCount(value); return *this;}
169
171
174 inline const IpamScopeState& GetState() const{ return m_state; }
175 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
176 inline void SetState(const IpamScopeState& value) { m_stateHasBeenSet = true; m_state = value; }
177 inline void SetState(IpamScopeState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
178 inline IpamScope& WithState(const IpamScopeState& value) { SetState(value); return *this;}
179 inline IpamScope& WithState(IpamScopeState&& value) { SetState(std::move(value)); return *this;}
181
183
190 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194 inline IpamScope& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
195 inline IpamScope& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
196 inline IpamScope& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
197 inline IpamScope& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
199 private:
200
201 Aws::String m_ownerId;
202 bool m_ownerIdHasBeenSet = false;
203
204 Aws::String m_ipamScopeId;
205 bool m_ipamScopeIdHasBeenSet = false;
206
207 Aws::String m_ipamScopeArn;
208 bool m_ipamScopeArnHasBeenSet = false;
209
210 Aws::String m_ipamArn;
211 bool m_ipamArnHasBeenSet = false;
212
213 Aws::String m_ipamRegion;
214 bool m_ipamRegionHasBeenSet = false;
215
216 IpamScopeType m_ipamScopeType;
217 bool m_ipamScopeTypeHasBeenSet = false;
218
219 bool m_isDefault;
220 bool m_isDefaultHasBeenSet = false;
221
222 Aws::String m_description;
223 bool m_descriptionHasBeenSet = false;
224
225 int m_poolCount;
226 bool m_poolCountHasBeenSet = false;
227
228 IpamScopeState m_state;
229 bool m_stateHasBeenSet = false;
230
231 Aws::Vector<Tag> m_tags;
232 bool m_tagsHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace EC2
237} // namespace Aws
IpamScope & WithOwnerId(Aws::String &&value)
Definition IpamScope.h:64
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetIpamArn(Aws::String &&value)
Definition IpamScope.h:103
bool IpamRegionHasBeenSet() const
Definition IpamScope.h:115
void SetOwnerId(const Aws::String &value)
Definition IpamScope.h:60
bool IpamScopeArnHasBeenSet() const
Definition IpamScope.h:87
IpamScope & WithDescription(const Aws::String &value)
Definition IpamScope.h:155
void SetIpamScopeType(const IpamScopeType &value)
Definition IpamScope.h:130
IpamScope & WithIpamArn(const char *value)
Definition IpamScope.h:107
IpamScope & WithIsDefault(bool value)
Definition IpamScope.h:143
const Aws::Vector< Tag > & GetTags() const
Definition IpamScope.h:190
const IpamScopeState & GetState() const
Definition IpamScope.h:174
void SetOwnerId(const char *value)
Definition IpamScope.h:62
void SetDescription(const Aws::String &value)
Definition IpamScope.h:152
AWS_EC2_API IpamScope(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(const IpamScopeState &value)
Definition IpamScope.h:176
IpamScope & WithIpamScopeType(const IpamScopeType &value)
Definition IpamScope.h:132
bool DescriptionHasBeenSet() const
Definition IpamScope.h:151
IpamScope & WithState(IpamScopeState &&value)
Definition IpamScope.h:179
IpamScope & WithIpamScopeArn(const Aws::String &value)
Definition IpamScope.h:91
void SetPoolCount(int value)
Definition IpamScope.h:166
void SetIpamArn(const Aws::String &value)
Definition IpamScope.h:102
void SetState(IpamScopeState &&value)
Definition IpamScope.h:177
void SetDescription(const char *value)
Definition IpamScope.h:154
void SetOwnerId(Aws::String &&value)
Definition IpamScope.h:61
bool PoolCountHasBeenSet() const
Definition IpamScope.h:165
void SetIpamScopeId(const char *value)
Definition IpamScope.h:76
void SetDescription(Aws::String &&value)
Definition IpamScope.h:153
IpamScope & WithTags(Aws::Vector< Tag > &&value)
Definition IpamScope.h:195
IpamScope & WithOwnerId(const char *value)
Definition IpamScope.h:65
IpamScope & WithIpamScopeArn(const char *value)
Definition IpamScope.h:93
void SetIpamRegion(Aws::String &&value)
Definition IpamScope.h:117
IpamScope & WithIpamScopeId(const char *value)
Definition IpamScope.h:79
void SetIpamScopeId(const Aws::String &value)
Definition IpamScope.h:74
bool IsDefaultHasBeenSet() const
Definition IpamScope.h:141
void SetIpamScopeType(IpamScopeType &&value)
Definition IpamScope.h:131
void SetIsDefault(bool value)
Definition IpamScope.h:142
IpamScope & AddTags(Tag &&value)
Definition IpamScope.h:197
IpamScope & WithPoolCount(int value)
Definition IpamScope.h:167
void SetIpamRegion(const Aws::String &value)
Definition IpamScope.h:116
const Aws::String & GetIpamArn() const
Definition IpamScope.h:100
bool TagsHasBeenSet() const
Definition IpamScope.h:191
void SetIpamScopeArn(const char *value)
Definition IpamScope.h:90
void SetIpamScopeArn(Aws::String &&value)
Definition IpamScope.h:89
void SetIpamScopeArn(const Aws::String &value)
Definition IpamScope.h:88
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool IpamArnHasBeenSet() const
Definition IpamScope.h:101
IpamScope & WithState(const IpamScopeState &value)
Definition IpamScope.h:178
const Aws::String & GetIpamScopeArn() const
Definition IpamScope.h:86
IpamScope & WithIpamArn(const Aws::String &value)
Definition IpamScope.h:105
bool StateHasBeenSet() const
Definition IpamScope.h:175
IpamScope & WithIpamScopeId(Aws::String &&value)
Definition IpamScope.h:78
bool OwnerIdHasBeenSet() const
Definition IpamScope.h:59
bool IpamScopeIdHasBeenSet() const
Definition IpamScope.h:73
IpamScope & AddTags(const Tag &value)
Definition IpamScope.h:196
IpamScope & WithIpamScopeType(IpamScopeType &&value)
Definition IpamScope.h:133
void SetIpamScopeId(Aws::String &&value)
Definition IpamScope.h:75
void SetIpamArn(const char *value)
Definition IpamScope.h:104
IpamScope & WithDescription(Aws::String &&value)
Definition IpamScope.h:156
const Aws::String & GetIpamRegion() const
Definition IpamScope.h:114
void SetIpamRegion(const char *value)
Definition IpamScope.h:118
void SetTags(Aws::Vector< Tag > &&value)
Definition IpamScope.h:193
const Aws::String & GetIpamScopeId() const
Definition IpamScope.h:72
void SetTags(const Aws::Vector< Tag > &value)
Definition IpamScope.h:192
IpamScope & WithDescription(const char *value)
Definition IpamScope.h:157
IpamScope & WithIpamScopeArn(Aws::String &&value)
Definition IpamScope.h:92
IpamScope & WithTags(const Aws::Vector< Tag > &value)
Definition IpamScope.h:194
IpamScope & WithOwnerId(const Aws::String &value)
Definition IpamScope.h:63
bool IpamScopeTypeHasBeenSet() const
Definition IpamScope.h:129
IpamScope & WithIpamScopeId(const Aws::String &value)
Definition IpamScope.h:77
AWS_EC2_API IpamScope & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamScope & WithIpamRegion(const char *value)
Definition IpamScope.h:121
const Aws::String & GetOwnerId() const
Definition IpamScope.h:58
IpamScope & WithIpamRegion(Aws::String &&value)
Definition IpamScope.h:120
IpamScope & WithIpamArn(Aws::String &&value)
Definition IpamScope.h:106
const Aws::String & GetDescription() const
Definition IpamScope.h:150
IpamScope & WithIpamRegion(const Aws::String &value)
Definition IpamScope.h:119
const IpamScopeType & GetIpamScopeType() const
Definition IpamScope.h:128
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream