AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpamResourceDiscoveryAssociation.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/IpamAssociatedResourceDiscoveryStatus.h>
11#include <aws/ec2/model/IpamResourceDiscoveryAssociationState.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
39 {
40 public:
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
54 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
55 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
56 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
57 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
58 inline IpamResourceDiscoveryAssociation& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
59 inline IpamResourceDiscoveryAssociation& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
60 inline IpamResourceDiscoveryAssociation& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
62
64
67 inline const Aws::String& GetIpamResourceDiscoveryAssociationId() const{ return m_ipamResourceDiscoveryAssociationId; }
68 inline bool IpamResourceDiscoveryAssociationIdHasBeenSet() const { return m_ipamResourceDiscoveryAssociationIdHasBeenSet; }
69 inline void SetIpamResourceDiscoveryAssociationId(const Aws::String& value) { m_ipamResourceDiscoveryAssociationIdHasBeenSet = true; m_ipamResourceDiscoveryAssociationId = value; }
70 inline void SetIpamResourceDiscoveryAssociationId(Aws::String&& value) { m_ipamResourceDiscoveryAssociationIdHasBeenSet = true; m_ipamResourceDiscoveryAssociationId = std::move(value); }
71 inline void SetIpamResourceDiscoveryAssociationId(const char* value) { m_ipamResourceDiscoveryAssociationIdHasBeenSet = true; m_ipamResourceDiscoveryAssociationId.assign(value); }
76
78
81 inline const Aws::String& GetIpamResourceDiscoveryAssociationArn() const{ return m_ipamResourceDiscoveryAssociationArn; }
82 inline bool IpamResourceDiscoveryAssociationArnHasBeenSet() const { return m_ipamResourceDiscoveryAssociationArnHasBeenSet; }
83 inline void SetIpamResourceDiscoveryAssociationArn(const Aws::String& value) { m_ipamResourceDiscoveryAssociationArnHasBeenSet = true; m_ipamResourceDiscoveryAssociationArn = value; }
84 inline void SetIpamResourceDiscoveryAssociationArn(Aws::String&& value) { m_ipamResourceDiscoveryAssociationArnHasBeenSet = true; m_ipamResourceDiscoveryAssociationArn = std::move(value); }
85 inline void SetIpamResourceDiscoveryAssociationArn(const char* value) { m_ipamResourceDiscoveryAssociationArnHasBeenSet = true; m_ipamResourceDiscoveryAssociationArn.assign(value); }
90
92
95 inline const Aws::String& GetIpamResourceDiscoveryId() const{ return m_ipamResourceDiscoveryId; }
96 inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; }
97 inline void SetIpamResourceDiscoveryId(const Aws::String& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = value; }
98 inline void SetIpamResourceDiscoveryId(Aws::String&& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = std::move(value); }
99 inline void SetIpamResourceDiscoveryId(const char* value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId.assign(value); }
104
106
109 inline const Aws::String& GetIpamId() const{ return m_ipamId; }
110 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
111 inline void SetIpamId(const Aws::String& value) { m_ipamIdHasBeenSet = true; m_ipamId = value; }
112 inline void SetIpamId(Aws::String&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::move(value); }
113 inline void SetIpamId(const char* value) { m_ipamIdHasBeenSet = true; m_ipamId.assign(value); }
114 inline IpamResourceDiscoveryAssociation& WithIpamId(const Aws::String& value) { SetIpamId(value); return *this;}
115 inline IpamResourceDiscoveryAssociation& WithIpamId(Aws::String&& value) { SetIpamId(std::move(value)); return *this;}
116 inline IpamResourceDiscoveryAssociation& WithIpamId(const char* value) { SetIpamId(value); return *this;}
118
120
123 inline const Aws::String& GetIpamArn() const{ return m_ipamArn; }
124 inline bool IpamArnHasBeenSet() const { return m_ipamArnHasBeenSet; }
125 inline void SetIpamArn(const Aws::String& value) { m_ipamArnHasBeenSet = true; m_ipamArn = value; }
126 inline void SetIpamArn(Aws::String&& value) { m_ipamArnHasBeenSet = true; m_ipamArn = std::move(value); }
127 inline void SetIpamArn(const char* value) { m_ipamArnHasBeenSet = true; m_ipamArn.assign(value); }
128 inline IpamResourceDiscoveryAssociation& WithIpamArn(const Aws::String& value) { SetIpamArn(value); return *this;}
129 inline IpamResourceDiscoveryAssociation& WithIpamArn(Aws::String&& value) { SetIpamArn(std::move(value)); return *this;}
130 inline IpamResourceDiscoveryAssociation& WithIpamArn(const char* value) { SetIpamArn(value); return *this;}
132
134
137 inline const Aws::String& GetIpamRegion() const{ return m_ipamRegion; }
138 inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; }
139 inline void SetIpamRegion(const Aws::String& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = value; }
140 inline void SetIpamRegion(Aws::String&& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = std::move(value); }
141 inline void SetIpamRegion(const char* value) { m_ipamRegionHasBeenSet = true; m_ipamRegion.assign(value); }
142 inline IpamResourceDiscoveryAssociation& WithIpamRegion(const Aws::String& value) { SetIpamRegion(value); return *this;}
143 inline IpamResourceDiscoveryAssociation& WithIpamRegion(Aws::String&& value) { SetIpamRegion(std::move(value)); return *this;}
144 inline IpamResourceDiscoveryAssociation& WithIpamRegion(const char* value) { SetIpamRegion(value); return *this;}
146
148
153 inline bool GetIsDefault() const{ return m_isDefault; }
154 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
155 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
156 inline IpamResourceDiscoveryAssociation& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
158
160
169 inline const IpamAssociatedResourceDiscoveryStatus& GetResourceDiscoveryStatus() const{ return m_resourceDiscoveryStatus; }
170 inline bool ResourceDiscoveryStatusHasBeenSet() const { return m_resourceDiscoveryStatusHasBeenSet; }
171 inline void SetResourceDiscoveryStatus(const IpamAssociatedResourceDiscoveryStatus& value) { m_resourceDiscoveryStatusHasBeenSet = true; m_resourceDiscoveryStatus = value; }
172 inline void SetResourceDiscoveryStatus(IpamAssociatedResourceDiscoveryStatus&& value) { m_resourceDiscoveryStatusHasBeenSet = true; m_resourceDiscoveryStatus = std::move(value); }
176
178
196 inline const IpamResourceDiscoveryAssociationState& GetState() const{ return m_state; }
197 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
198 inline void SetState(const IpamResourceDiscoveryAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
199 inline void SetState(IpamResourceDiscoveryAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
203
205
210 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
211 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
213 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
214 inline IpamResourceDiscoveryAssociation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
215 inline IpamResourceDiscoveryAssociation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
216 inline IpamResourceDiscoveryAssociation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
217 inline IpamResourceDiscoveryAssociation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
219 private:
220
221 Aws::String m_ownerId;
222 bool m_ownerIdHasBeenSet = false;
223
224 Aws::String m_ipamResourceDiscoveryAssociationId;
225 bool m_ipamResourceDiscoveryAssociationIdHasBeenSet = false;
226
227 Aws::String m_ipamResourceDiscoveryAssociationArn;
228 bool m_ipamResourceDiscoveryAssociationArnHasBeenSet = false;
229
230 Aws::String m_ipamResourceDiscoveryId;
231 bool m_ipamResourceDiscoveryIdHasBeenSet = false;
232
233 Aws::String m_ipamId;
234 bool m_ipamIdHasBeenSet = false;
235
236 Aws::String m_ipamArn;
237 bool m_ipamArnHasBeenSet = false;
238
239 Aws::String m_ipamRegion;
240 bool m_ipamRegionHasBeenSet = false;
241
242 bool m_isDefault;
243 bool m_isDefaultHasBeenSet = false;
244
245 IpamAssociatedResourceDiscoveryStatus m_resourceDiscoveryStatus;
246 bool m_resourceDiscoveryStatusHasBeenSet = false;
247
249 bool m_stateHasBeenSet = false;
250
251 Aws::Vector<Tag> m_tags;
252 bool m_tagsHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace EC2
257} // namespace Aws
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryAssociationArn(const char *value)
IpamResourceDiscoveryAssociation & WithOwnerId(Aws::String &&value)
void SetState(const IpamResourceDiscoveryAssociationState &value)
AWS_EC2_API IpamResourceDiscoveryAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryAssociationArn(Aws::String &&value)
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryId(const char *value)
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryId(const Aws::String &value)
IpamResourceDiscoveryAssociation & WithOwnerId(const Aws::String &value)
void SetState(IpamResourceDiscoveryAssociationState &&value)
IpamResourceDiscoveryAssociation & WithIpamRegion(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamResourceDiscoveryAssociation & WithIpamArn(const char *value)
IpamResourceDiscoveryAssociation & WithIpamRegion(Aws::String &&value)
IpamResourceDiscoveryAssociation & WithResourceDiscoveryStatus(IpamAssociatedResourceDiscoveryStatus &&value)
IpamResourceDiscoveryAssociation & WithIpamId(Aws::String &&value)
IpamResourceDiscoveryAssociation & WithState(const IpamResourceDiscoveryAssociationState &value)
IpamResourceDiscoveryAssociation & WithIpamId(const char *value)
IpamResourceDiscoveryAssociation & WithTags(const Aws::Vector< Tag > &value)
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryAssociationId(const char *value)
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryAssociationId(Aws::String &&value)
IpamResourceDiscoveryAssociation & AddTags(Tag &&value)
IpamResourceDiscoveryAssociation & WithIpamId(const Aws::String &value)
IpamResourceDiscoveryAssociation & WithTags(Aws::Vector< Tag > &&value)
IpamResourceDiscoveryAssociation & WithIsDefault(bool value)
const IpamAssociatedResourceDiscoveryStatus & GetResourceDiscoveryStatus() const
AWS_EC2_API IpamResourceDiscoveryAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamResourceDiscoveryAssociation & WithState(IpamResourceDiscoveryAssociationState &&value)
void SetResourceDiscoveryStatus(const IpamAssociatedResourceDiscoveryStatus &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamResourceDiscoveryAssociation & WithOwnerId(const char *value)
IpamResourceDiscoveryAssociation & WithIpamRegion(const char *value)
IpamResourceDiscoveryAssociation & WithIpamArn(Aws::String &&value)
const IpamResourceDiscoveryAssociationState & GetState() const
IpamResourceDiscoveryAssociation & WithIpamArn(const Aws::String &value)
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryAssociationId(const Aws::String &value)
IpamResourceDiscoveryAssociation & WithResourceDiscoveryStatus(const IpamAssociatedResourceDiscoveryStatus &value)
IpamResourceDiscoveryAssociation & AddTags(const Tag &value)
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryId(Aws::String &&value)
void SetResourceDiscoveryStatus(IpamAssociatedResourceDiscoveryStatus &&value)
IpamResourceDiscoveryAssociation & WithIpamResourceDiscoveryAssociationArn(const Aws::String &value)
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