AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpamResourceDiscovery.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/IpamResourceDiscoveryState.h>
12#include <aws/ec2/model/IpamOperatingRegion.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
38 {
39 public:
40 AWS_EC2_API IpamResourceDiscovery();
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
53 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
54 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
55 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
56 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
57 inline IpamResourceDiscovery& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
58 inline IpamResourceDiscovery& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
59 inline IpamResourceDiscovery& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
61
63
66 inline const Aws::String& GetIpamResourceDiscoveryId() const{ return m_ipamResourceDiscoveryId; }
67 inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; }
68 inline void SetIpamResourceDiscoveryId(const Aws::String& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = value; }
69 inline void SetIpamResourceDiscoveryId(Aws::String&& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = std::move(value); }
70 inline void SetIpamResourceDiscoveryId(const char* value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId.assign(value); }
73 inline IpamResourceDiscovery& WithIpamResourceDiscoveryId(const char* value) { SetIpamResourceDiscoveryId(value); return *this;}
75
77
80 inline const Aws::String& GetIpamResourceDiscoveryArn() const{ return m_ipamResourceDiscoveryArn; }
81 inline bool IpamResourceDiscoveryArnHasBeenSet() const { return m_ipamResourceDiscoveryArnHasBeenSet; }
82 inline void SetIpamResourceDiscoveryArn(const Aws::String& value) { m_ipamResourceDiscoveryArnHasBeenSet = true; m_ipamResourceDiscoveryArn = value; }
83 inline void SetIpamResourceDiscoveryArn(Aws::String&& value) { m_ipamResourceDiscoveryArnHasBeenSet = true; m_ipamResourceDiscoveryArn = std::move(value); }
84 inline void SetIpamResourceDiscoveryArn(const char* value) { m_ipamResourceDiscoveryArnHasBeenSet = true; m_ipamResourceDiscoveryArn.assign(value); }
87 inline IpamResourceDiscovery& WithIpamResourceDiscoveryArn(const char* value) { SetIpamResourceDiscoveryArn(value); return *this;}
89
91
94 inline const Aws::String& GetIpamResourceDiscoveryRegion() const{ return m_ipamResourceDiscoveryRegion; }
95 inline bool IpamResourceDiscoveryRegionHasBeenSet() const { return m_ipamResourceDiscoveryRegionHasBeenSet; }
96 inline void SetIpamResourceDiscoveryRegion(const Aws::String& value) { m_ipamResourceDiscoveryRegionHasBeenSet = true; m_ipamResourceDiscoveryRegion = value; }
97 inline void SetIpamResourceDiscoveryRegion(Aws::String&& value) { m_ipamResourceDiscoveryRegionHasBeenSet = true; m_ipamResourceDiscoveryRegion = std::move(value); }
98 inline void SetIpamResourceDiscoveryRegion(const char* value) { m_ipamResourceDiscoveryRegionHasBeenSet = true; m_ipamResourceDiscoveryRegion.assign(value); }
103
105
108 inline const Aws::String& GetDescription() const{ return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
111 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
112 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 inline IpamResourceDiscovery& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 inline IpamResourceDiscovery& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115 inline IpamResourceDiscovery& WithDescription(const char* value) { SetDescription(value); return *this;}
117
119
125 inline const Aws::Vector<IpamOperatingRegion>& GetOperatingRegions() const{ return m_operatingRegions; }
126 inline bool OperatingRegionsHasBeenSet() const { return m_operatingRegionsHasBeenSet; }
127 inline void SetOperatingRegions(const Aws::Vector<IpamOperatingRegion>& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = value; }
128 inline void SetOperatingRegions(Aws::Vector<IpamOperatingRegion>&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = std::move(value); }
131 inline IpamResourceDiscovery& AddOperatingRegions(const IpamOperatingRegion& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.push_back(value); return *this; }
132 inline IpamResourceDiscovery& AddOperatingRegions(IpamOperatingRegion&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.push_back(std::move(value)); return *this; }
134
136
141 inline bool GetIsDefault() const{ return m_isDefault; }
142 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
143 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
144 inline IpamResourceDiscovery& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
146
148
168 inline const IpamResourceDiscoveryState& GetState() const{ return m_state; }
169 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
170 inline void SetState(const IpamResourceDiscoveryState& value) { m_stateHasBeenSet = true; m_state = value; }
171 inline void SetState(IpamResourceDiscoveryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
172 inline IpamResourceDiscovery& WithState(const IpamResourceDiscoveryState& value) { SetState(value); return *this;}
173 inline IpamResourceDiscovery& WithState(IpamResourceDiscoveryState&& value) { SetState(std::move(value)); return *this;}
175
177
182 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
185 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
186 inline IpamResourceDiscovery& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
187 inline IpamResourceDiscovery& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
188 inline IpamResourceDiscovery& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
189 inline IpamResourceDiscovery& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
191 private:
192
193 Aws::String m_ownerId;
194 bool m_ownerIdHasBeenSet = false;
195
196 Aws::String m_ipamResourceDiscoveryId;
197 bool m_ipamResourceDiscoveryIdHasBeenSet = false;
198
199 Aws::String m_ipamResourceDiscoveryArn;
200 bool m_ipamResourceDiscoveryArnHasBeenSet = false;
201
202 Aws::String m_ipamResourceDiscoveryRegion;
203 bool m_ipamResourceDiscoveryRegionHasBeenSet = false;
204
205 Aws::String m_description;
206 bool m_descriptionHasBeenSet = false;
207
208 Aws::Vector<IpamOperatingRegion> m_operatingRegions;
209 bool m_operatingRegionsHasBeenSet = false;
210
211 bool m_isDefault;
212 bool m_isDefaultHasBeenSet = false;
213
215 bool m_stateHasBeenSet = false;
216
217 Aws::Vector<Tag> m_tags;
218 bool m_tagsHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace EC2
223} // namespace Aws
IpamResourceDiscovery & WithIpamResourceDiscoveryId(const char *value)
void SetIpamResourceDiscoveryArn(Aws::String &&value)
void SetDescription(const Aws::String &value)
IpamResourceDiscovery & WithIpamResourceDiscoveryArn(const Aws::String &value)
IpamResourceDiscovery & WithState(const IpamResourceDiscoveryState &value)
const Aws::String & GetIpamResourceDiscoveryId() const
const Aws::Vector< Tag > & GetTags() const
void SetState(IpamResourceDiscoveryState &&value)
IpamResourceDiscovery & WithDescription(Aws::String &&value)
void SetOwnerId(const Aws::String &value)
const Aws::String & GetIpamResourceDiscoveryRegion() const
const Aws::String & GetIpamResourceDiscoveryArn() const
const Aws::Vector< IpamOperatingRegion > & GetOperatingRegions() const
AWS_EC2_API IpamResourceDiscovery(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamResourceDiscovery & WithOperatingRegions(Aws::Vector< IpamOperatingRegion > &&value)
IpamResourceDiscovery & AddTags(Tag &&value)
IpamResourceDiscovery & AddOperatingRegions(const IpamOperatingRegion &value)
IpamResourceDiscovery & WithTags(Aws::Vector< Tag > &&value)
IpamResourceDiscovery & WithIpamResourceDiscoveryRegion(Aws::String &&value)
void SetIpamResourceDiscoveryId(const Aws::String &value)
IpamResourceDiscovery & WithIpamResourceDiscoveryRegion(const Aws::String &value)
void SetIpamResourceDiscoveryRegion(const char *value)
void SetIpamResourceDiscoveryArn(const Aws::String &value)
void SetOperatingRegions(Aws::Vector< IpamOperatingRegion > &&value)
void SetIpamResourceDiscoveryId(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_EC2_API IpamResourceDiscovery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamResourceDiscovery & WithOwnerId(const Aws::String &value)
IpamResourceDiscovery & AddOperatingRegions(IpamOperatingRegion &&value)
IpamResourceDiscovery & WithOperatingRegions(const Aws::Vector< IpamOperatingRegion > &value)
IpamResourceDiscovery & WithOwnerId(Aws::String &&value)
IpamResourceDiscovery & WithTags(const Aws::Vector< Tag > &value)
IpamResourceDiscovery & WithState(IpamResourceDiscoveryState &&value)
void SetState(const IpamResourceDiscoveryState &value)
IpamResourceDiscovery & WithDescription(const Aws::String &value)
IpamResourceDiscovery & AddTags(const Tag &value)
IpamResourceDiscovery & WithDescription(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamResourceDiscovery & WithIpamResourceDiscoveryRegion(const char *value)
void SetIpamResourceDiscoveryArn(const char *value)
IpamResourceDiscovery & WithIpamResourceDiscoveryId(const Aws::String &value)
IpamResourceDiscovery & WithIpamResourceDiscoveryArn(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetOperatingRegions(const Aws::Vector< IpamOperatingRegion > &value)
IpamResourceDiscovery & WithIsDefault(bool value)
IpamResourceDiscovery & WithIpamResourceDiscoveryArn(Aws::String &&value)
IpamResourceDiscovery & WithIpamResourceDiscoveryId(Aws::String &&value)
const IpamResourceDiscoveryState & GetState() const
void SetIpamResourceDiscoveryRegion(Aws::String &&value)
IpamResourceDiscovery & WithOwnerId(const char *value)
void SetIpamResourceDiscoveryRegion(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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