AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsRdsDbSubnetGroup.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsRdsDbSubnetGroupSubnet.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API AwsRdsDbSubnetGroup() = default;
33 AWS_SECURITYHUB_API AwsRdsDbSubnetGroup(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDbSubnetGroupName() const { return m_dbSubnetGroupName; }
42 inline bool DbSubnetGroupNameHasBeenSet() const { return m_dbSubnetGroupNameHasBeenSet; }
43 template <typename DbSubnetGroupNameT = Aws::String>
44 void SetDbSubnetGroupName(DbSubnetGroupNameT&& value) {
45 m_dbSubnetGroupNameHasBeenSet = true;
46 m_dbSubnetGroupName = std::forward<DbSubnetGroupNameT>(value);
47 }
48 template <typename DbSubnetGroupNameT = Aws::String>
49 AwsRdsDbSubnetGroup& WithDbSubnetGroupName(DbSubnetGroupNameT&& value) {
50 SetDbSubnetGroupName(std::forward<DbSubnetGroupNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDbSubnetGroupDescription() const { return m_dbSubnetGroupDescription; }
60 inline bool DbSubnetGroupDescriptionHasBeenSet() const { return m_dbSubnetGroupDescriptionHasBeenSet; }
61 template <typename DbSubnetGroupDescriptionT = Aws::String>
62 void SetDbSubnetGroupDescription(DbSubnetGroupDescriptionT&& value) {
63 m_dbSubnetGroupDescriptionHasBeenSet = true;
64 m_dbSubnetGroupDescription = std::forward<DbSubnetGroupDescriptionT>(value);
65 }
66 template <typename DbSubnetGroupDescriptionT = Aws::String>
67 AwsRdsDbSubnetGroup& WithDbSubnetGroupDescription(DbSubnetGroupDescriptionT&& value) {
68 SetDbSubnetGroupDescription(std::forward<DbSubnetGroupDescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVpcId() const { return m_vpcId; }
78 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
79 template <typename VpcIdT = Aws::String>
80 void SetVpcId(VpcIdT&& value) {
81 m_vpcIdHasBeenSet = true;
82 m_vpcId = std::forward<VpcIdT>(value);
83 }
84 template <typename VpcIdT = Aws::String>
85 AwsRdsDbSubnetGroup& WithVpcId(VpcIdT&& value) {
86 SetVpcId(std::forward<VpcIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
96 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
97 template <typename SubnetGroupStatusT = Aws::String>
98 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) {
99 m_subnetGroupStatusHasBeenSet = true;
100 m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value);
101 }
102 template <typename SubnetGroupStatusT = Aws::String>
103 AwsRdsDbSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) {
104 SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<AwsRdsDbSubnetGroupSubnet>& GetSubnets() const { return m_subnets; }
114 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
115 template <typename SubnetsT = Aws::Vector<AwsRdsDbSubnetGroupSubnet>>
116 void SetSubnets(SubnetsT&& value) {
117 m_subnetsHasBeenSet = true;
118 m_subnets = std::forward<SubnetsT>(value);
119 }
120 template <typename SubnetsT = Aws::Vector<AwsRdsDbSubnetGroupSubnet>>
121 AwsRdsDbSubnetGroup& WithSubnets(SubnetsT&& value) {
122 SetSubnets(std::forward<SubnetsT>(value));
123 return *this;
124 }
125 template <typename SubnetsT = AwsRdsDbSubnetGroupSubnet>
126 AwsRdsDbSubnetGroup& AddSubnets(SubnetsT&& value) {
127 m_subnetsHasBeenSet = true;
128 m_subnets.emplace_back(std::forward<SubnetsT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetDbSubnetGroupArn() const { return m_dbSubnetGroupArn; }
138 inline bool DbSubnetGroupArnHasBeenSet() const { return m_dbSubnetGroupArnHasBeenSet; }
139 template <typename DbSubnetGroupArnT = Aws::String>
140 void SetDbSubnetGroupArn(DbSubnetGroupArnT&& value) {
141 m_dbSubnetGroupArnHasBeenSet = true;
142 m_dbSubnetGroupArn = std::forward<DbSubnetGroupArnT>(value);
143 }
144 template <typename DbSubnetGroupArnT = Aws::String>
145 AwsRdsDbSubnetGroup& WithDbSubnetGroupArn(DbSubnetGroupArnT&& value) {
146 SetDbSubnetGroupArn(std::forward<DbSubnetGroupArnT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_dbSubnetGroupName;
152
153 Aws::String m_dbSubnetGroupDescription;
154
155 Aws::String m_vpcId;
156
157 Aws::String m_subnetGroupStatus;
158
160
161 Aws::String m_dbSubnetGroupArn;
162 bool m_dbSubnetGroupNameHasBeenSet = false;
163 bool m_dbSubnetGroupDescriptionHasBeenSet = false;
164 bool m_vpcIdHasBeenSet = false;
165 bool m_subnetGroupStatusHasBeenSet = false;
166 bool m_subnetsHasBeenSet = false;
167 bool m_dbSubnetGroupArnHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace SecurityHub
172} // namespace Aws
AwsRdsDbSubnetGroup & AddSubnets(SubnetsT &&value)
void SetDbSubnetGroupArn(DbSubnetGroupArnT &&value)
const Aws::Vector< AwsRdsDbSubnetGroupSubnet > & GetSubnets() const
AwsRdsDbSubnetGroup & WithDbSubnetGroupArn(DbSubnetGroupArnT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDbSubnetGroupDescription() const
void SetDbSubnetGroupName(DbSubnetGroupNameT &&value)
AWS_SECURITYHUB_API AwsRdsDbSubnetGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsRdsDbSubnetGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetGroupStatus(SubnetGroupStatusT &&value)
void SetDbSubnetGroupDescription(DbSubnetGroupDescriptionT &&value)
AwsRdsDbSubnetGroup & WithDbSubnetGroupName(DbSubnetGroupNameT &&value)
AwsRdsDbSubnetGroup & WithSubnets(SubnetsT &&value)
AWS_SECURITYHUB_API AwsRdsDbSubnetGroup()=default
AwsRdsDbSubnetGroup & WithDbSubnetGroupDescription(DbSubnetGroupDescriptionT &&value)
AwsRdsDbSubnetGroup & WithSubnetGroupStatus(SubnetGroupStatusT &&value)
AwsRdsDbSubnetGroup & WithVpcId(VpcIdT &&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