AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateResourceGatewayResult.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/vpc-lattice/model/IpAddressType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/vpc-lattice/model/ResourceGatewayStatus.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace VPCLattice
27{
28namespace Model
29{
31 {
32 public:
33 AWS_VPCLATTICE_API UpdateResourceGatewayResult() = default;
36
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 template<typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
45 template<typename ArnT = Aws::String>
46 UpdateResourceGatewayResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 UpdateResourceGatewayResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
59
61
64 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
65 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 UpdateResourceGatewayResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
85 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
86 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
87 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
88 UpdateResourceGatewayResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
89 template<typename SecurityGroupIdsT = Aws::String>
90 UpdateResourceGatewayResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
92
94
97 inline ResourceGatewayStatus GetStatus() const { return m_status; }
98 inline void SetStatus(ResourceGatewayStatus value) { m_statusHasBeenSet = true; m_status = value; }
101
103
106 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
107 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
108 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
109 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
110 UpdateResourceGatewayResult& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
111 template<typename SubnetIdsT = Aws::String>
112 UpdateResourceGatewayResult& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
114
116
119 inline const Aws::String& GetVpcId() const { return m_vpcId; }
120 template<typename VpcIdT = Aws::String>
121 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
122 template<typename VpcIdT = Aws::String>
123 UpdateResourceGatewayResult& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
125
127
128 inline const Aws::String& GetRequestId() const { return m_requestId; }
129 template<typename RequestIdT = Aws::String>
130 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
131 template<typename RequestIdT = Aws::String>
132 UpdateResourceGatewayResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
134 private:
135
136 Aws::String m_arn;
137 bool m_arnHasBeenSet = false;
138
139 Aws::String m_id;
140 bool m_idHasBeenSet = false;
141
142 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
143 bool m_ipAddressTypeHasBeenSet = false;
144
145 Aws::String m_name;
146 bool m_nameHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_securityGroupIds;
149 bool m_securityGroupIdsHasBeenSet = false;
150
152 bool m_statusHasBeenSet = false;
153
154 Aws::Vector<Aws::String> m_subnetIds;
155 bool m_subnetIdsHasBeenSet = false;
156
157 Aws::String m_vpcId;
158 bool m_vpcIdHasBeenSet = false;
159
160 Aws::String m_requestId;
161 bool m_requestIdHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace VPCLattice
166} // namespace Aws
UpdateResourceGatewayResult & WithRequestId(RequestIdT &&value)
UpdateResourceGatewayResult & AddSubnetIds(SubnetIdsT &&value)
UpdateResourceGatewayResult & WithVpcId(VpcIdT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
UpdateResourceGatewayResult & WithStatus(ResourceGatewayStatus value)
AWS_VPCLATTICE_API UpdateResourceGatewayResult()=default
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_VPCLATTICE_API UpdateResourceGatewayResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateResourceGatewayResult & WithIpAddressType(IpAddressType value)
UpdateResourceGatewayResult & WithSubnetIds(SubnetIdsT &&value)
UpdateResourceGatewayResult & WithSecurityGroupIds(SecurityGroupIdsT &&value)
UpdateResourceGatewayResult & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_VPCLATTICE_API UpdateResourceGatewayResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateResourceGatewayResult & WithName(NameT &&value)
UpdateResourceGatewayResult & WithArn(ArnT &&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