AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateResourceConfigurationResult.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/memory/stl/AWSVector.h>
10#include <aws/vpc-lattice/model/ProtocolType.h>
11#include <aws/vpc-lattice/model/ResourceConfigurationDefinition.h>
12#include <aws/vpc-lattice/model/ResourceConfigurationStatus.h>
13#include <aws/vpc-lattice/model/ResourceConfigurationType.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace VPCLattice
29{
30namespace Model
31{
33 {
34 public:
35 AWS_VPCLATTICE_API UpdateResourceConfigurationResult() = default;
38
39
41
45 inline bool GetAllowAssociationToShareableServiceNetwork() const { return m_allowAssociationToShareableServiceNetwork; }
46 inline void SetAllowAssociationToShareableServiceNetwork(bool value) { m_allowAssociationToShareableServiceNetworkHasBeenSet = true; m_allowAssociationToShareableServiceNetwork = value; }
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 UpdateResourceConfigurationResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
60
62
65 inline const Aws::String& GetId() const { return m_id; }
66 template<typename IdT = Aws::String>
67 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
68 template<typename IdT = Aws::String>
69 UpdateResourceConfigurationResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 template<typename NameT = Aws::String>
78 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
79 template<typename NameT = Aws::String>
80 UpdateResourceConfigurationResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
82
84
89 inline const Aws::Vector<Aws::String>& GetPortRanges() const { return m_portRanges; }
90 template<typename PortRangesT = Aws::Vector<Aws::String>>
91 void SetPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges = std::forward<PortRangesT>(value); }
92 template<typename PortRangesT = Aws::Vector<Aws::String>>
93 UpdateResourceConfigurationResult& WithPortRanges(PortRangesT&& value) { SetPortRanges(std::forward<PortRangesT>(value)); return *this;}
94 template<typename PortRangesT = Aws::String>
95 UpdateResourceConfigurationResult& AddPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges.emplace_back(std::forward<PortRangesT>(value)); return *this; }
97
99
102 inline ProtocolType GetProtocol() const { return m_protocol; }
103 inline void SetProtocol(ProtocolType value) { m_protocolHasBeenSet = true; m_protocol = value; }
106
108
111 inline const ResourceConfigurationDefinition& GetResourceConfigurationDefinition() const { return m_resourceConfigurationDefinition; }
112 template<typename ResourceConfigurationDefinitionT = ResourceConfigurationDefinition>
113 void SetResourceConfigurationDefinition(ResourceConfigurationDefinitionT&& value) { m_resourceConfigurationDefinitionHasBeenSet = true; m_resourceConfigurationDefinition = std::forward<ResourceConfigurationDefinitionT>(value); }
114 template<typename ResourceConfigurationDefinitionT = ResourceConfigurationDefinition>
115 UpdateResourceConfigurationResult& WithResourceConfigurationDefinition(ResourceConfigurationDefinitionT&& value) { SetResourceConfigurationDefinition(std::forward<ResourceConfigurationDefinitionT>(value)); return *this;}
117
119
122 inline const Aws::String& GetResourceConfigurationGroupId() const { return m_resourceConfigurationGroupId; }
123 template<typename ResourceConfigurationGroupIdT = Aws::String>
124 void SetResourceConfigurationGroupId(ResourceConfigurationGroupIdT&& value) { m_resourceConfigurationGroupIdHasBeenSet = true; m_resourceConfigurationGroupId = std::forward<ResourceConfigurationGroupIdT>(value); }
125 template<typename ResourceConfigurationGroupIdT = Aws::String>
126 UpdateResourceConfigurationResult& WithResourceConfigurationGroupId(ResourceConfigurationGroupIdT&& value) { SetResourceConfigurationGroupId(std::forward<ResourceConfigurationGroupIdT>(value)); return *this;}
128
130
134 inline const Aws::String& GetResourceGatewayId() const { return m_resourceGatewayId; }
135 template<typename ResourceGatewayIdT = Aws::String>
136 void SetResourceGatewayId(ResourceGatewayIdT&& value) { m_resourceGatewayIdHasBeenSet = true; m_resourceGatewayId = std::forward<ResourceGatewayIdT>(value); }
137 template<typename ResourceGatewayIdT = Aws::String>
138 UpdateResourceConfigurationResult& WithResourceGatewayId(ResourceGatewayIdT&& value) { SetResourceGatewayId(std::forward<ResourceGatewayIdT>(value)); return *this;}
140
142
145 inline ResourceConfigurationStatus GetStatus() const { return m_status; }
146 inline void SetStatus(ResourceConfigurationStatus value) { m_statusHasBeenSet = true; m_status = value; }
149
151
158 inline ResourceConfigurationType GetType() const { return m_type; }
159 inline void SetType(ResourceConfigurationType value) { m_typeHasBeenSet = true; m_type = value; }
162
164
165 inline const Aws::String& GetRequestId() const { return m_requestId; }
166 template<typename RequestIdT = Aws::String>
167 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
168 template<typename RequestIdT = Aws::String>
169 UpdateResourceConfigurationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
171 private:
172
173 bool m_allowAssociationToShareableServiceNetwork{false};
174 bool m_allowAssociationToShareableServiceNetworkHasBeenSet = false;
175
176 Aws::String m_arn;
177 bool m_arnHasBeenSet = false;
178
179 Aws::String m_id;
180 bool m_idHasBeenSet = false;
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_portRanges;
186 bool m_portRangesHasBeenSet = false;
187
189 bool m_protocolHasBeenSet = false;
190
191 ResourceConfigurationDefinition m_resourceConfigurationDefinition;
192 bool m_resourceConfigurationDefinitionHasBeenSet = false;
193
194 Aws::String m_resourceConfigurationGroupId;
195 bool m_resourceConfigurationGroupIdHasBeenSet = false;
196
197 Aws::String m_resourceGatewayId;
198 bool m_resourceGatewayIdHasBeenSet = false;
199
201 bool m_statusHasBeenSet = false;
202
204 bool m_typeHasBeenSet = false;
205
206 Aws::String m_requestId;
207 bool m_requestIdHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace VPCLattice
212} // namespace Aws
const ResourceConfigurationDefinition & GetResourceConfigurationDefinition() const
void SetResourceConfigurationDefinition(ResourceConfigurationDefinitionT &&value)
AWS_VPCLATTICE_API UpdateResourceConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateResourceConfigurationResult & AddPortRanges(PortRangesT &&value)
UpdateResourceConfigurationResult & WithResourceGatewayId(ResourceGatewayIdT &&value)
void SetResourceConfigurationGroupId(ResourceConfigurationGroupIdT &&value)
UpdateResourceConfigurationResult & WithPortRanges(PortRangesT &&value)
AWS_VPCLATTICE_API UpdateResourceConfigurationResult()=default
UpdateResourceConfigurationResult & WithResourceConfigurationDefinition(ResourceConfigurationDefinitionT &&value)
UpdateResourceConfigurationResult & WithStatus(ResourceConfigurationStatus value)
UpdateResourceConfigurationResult & WithName(NameT &&value)
UpdateResourceConfigurationResult & WithResourceConfigurationGroupId(ResourceConfigurationGroupIdT &&value)
UpdateResourceConfigurationResult & WithRequestId(RequestIdT &&value)
AWS_VPCLATTICE_API UpdateResourceConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateResourceConfigurationResult & WithProtocol(ProtocolType value)
UpdateResourceConfigurationResult & WithType(ResourceConfigurationType value)
UpdateResourceConfigurationResult & WithAllowAssociationToShareableServiceNetwork(bool 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