AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetResourceGatewayResult.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/vpc-lattice/model/ResourceGatewayIpAddressType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/vpc-lattice/model/ResourceGatewayStatus.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace VPCLattice
28{
29namespace Model
30{
32 {
33 public:
34 AWS_VPCLATTICE_API GetResourceGatewayResult() = default;
37
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 template<typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
46 template<typename ArnT = Aws::String>
47 GetResourceGatewayResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
49
51
55 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
56 template<typename CreatedAtT = Aws::Utils::DateTime>
57 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
58 template<typename CreatedAtT = Aws::Utils::DateTime>
59 GetResourceGatewayResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
61
63
66 inline const Aws::String& GetId() const { return m_id; }
67 template<typename IdT = Aws::String>
68 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
69 template<typename IdT = Aws::String>
70 GetResourceGatewayResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
72
74
77 inline ResourceGatewayIpAddressType GetIpAddressType() const { return m_ipAddressType; }
78 inline void SetIpAddressType(ResourceGatewayIpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
81
83
87 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
88 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
89 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
90 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
91 GetResourceGatewayResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 template<typename NameT = Aws::String>
100 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
101 template<typename NameT = Aws::String>
102 GetResourceGatewayResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
104
106
109 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
110 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
111 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
112 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
113 GetResourceGatewayResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
114 template<typename SecurityGroupIdsT = Aws::String>
115 GetResourceGatewayResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
117
119
122 inline ResourceGatewayStatus GetStatus() const { return m_status; }
123 inline void SetStatus(ResourceGatewayStatus value) { m_statusHasBeenSet = true; m_status = value; }
126
128
131 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
132 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
133 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
134 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
135 GetResourceGatewayResult& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
136 template<typename SubnetIdsT = Aws::String>
137 GetResourceGatewayResult& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
139
141
144 inline const Aws::String& GetVpcId() const { return m_vpcId; }
145 template<typename VpcIdT = Aws::String>
146 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
147 template<typename VpcIdT = Aws::String>
148 GetResourceGatewayResult& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template<typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
156 template<typename RequestIdT = Aws::String>
157 GetResourceGatewayResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
159 private:
160
161 Aws::String m_arn;
162 bool m_arnHasBeenSet = false;
163
164 Aws::Utils::DateTime m_createdAt{};
165 bool m_createdAtHasBeenSet = false;
166
167 Aws::String m_id;
168 bool m_idHasBeenSet = false;
169
171 bool m_ipAddressTypeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_lastUpdatedAt{};
174 bool m_lastUpdatedAtHasBeenSet = false;
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 Aws::Vector<Aws::String> m_securityGroupIds;
180 bool m_securityGroupIdsHasBeenSet = false;
181
183 bool m_statusHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_subnetIds;
186 bool m_subnetIdsHasBeenSet = false;
187
188 Aws::String m_vpcId;
189 bool m_vpcIdHasBeenSet = false;
190
191 Aws::String m_requestId;
192 bool m_requestIdHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace VPCLattice
197} // namespace Aws
void SetIpAddressType(ResourceGatewayIpAddressType value)
GetResourceGatewayResult & AddSubnetIds(SubnetIdsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
ResourceGatewayIpAddressType GetIpAddressType() const
AWS_VPCLATTICE_API GetResourceGatewayResult()=default
GetResourceGatewayResult & WithName(NameT &&value)
GetResourceGatewayResult & WithStatus(ResourceGatewayStatus value)
GetResourceGatewayResult & WithArn(ArnT &&value)
GetResourceGatewayResult & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_VPCLATTICE_API GetResourceGatewayResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceGatewayResult & WithIpAddressType(ResourceGatewayIpAddressType value)
GetResourceGatewayResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
GetResourceGatewayResult & WithCreatedAt(CreatedAtT &&value)
GetResourceGatewayResult & WithVpcId(VpcIdT &&value)
GetResourceGatewayResult & WithId(IdT &&value)
GetResourceGatewayResult & WithSecurityGroupIds(SecurityGroupIdsT &&value)
GetResourceGatewayResult & WithRequestId(RequestIdT &&value)
AWS_VPCLATTICE_API GetResourceGatewayResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceGatewayResult & WithSubnetIds(SubnetIdsT &&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