AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceGatewaySummary.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{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace VPCLattice
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_VPCLATTICE_API ResourceGatewaySummary() = default;
41 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 ResourceGatewaySummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 template<typename CreatedAtT = Aws::Utils::DateTime>
64 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
65 template<typename CreatedAtT = Aws::Utils::DateTime>
66 ResourceGatewaySummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
68
70
73 inline const Aws::String& GetId() const { return m_id; }
74 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
75 template<typename IdT = Aws::String>
76 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
77 template<typename IdT = Aws::String>
78 ResourceGatewaySummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
80
82
85 inline ResourceGatewayIpAddressType GetIpAddressType() const { return m_ipAddressType; }
86 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
87 inline void SetIpAddressType(ResourceGatewayIpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
90
92
96 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
97 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
98 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
99 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
100 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
101 ResourceGatewaySummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
103
105
108 inline const Aws::String& GetName() const { return m_name; }
109 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 template<typename NameT = Aws::String>
111 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
112 template<typename NameT = Aws::String>
113 ResourceGatewaySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
115
117
120 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
121 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
122 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
123 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
124 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
125 ResourceGatewaySummary& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
126 template<typename SecurityGroupIdsT = Aws::String>
127 ResourceGatewaySummary& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
129
131
134 inline ResourceGatewayStatus GetStatus() const { return m_status; }
135 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
136 inline void SetStatus(ResourceGatewayStatus value) { m_statusHasBeenSet = true; m_status = value; }
137 inline ResourceGatewaySummary& WithStatus(ResourceGatewayStatus value) { SetStatus(value); return *this;}
139
141
144 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
145 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
146 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
147 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
148 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
149 ResourceGatewaySummary& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
150 template<typename SubnetIdsT = Aws::String>
151 ResourceGatewaySummary& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
153
155
158 inline const Aws::String& GetVpcIdentifier() const { return m_vpcIdentifier; }
159 inline bool VpcIdentifierHasBeenSet() const { return m_vpcIdentifierHasBeenSet; }
160 template<typename VpcIdentifierT = Aws::String>
161 void SetVpcIdentifier(VpcIdentifierT&& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = std::forward<VpcIdentifierT>(value); }
162 template<typename VpcIdentifierT = Aws::String>
163 ResourceGatewaySummary& WithVpcIdentifier(VpcIdentifierT&& value) { SetVpcIdentifier(std::forward<VpcIdentifierT>(value)); return *this;}
165 private:
166
167 Aws::String m_arn;
168 bool m_arnHasBeenSet = false;
169
170 Aws::Utils::DateTime m_createdAt{};
171 bool m_createdAtHasBeenSet = false;
172
173 Aws::String m_id;
174 bool m_idHasBeenSet = false;
175
177 bool m_ipAddressTypeHasBeenSet = false;
178
179 Aws::Utils::DateTime m_lastUpdatedAt{};
180 bool m_lastUpdatedAtHasBeenSet = false;
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_securityGroupIds;
186 bool m_securityGroupIdsHasBeenSet = false;
187
189 bool m_statusHasBeenSet = false;
190
191 Aws::Vector<Aws::String> m_subnetIds;
192 bool m_subnetIdsHasBeenSet = false;
193
194 Aws::String m_vpcIdentifier;
195 bool m_vpcIdentifierHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace VPCLattice
200} // namespace Aws
ResourceGatewaySummary & WithStatus(ResourceGatewayStatus value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_VPCLATTICE_API ResourceGatewaySummary(Aws::Utils::Json::JsonView jsonValue)
ResourceGatewaySummary & WithCreatedAt(CreatedAtT &&value)
ResourceGatewaySummary & WithSubnetIds(SubnetIdsT &&value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceGatewayIpAddressType GetIpAddressType() const
void SetIpAddressType(ResourceGatewayIpAddressType value)
ResourceGatewaySummary & WithIpAddressType(ResourceGatewayIpAddressType value)
AWS_VPCLATTICE_API ResourceGatewaySummary()=default
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
ResourceGatewaySummary & WithVpcIdentifier(VpcIdentifierT &&value)
ResourceGatewaySummary & AddSecurityGroupIds(SecurityGroupIdsT &&value)
ResourceGatewaySummary & WithName(NameT &&value)
AWS_VPCLATTICE_API ResourceGatewaySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceGatewaySummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ResourceGatewaySummary & WithSecurityGroupIds(SecurityGroupIdsT &&value)
ResourceGatewaySummary & WithId(IdT &&value)
ResourceGatewaySummary & AddSubnetIds(SubnetIdsT &&value)
ResourceGatewaySummary & 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