AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SubnetGroup.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/dax/DAX_EXPORTS.h>
10#include <aws/dax/model/NetworkType.h>
11#include <aws/dax/model/Subnet.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DAX {
23namespace Model {
24
33 public:
34 AWS_DAX_API SubnetGroup() = default;
38
40
43 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
44 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
45 template <typename SubnetGroupNameT = Aws::String>
46 void SetSubnetGroupName(SubnetGroupNameT&& value) {
47 m_subnetGroupNameHasBeenSet = true;
48 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
49 }
50 template <typename SubnetGroupNameT = Aws::String>
51 SubnetGroup& WithSubnetGroupName(SubnetGroupNameT&& value) {
52 SetSubnetGroupName(std::forward<SubnetGroupNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 SubnetGroup& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetVpcId() const { return m_vpcId; }
80 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
81 template <typename VpcIdT = Aws::String>
82 void SetVpcId(VpcIdT&& value) {
83 m_vpcIdHasBeenSet = true;
84 m_vpcId = std::forward<VpcIdT>(value);
85 }
86 template <typename VpcIdT = Aws::String>
87 SubnetGroup& WithVpcId(VpcIdT&& value) {
88 SetVpcId(std::forward<VpcIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
98 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
99 template <typename SubnetsT = Aws::Vector<Subnet>>
100 void SetSubnets(SubnetsT&& value) {
101 m_subnetsHasBeenSet = true;
102 m_subnets = std::forward<SubnetsT>(value);
103 }
104 template <typename SubnetsT = Aws::Vector<Subnet>>
105 SubnetGroup& WithSubnets(SubnetsT&& value) {
106 SetSubnets(std::forward<SubnetsT>(value));
107 return *this;
108 }
109 template <typename SubnetsT = Subnet>
110 SubnetGroup& AddSubnets(SubnetsT&& value) {
111 m_subnetsHasBeenSet = true;
112 m_subnets.emplace_back(std::forward<SubnetsT>(value));
113 return *this;
114 }
116
118
123 inline const Aws::Vector<NetworkType>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
124 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
125 template <typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
126 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
127 m_supportedNetworkTypesHasBeenSet = true;
128 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
129 }
130 template <typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
131 SubnetGroup& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
132 SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value));
133 return *this;
134 }
136 m_supportedNetworkTypesHasBeenSet = true;
137 m_supportedNetworkTypes.push_back(value);
138 return *this;
139 }
141 private:
142 Aws::String m_subnetGroupName;
143
144 Aws::String m_description;
145
146 Aws::String m_vpcId;
147
148 Aws::Vector<Subnet> m_subnets;
149
150 Aws::Vector<NetworkType> m_supportedNetworkTypes;
151 bool m_subnetGroupNameHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153 bool m_vpcIdHasBeenSet = false;
154 bool m_subnetsHasBeenSet = false;
155 bool m_supportedNetworkTypesHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace DAX
160} // namespace Aws
void SetVpcId(VpcIdT &&value)
Definition SubnetGroup.h:82
SubnetGroup & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
void SetSubnetGroupName(SubnetGroupNameT &&value)
Definition SubnetGroup.h:46
SubnetGroup & WithSubnets(SubnetsT &&value)
bool SupportedNetworkTypesHasBeenSet() const
SubnetGroup & WithVpcId(VpcIdT &&value)
Definition SubnetGroup.h:87
const Aws::String & GetDescription() const
Definition SubnetGroup.h:61
const Aws::String & GetSubnetGroupName() const
Definition SubnetGroup.h:43
AWS_DAX_API SubnetGroup(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition SubnetGroup.h:64
AWS_DAX_API SubnetGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcId() const
Definition SubnetGroup.h:79
void SetSubnets(SubnetsT &&value)
bool DescriptionHasBeenSet() const
Definition SubnetGroup.h:62
const Aws::Vector< Subnet > & GetSubnets() const
Definition SubnetGroup.h:97
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
SubnetGroup & WithSubnetGroupName(SubnetGroupNameT &&value)
Definition SubnetGroup.h:51
bool SubnetGroupNameHasBeenSet() const
Definition SubnetGroup.h:44
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
SubnetGroup & WithDescription(DescriptionT &&value)
Definition SubnetGroup.h:69
SubnetGroup & AddSupportedNetworkTypes(NetworkType value)
SubnetGroup & AddSubnets(SubnetsT &&value)
AWS_DAX_API SubnetGroup()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue