AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetResourceConfigurationResult.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/vpc-lattice/model/ProtocolType.h>
12#include <aws/vpc-lattice/model/ResourceConfigurationDefinition.h>
13#include <aws/vpc-lattice/model/ResourceConfigurationStatus.h>
14#include <aws/vpc-lattice/model/ResourceConfigurationType.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace VPCLattice
30{
31namespace Model
32{
34 {
35 public:
36 AWS_VPCLATTICE_API GetResourceConfigurationResult() = default;
39
40
42
46 inline bool GetAllowAssociationToShareableServiceNetwork() const { return m_allowAssociationToShareableServiceNetwork; }
47 inline void SetAllowAssociationToShareableServiceNetwork(bool value) { m_allowAssociationToShareableServiceNetworkHasBeenSet = true; m_allowAssociationToShareableServiceNetwork = value; }
50
52
56 inline bool GetAmazonManaged() const { return m_amazonManaged; }
57 inline void SetAmazonManaged(bool value) { m_amazonManagedHasBeenSet = true; m_amazonManaged = value; }
58 inline GetResourceConfigurationResult& WithAmazonManaged(bool value) { SetAmazonManaged(value); return *this;}
60
62
65 inline const Aws::String& GetArn() const { return m_arn; }
66 template<typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
68 template<typename ArnT = Aws::String>
69 GetResourceConfigurationResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
71
73
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 template<typename CreatedAtT = Aws::Utils::DateTime>
79 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
80 template<typename CreatedAtT = Aws::Utils::DateTime>
81 GetResourceConfigurationResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
83
85
88 inline const Aws::String& GetCustomDomainName() const { return m_customDomainName; }
89 template<typename CustomDomainNameT = Aws::String>
90 void SetCustomDomainName(CustomDomainNameT&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::forward<CustomDomainNameT>(value); }
91 template<typename CustomDomainNameT = Aws::String>
92 GetResourceConfigurationResult& WithCustomDomainName(CustomDomainNameT&& value) { SetCustomDomainName(std::forward<CustomDomainNameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
100 template<typename FailureReasonT = Aws::String>
101 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
102 template<typename FailureReasonT = Aws::String>
103 GetResourceConfigurationResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
105
107
110 inline const Aws::String& GetId() const { return m_id; }
111 template<typename IdT = Aws::String>
112 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
113 template<typename IdT = Aws::String>
114 GetResourceConfigurationResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
116
118
122 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
123 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
124 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
125 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
126 GetResourceConfigurationResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
128
130
133 inline const Aws::String& GetName() const { return m_name; }
134 template<typename NameT = Aws::String>
135 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
136 template<typename NameT = Aws::String>
137 GetResourceConfigurationResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
139
141
146 inline const Aws::Vector<Aws::String>& GetPortRanges() const { return m_portRanges; }
147 template<typename PortRangesT = Aws::Vector<Aws::String>>
148 void SetPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges = std::forward<PortRangesT>(value); }
149 template<typename PortRangesT = Aws::Vector<Aws::String>>
150 GetResourceConfigurationResult& WithPortRanges(PortRangesT&& value) { SetPortRanges(std::forward<PortRangesT>(value)); return *this;}
151 template<typename PortRangesT = Aws::String>
152 GetResourceConfigurationResult& AddPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges.emplace_back(std::forward<PortRangesT>(value)); return *this; }
154
156
159 inline ProtocolType GetProtocol() const { return m_protocol; }
160 inline void SetProtocol(ProtocolType value) { m_protocolHasBeenSet = true; m_protocol = value; }
163
165
168 inline const ResourceConfigurationDefinition& GetResourceConfigurationDefinition() const { return m_resourceConfigurationDefinition; }
169 template<typename ResourceConfigurationDefinitionT = ResourceConfigurationDefinition>
170 void SetResourceConfigurationDefinition(ResourceConfigurationDefinitionT&& value) { m_resourceConfigurationDefinitionHasBeenSet = true; m_resourceConfigurationDefinition = std::forward<ResourceConfigurationDefinitionT>(value); }
171 template<typename ResourceConfigurationDefinitionT = ResourceConfigurationDefinition>
172 GetResourceConfigurationResult& WithResourceConfigurationDefinition(ResourceConfigurationDefinitionT&& value) { SetResourceConfigurationDefinition(std::forward<ResourceConfigurationDefinitionT>(value)); return *this;}
174
176
179 inline const Aws::String& GetResourceConfigurationGroupId() const { return m_resourceConfigurationGroupId; }
180 template<typename ResourceConfigurationGroupIdT = Aws::String>
181 void SetResourceConfigurationGroupId(ResourceConfigurationGroupIdT&& value) { m_resourceConfigurationGroupIdHasBeenSet = true; m_resourceConfigurationGroupId = std::forward<ResourceConfigurationGroupIdT>(value); }
182 template<typename ResourceConfigurationGroupIdT = Aws::String>
183 GetResourceConfigurationResult& WithResourceConfigurationGroupId(ResourceConfigurationGroupIdT&& value) { SetResourceConfigurationGroupId(std::forward<ResourceConfigurationGroupIdT>(value)); return *this;}
185
187
192 inline const Aws::String& GetResourceGatewayId() const { return m_resourceGatewayId; }
193 template<typename ResourceGatewayIdT = Aws::String>
194 void SetResourceGatewayId(ResourceGatewayIdT&& value) { m_resourceGatewayIdHasBeenSet = true; m_resourceGatewayId = std::forward<ResourceGatewayIdT>(value); }
195 template<typename ResourceGatewayIdT = Aws::String>
196 GetResourceConfigurationResult& WithResourceGatewayId(ResourceGatewayIdT&& value) { SetResourceGatewayId(std::forward<ResourceGatewayIdT>(value)); return *this;}
198
200
203 inline ResourceConfigurationStatus GetStatus() const { return m_status; }
204 inline void SetStatus(ResourceConfigurationStatus value) { m_statusHasBeenSet = true; m_status = value; }
207
209
216 inline ResourceConfigurationType GetType() const { return m_type; }
217 inline void SetType(ResourceConfigurationType value) { m_typeHasBeenSet = true; m_type = value; }
220
222
223 inline const Aws::String& GetRequestId() const { return m_requestId; }
224 template<typename RequestIdT = Aws::String>
225 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
226 template<typename RequestIdT = Aws::String>
227 GetResourceConfigurationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
229 private:
230
231 bool m_allowAssociationToShareableServiceNetwork{false};
232 bool m_allowAssociationToShareableServiceNetworkHasBeenSet = false;
233
234 bool m_amazonManaged{false};
235 bool m_amazonManagedHasBeenSet = false;
236
237 Aws::String m_arn;
238 bool m_arnHasBeenSet = false;
239
240 Aws::Utils::DateTime m_createdAt{};
241 bool m_createdAtHasBeenSet = false;
242
243 Aws::String m_customDomainName;
244 bool m_customDomainNameHasBeenSet = false;
245
246 Aws::String m_failureReason;
247 bool m_failureReasonHasBeenSet = false;
248
249 Aws::String m_id;
250 bool m_idHasBeenSet = false;
251
252 Aws::Utils::DateTime m_lastUpdatedAt{};
253 bool m_lastUpdatedAtHasBeenSet = false;
254
255 Aws::String m_name;
256 bool m_nameHasBeenSet = false;
257
258 Aws::Vector<Aws::String> m_portRanges;
259 bool m_portRangesHasBeenSet = false;
260
262 bool m_protocolHasBeenSet = false;
263
264 ResourceConfigurationDefinition m_resourceConfigurationDefinition;
265 bool m_resourceConfigurationDefinitionHasBeenSet = false;
266
267 Aws::String m_resourceConfigurationGroupId;
268 bool m_resourceConfigurationGroupIdHasBeenSet = false;
269
270 Aws::String m_resourceGatewayId;
271 bool m_resourceGatewayIdHasBeenSet = false;
272
274 bool m_statusHasBeenSet = false;
275
277 bool m_typeHasBeenSet = false;
278
279 Aws::String m_requestId;
280 bool m_requestIdHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace VPCLattice
285} // namespace Aws
GetResourceConfigurationResult & WithAmazonManaged(bool value)
GetResourceConfigurationResult & WithCreatedAt(CreatedAtT &&value)
GetResourceConfigurationResult & WithStatus(ResourceConfigurationStatus value)
GetResourceConfigurationResult & AddPortRanges(PortRangesT &&value)
AWS_VPCLATTICE_API GetResourceConfigurationResult()=default
AWS_VPCLATTICE_API GetResourceConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResourceConfigurationDefinition(ResourceConfigurationDefinitionT &&value)
const ResourceConfigurationDefinition & GetResourceConfigurationDefinition() const
GetResourceConfigurationResult & WithName(NameT &&value)
GetResourceConfigurationResult & WithProtocol(ProtocolType value)
GetResourceConfigurationResult & WithAllowAssociationToShareableServiceNetwork(bool value)
GetResourceConfigurationResult & WithRequestId(RequestIdT &&value)
GetResourceConfigurationResult & WithPortRanges(PortRangesT &&value)
void SetResourceConfigurationGroupId(ResourceConfigurationGroupIdT &&value)
GetResourceConfigurationResult & WithResourceConfigurationDefinition(ResourceConfigurationDefinitionT &&value)
AWS_VPCLATTICE_API GetResourceConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceConfigurationResult & WithFailureReason(FailureReasonT &&value)
GetResourceConfigurationResult & WithResourceConfigurationGroupId(ResourceConfigurationGroupIdT &&value)
GetResourceConfigurationResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetResourceConfigurationResult & WithResourceGatewayId(ResourceGatewayIdT &&value)
GetResourceConfigurationResult & WithType(ResourceConfigurationType value)
GetResourceConfigurationResult & WithCustomDomainName(CustomDomainNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue