AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsRdsDbSubnetGroup.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsRdsDbSubnetGroupSubnet.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 SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API AwsRdsDbSubnetGroup() = default;
38 AWS_SECURITYHUB_API AwsRdsDbSubnetGroup(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDbSubnetGroupName() const { return m_dbSubnetGroupName; }
48 inline bool DbSubnetGroupNameHasBeenSet() const { return m_dbSubnetGroupNameHasBeenSet; }
49 template<typename DbSubnetGroupNameT = Aws::String>
50 void SetDbSubnetGroupName(DbSubnetGroupNameT&& value) { m_dbSubnetGroupNameHasBeenSet = true; m_dbSubnetGroupName = std::forward<DbSubnetGroupNameT>(value); }
51 template<typename DbSubnetGroupNameT = Aws::String>
52 AwsRdsDbSubnetGroup& WithDbSubnetGroupName(DbSubnetGroupNameT&& value) { SetDbSubnetGroupName(std::forward<DbSubnetGroupNameT>(value)); return *this;}
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) { m_dbSubnetGroupDescriptionHasBeenSet = true; m_dbSubnetGroupDescription = std::forward<DbSubnetGroupDescriptionT>(value); }
63 template<typename DbSubnetGroupDescriptionT = Aws::String>
64 AwsRdsDbSubnetGroup& WithDbSubnetGroupDescription(DbSubnetGroupDescriptionT&& value) { SetDbSubnetGroupDescription(std::forward<DbSubnetGroupDescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetVpcId() const { return m_vpcId; }
72 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
73 template<typename VpcIdT = Aws::String>
74 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
75 template<typename VpcIdT = Aws::String>
76 AwsRdsDbSubnetGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
84 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
85 template<typename SubnetGroupStatusT = Aws::String>
86 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value); }
87 template<typename SubnetGroupStatusT = Aws::String>
88 AwsRdsDbSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) { SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value)); return *this;}
90
92
95 inline const Aws::Vector<AwsRdsDbSubnetGroupSubnet>& GetSubnets() const { return m_subnets; }
96 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
97 template<typename SubnetsT = Aws::Vector<AwsRdsDbSubnetGroupSubnet>>
98 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
99 template<typename SubnetsT = Aws::Vector<AwsRdsDbSubnetGroupSubnet>>
100 AwsRdsDbSubnetGroup& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
101 template<typename SubnetsT = AwsRdsDbSubnetGroupSubnet>
102 AwsRdsDbSubnetGroup& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
104
106
109 inline const Aws::String& GetDbSubnetGroupArn() const { return m_dbSubnetGroupArn; }
110 inline bool DbSubnetGroupArnHasBeenSet() const { return m_dbSubnetGroupArnHasBeenSet; }
111 template<typename DbSubnetGroupArnT = Aws::String>
112 void SetDbSubnetGroupArn(DbSubnetGroupArnT&& value) { m_dbSubnetGroupArnHasBeenSet = true; m_dbSubnetGroupArn = std::forward<DbSubnetGroupArnT>(value); }
113 template<typename DbSubnetGroupArnT = Aws::String>
114 AwsRdsDbSubnetGroup& WithDbSubnetGroupArn(DbSubnetGroupArnT&& value) { SetDbSubnetGroupArn(std::forward<DbSubnetGroupArnT>(value)); return *this;}
116 private:
117
118 Aws::String m_dbSubnetGroupName;
119 bool m_dbSubnetGroupNameHasBeenSet = false;
120
121 Aws::String m_dbSubnetGroupDescription;
122 bool m_dbSubnetGroupDescriptionHasBeenSet = false;
123
124 Aws::String m_vpcId;
125 bool m_vpcIdHasBeenSet = false;
126
127 Aws::String m_subnetGroupStatus;
128 bool m_subnetGroupStatusHasBeenSet = false;
129
131 bool m_subnetsHasBeenSet = false;
132
133 Aws::String m_dbSubnetGroupArn;
134 bool m_dbSubnetGroupArnHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace SecurityHub
139} // 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