AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateResourceConfigurationResult.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 CreateResourceConfigurationResult() = 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
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template<typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
58 template<typename ArnT = Aws::String>
59 CreateResourceConfigurationResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
61
63
67 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
68 template<typename CreatedAtT = Aws::Utils::DateTime>
69 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
70 template<typename CreatedAtT = Aws::Utils::DateTime>
71 CreateResourceConfigurationResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
73
75
78 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
79 template<typename FailureReasonT = Aws::String>
80 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
81 template<typename FailureReasonT = Aws::String>
82 CreateResourceConfigurationResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
84
86
89 inline const Aws::String& GetId() const { return m_id; }
90 template<typename IdT = Aws::String>
91 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
92 template<typename IdT = Aws::String>
93 CreateResourceConfigurationResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
95
97
100 inline const Aws::String& GetName() const { return m_name; }
101 template<typename NameT = Aws::String>
102 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
103 template<typename NameT = Aws::String>
104 CreateResourceConfigurationResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
106
108
111 inline const Aws::Vector<Aws::String>& GetPortRanges() const { return m_portRanges; }
112 template<typename PortRangesT = Aws::Vector<Aws::String>>
113 void SetPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges = std::forward<PortRangesT>(value); }
114 template<typename PortRangesT = Aws::Vector<Aws::String>>
115 CreateResourceConfigurationResult& WithPortRanges(PortRangesT&& value) { SetPortRanges(std::forward<PortRangesT>(value)); return *this;}
116 template<typename PortRangesT = Aws::String>
117 CreateResourceConfigurationResult& AddPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges.emplace_back(std::forward<PortRangesT>(value)); return *this; }
119
121
124 inline ProtocolType GetProtocol() const { return m_protocol; }
125 inline void SetProtocol(ProtocolType value) { m_protocolHasBeenSet = true; m_protocol = value; }
128
130
133 inline const ResourceConfigurationDefinition& GetResourceConfigurationDefinition() const { return m_resourceConfigurationDefinition; }
134 template<typename ResourceConfigurationDefinitionT = ResourceConfigurationDefinition>
135 void SetResourceConfigurationDefinition(ResourceConfigurationDefinitionT&& value) { m_resourceConfigurationDefinitionHasBeenSet = true; m_resourceConfigurationDefinition = std::forward<ResourceConfigurationDefinitionT>(value); }
136 template<typename ResourceConfigurationDefinitionT = ResourceConfigurationDefinition>
137 CreateResourceConfigurationResult& WithResourceConfigurationDefinition(ResourceConfigurationDefinitionT&& value) { SetResourceConfigurationDefinition(std::forward<ResourceConfigurationDefinitionT>(value)); return *this;}
139
141
144 inline const Aws::String& GetResourceConfigurationGroupId() const { return m_resourceConfigurationGroupId; }
145 template<typename ResourceConfigurationGroupIdT = Aws::String>
146 void SetResourceConfigurationGroupId(ResourceConfigurationGroupIdT&& value) { m_resourceConfigurationGroupIdHasBeenSet = true; m_resourceConfigurationGroupId = std::forward<ResourceConfigurationGroupIdT>(value); }
147 template<typename ResourceConfigurationGroupIdT = Aws::String>
148 CreateResourceConfigurationResult& WithResourceConfigurationGroupId(ResourceConfigurationGroupIdT&& value) { SetResourceConfigurationGroupId(std::forward<ResourceConfigurationGroupIdT>(value)); return *this;}
150
152
156 inline const Aws::String& GetResourceGatewayId() const { return m_resourceGatewayId; }
157 template<typename ResourceGatewayIdT = Aws::String>
158 void SetResourceGatewayId(ResourceGatewayIdT&& value) { m_resourceGatewayIdHasBeenSet = true; m_resourceGatewayId = std::forward<ResourceGatewayIdT>(value); }
159 template<typename ResourceGatewayIdT = Aws::String>
160 CreateResourceConfigurationResult& WithResourceGatewayId(ResourceGatewayIdT&& value) { SetResourceGatewayId(std::forward<ResourceGatewayIdT>(value)); return *this;}
162
164
167 inline ResourceConfigurationStatus GetStatus() const { return m_status; }
168 inline void SetStatus(ResourceConfigurationStatus value) { m_statusHasBeenSet = true; m_status = value; }
171
173
176 inline ResourceConfigurationType GetType() const { return m_type; }
177 inline void SetType(ResourceConfigurationType value) { m_typeHasBeenSet = true; m_type = value; }
180
182
183 inline const Aws::String& GetRequestId() const { return m_requestId; }
184 template<typename RequestIdT = Aws::String>
185 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
186 template<typename RequestIdT = Aws::String>
187 CreateResourceConfigurationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
189 private:
190
191 bool m_allowAssociationToShareableServiceNetwork{false};
192 bool m_allowAssociationToShareableServiceNetworkHasBeenSet = false;
193
194 Aws::String m_arn;
195 bool m_arnHasBeenSet = false;
196
197 Aws::Utils::DateTime m_createdAt{};
198 bool m_createdAtHasBeenSet = false;
199
200 Aws::String m_failureReason;
201 bool m_failureReasonHasBeenSet = false;
202
203 Aws::String m_id;
204 bool m_idHasBeenSet = false;
205
206 Aws::String m_name;
207 bool m_nameHasBeenSet = false;
208
209 Aws::Vector<Aws::String> m_portRanges;
210 bool m_portRangesHasBeenSet = false;
211
213 bool m_protocolHasBeenSet = false;
214
215 ResourceConfigurationDefinition m_resourceConfigurationDefinition;
216 bool m_resourceConfigurationDefinitionHasBeenSet = false;
217
218 Aws::String m_resourceConfigurationGroupId;
219 bool m_resourceConfigurationGroupIdHasBeenSet = false;
220
221 Aws::String m_resourceGatewayId;
222 bool m_resourceGatewayIdHasBeenSet = false;
223
225 bool m_statusHasBeenSet = false;
226
228 bool m_typeHasBeenSet = false;
229
230 Aws::String m_requestId;
231 bool m_requestIdHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace VPCLattice
236} // namespace Aws
CreateResourceConfigurationResult & AddPortRanges(PortRangesT &&value)
void SetResourceConfigurationGroupId(ResourceConfigurationGroupIdT &&value)
void SetResourceConfigurationDefinition(ResourceConfigurationDefinitionT &&value)
CreateResourceConfigurationResult & WithAllowAssociationToShareableServiceNetwork(bool value)
const ResourceConfigurationDefinition & GetResourceConfigurationDefinition() const
CreateResourceConfigurationResult & WithFailureReason(FailureReasonT &&value)
CreateResourceConfigurationResult & WithResourceConfigurationDefinition(ResourceConfigurationDefinitionT &&value)
CreateResourceConfigurationResult & WithCreatedAt(CreatedAtT &&value)
CreateResourceConfigurationResult & WithResourceGatewayId(ResourceGatewayIdT &&value)
CreateResourceConfigurationResult & WithPortRanges(PortRangesT &&value)
AWS_VPCLATTICE_API CreateResourceConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateResourceConfigurationResult & WithType(ResourceConfigurationType value)
AWS_VPCLATTICE_API CreateResourceConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateResourceConfigurationResult & WithRequestId(RequestIdT &&value)
CreateResourceConfigurationResult & WithProtocol(ProtocolType value)
CreateResourceConfigurationResult & WithStatus(ResourceConfigurationStatus value)
CreateResourceConfigurationResult & WithResourceConfigurationGroupId(ResourceConfigurationGroupIdT &&value)
AWS_VPCLATTICE_API CreateResourceConfigurationResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue