AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
VpcInformation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/outposts/Outposts_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Outposts {
21namespace Model {
22
30 public:
31 AWS_OUTPOSTS_API VpcInformation() = default;
32 AWS_OUTPOSTS_API VpcInformation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetVpcId() const { return m_vpcId; }
41 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
42 template <typename VpcIdT = Aws::String>
43 void SetVpcId(VpcIdT&& value) {
44 m_vpcIdHasBeenSet = true;
45 m_vpcId = std::forward<VpcIdT>(value);
46 }
47 template <typename VpcIdT = Aws::String>
48 VpcInformation& WithVpcId(VpcIdT&& value) {
49 SetVpcId(std::forward<VpcIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
60 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
61 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
62 void SetSubnetIds(SubnetIdsT&& value) {
63 m_subnetIdsHasBeenSet = true;
64 m_subnetIds = std::forward<SubnetIdsT>(value);
65 }
66 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
67 VpcInformation& WithSubnetIds(SubnetIdsT&& value) {
68 SetSubnetIds(std::forward<SubnetIdsT>(value));
69 return *this;
70 }
71 template <typename SubnetIdsT = Aws::String>
72 VpcInformation& AddSubnetIds(SubnetIdsT&& value) {
73 m_subnetIdsHasBeenSet = true;
74 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
86 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
87 template <typename VpcEndpointIdT = Aws::String>
88 void SetVpcEndpointId(VpcEndpointIdT&& value) {
89 m_vpcEndpointIdHasBeenSet = true;
90 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
91 }
92 template <typename VpcEndpointIdT = Aws::String>
93 VpcInformation& WithVpcEndpointId(VpcEndpointIdT&& value) {
94 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_vpcId;
100
101 Aws::Vector<Aws::String> m_subnetIds;
102
103 Aws::String m_vpcEndpointId;
104 bool m_vpcIdHasBeenSet = false;
105 bool m_subnetIdsHasBeenSet = false;
106 bool m_vpcEndpointIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Outposts
111} // namespace Aws
VpcInformation & WithVpcEndpointId(VpcEndpointIdT &&value)
void SetSubnetIds(SubnetIdsT &&value)
const Aws::String & GetVpcEndpointId() const
AWS_OUTPOSTS_API VpcInformation(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API VpcInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcId() const
VpcInformation & WithVpcId(VpcIdT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetVpcEndpointId(VpcEndpointIdT &&value)
VpcInformation & WithSubnetIds(SubnetIdsT &&value)
AWS_OUTPOSTS_API VpcInformation()=default
VpcInformation & AddSubnetIds(SubnetIdsT &&value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue