AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
48 inline const Aws::String& GetSubnetGroupName() const{ return m_subnetGroupName; }
49 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
50 inline void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = value; }
51 inline void SetSubnetGroupName(Aws::String&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::move(value); }
52 inline void SetSubnetGroupName(const char* value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName.assign(value); }
53 inline SubnetGroup& WithSubnetGroupName(const Aws::String& value) { SetSubnetGroupName(value); return *this;}
54 inline SubnetGroup& WithSubnetGroupName(Aws::String&& value) { SetSubnetGroupName(std::move(value)); return *this;}
55 inline SubnetGroup& WithSubnetGroupName(const char* value) { SetSubnetGroupName(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline SubnetGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline SubnetGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline SubnetGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
78 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
79 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
80 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
81 inline SubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline SubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline SubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
85
87
90 inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
91 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
92 inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
93 inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
94 inline SubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
95 inline SubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
96 inline SubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
97 inline SubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_subnetGroupName;
102 bool m_subnetGroupNameHasBeenSet = false;
103
104 Aws::String m_description;
105 bool m_descriptionHasBeenSet = false;
106
107 Aws::String m_vpcId;
108 bool m_vpcIdHasBeenSet = false;
109
110 Aws::Vector<Subnet> m_subnets;
111 bool m_subnetsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace DAX
116} // namespace Aws
void SetVpcId(const Aws::String &value)
Definition SubnetGroup.h:78
void SetDescription(const Aws::String &value)
Definition SubnetGroup.h:64
SubnetGroup & WithDescription(Aws::String &&value)
Definition SubnetGroup.h:68
void SetSubnetGroupName(const char *value)
Definition SubnetGroup.h:52
void SetSubnets(Aws::Vector< Subnet > &&value)
Definition SubnetGroup.h:93
void SetSubnetGroupName(const Aws::String &value)
Definition SubnetGroup.h:50
void SetDescription(Aws::String &&value)
Definition SubnetGroup.h:65
void SetVpcId(const char *value)
Definition SubnetGroup.h:80
const Aws::String & GetDescription() const
Definition SubnetGroup.h:62
SubnetGroup & WithDescription(const char *value)
Definition SubnetGroup.h:69
const Aws::String & GetSubnetGroupName() const
Definition SubnetGroup.h:48
AWS_DAX_API SubnetGroup(Aws::Utils::Json::JsonView jsonValue)
SubnetGroup & WithSubnetGroupName(const Aws::String &value)
Definition SubnetGroup.h:53
SubnetGroup & WithVpcId(const char *value)
Definition SubnetGroup.h:83
AWS_DAX_API SubnetGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const char *value)
Definition SubnetGroup.h:66
void SetSubnets(const Aws::Vector< Subnet > &value)
Definition SubnetGroup.h:92
const Aws::String & GetVpcId() const
Definition SubnetGroup.h:76
bool DescriptionHasBeenSet() const
Definition SubnetGroup.h:63
const Aws::Vector< Subnet > & GetSubnets() const
Definition SubnetGroup.h:90
bool SubnetGroupNameHasBeenSet() const
Definition SubnetGroup.h:49
SubnetGroup & WithVpcId(Aws::String &&value)
Definition SubnetGroup.h:82
SubnetGroup & AddSubnets(const Subnet &value)
Definition SubnetGroup.h:96
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
SubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
Definition SubnetGroup.h:94
SubnetGroup & WithVpcId(const Aws::String &value)
Definition SubnetGroup.h:81
SubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
Definition SubnetGroup.h:95
SubnetGroup & WithSubnetGroupName(Aws::String &&value)
Definition SubnetGroup.h:54
SubnetGroup & AddSubnets(Subnet &&value)
Definition SubnetGroup.h:97
SubnetGroup & WithSubnetGroupName(const char *value)
Definition SubnetGroup.h:55
void SetSubnetGroupName(Aws::String &&value)
Definition SubnetGroup.h:51
SubnetGroup & WithDescription(const Aws::String &value)
Definition SubnetGroup.h:67
void SetVpcId(Aws::String &&value)
Definition SubnetGroup.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue