AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SubnetGroup.h
1
6#pragma once
7#include <aws/dax/DAX_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dax/model/Subnet.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DAX
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_DAX_API SubnetGroup() = default;
42
43
45
48 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
49 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
50 template<typename SubnetGroupNameT = Aws::String>
51 void SetSubnetGroupName(SubnetGroupNameT&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::forward<SubnetGroupNameT>(value); }
52 template<typename SubnetGroupNameT = Aws::String>
53 SubnetGroup& WithSubnetGroupName(SubnetGroupNameT&& value) { SetSubnetGroupName(std::forward<SubnetGroupNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 SubnetGroup& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetVpcId() const { return m_vpcId; }
73 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
74 template<typename VpcIdT = Aws::String>
75 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
76 template<typename VpcIdT = Aws::String>
77 SubnetGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
85 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
86 template<typename SubnetsT = Aws::Vector<Subnet>>
87 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
88 template<typename SubnetsT = Aws::Vector<Subnet>>
89 SubnetGroup& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
90 template<typename SubnetsT = Subnet>
91 SubnetGroup& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
93 private:
94
95 Aws::String m_subnetGroupName;
96 bool m_subnetGroupNameHasBeenSet = false;
97
98 Aws::String m_description;
99 bool m_descriptionHasBeenSet = false;
100
101 Aws::String m_vpcId;
102 bool m_vpcIdHasBeenSet = false;
103
104 Aws::Vector<Subnet> m_subnets;
105 bool m_subnetsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace DAX
110} // namespace Aws
void SetVpcId(VpcIdT &&value)
Definition SubnetGroup.h:75
void SetSubnetGroupName(SubnetGroupNameT &&value)
Definition SubnetGroup.h:51
SubnetGroup & WithSubnets(SubnetsT &&value)
Definition SubnetGroup.h:89
SubnetGroup & WithVpcId(VpcIdT &&value)
Definition SubnetGroup.h:77
const Aws::String & GetDescription() const
Definition SubnetGroup.h:60
const Aws::String & GetSubnetGroupName() const
Definition SubnetGroup.h:48
AWS_DAX_API SubnetGroup(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition SubnetGroup.h:63
AWS_DAX_API SubnetGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcId() const
Definition SubnetGroup.h:72
void SetSubnets(SubnetsT &&value)
Definition SubnetGroup.h:87
bool DescriptionHasBeenSet() const
Definition SubnetGroup.h:61
const Aws::Vector< Subnet > & GetSubnets() const
Definition SubnetGroup.h:84
SubnetGroup & WithSubnetGroupName(SubnetGroupNameT &&value)
Definition SubnetGroup.h:53
bool SubnetGroupNameHasBeenSet() const
Definition SubnetGroup.h:49
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
SubnetGroup & WithDescription(DescriptionT &&value)
Definition SubnetGroup.h:65
SubnetGroup & AddSubnets(SubnetsT &&value)
Definition SubnetGroup.h:91
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