/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Information about the subnet group for the database instance.

See * Also:

AWS * API Reference

*/ class AwsRdsDbSubnetGroup { public: AWS_SECURITYHUB_API AwsRdsDbSubnetGroup(); AWS_SECURITYHUB_API AwsRdsDbSubnetGroup(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsRdsDbSubnetGroup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the subnet group.

*/ inline const Aws::String& GetDbSubnetGroupName() const{ return m_dbSubnetGroupName; } /** *

The name of the subnet group.

*/ inline bool DbSubnetGroupNameHasBeenSet() const { return m_dbSubnetGroupNameHasBeenSet; } /** *

The name of the subnet group.

*/ inline void SetDbSubnetGroupName(const Aws::String& value) { m_dbSubnetGroupNameHasBeenSet = true; m_dbSubnetGroupName = value; } /** *

The name of the subnet group.

*/ inline void SetDbSubnetGroupName(Aws::String&& value) { m_dbSubnetGroupNameHasBeenSet = true; m_dbSubnetGroupName = std::move(value); } /** *

The name of the subnet group.

*/ inline void SetDbSubnetGroupName(const char* value) { m_dbSubnetGroupNameHasBeenSet = true; m_dbSubnetGroupName.assign(value); } /** *

The name of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupName(const Aws::String& value) { SetDbSubnetGroupName(value); return *this;} /** *

The name of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupName(Aws::String&& value) { SetDbSubnetGroupName(std::move(value)); return *this;} /** *

The name of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupName(const char* value) { SetDbSubnetGroupName(value); return *this;} /** *

The description of the subnet group.

*/ inline const Aws::String& GetDbSubnetGroupDescription() const{ return m_dbSubnetGroupDescription; } /** *

The description of the subnet group.

*/ inline bool DbSubnetGroupDescriptionHasBeenSet() const { return m_dbSubnetGroupDescriptionHasBeenSet; } /** *

The description of the subnet group.

*/ inline void SetDbSubnetGroupDescription(const Aws::String& value) { m_dbSubnetGroupDescriptionHasBeenSet = true; m_dbSubnetGroupDescription = value; } /** *

The description of the subnet group.

*/ inline void SetDbSubnetGroupDescription(Aws::String&& value) { m_dbSubnetGroupDescriptionHasBeenSet = true; m_dbSubnetGroupDescription = std::move(value); } /** *

The description of the subnet group.

*/ inline void SetDbSubnetGroupDescription(const char* value) { m_dbSubnetGroupDescriptionHasBeenSet = true; m_dbSubnetGroupDescription.assign(value); } /** *

The description of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupDescription(const Aws::String& value) { SetDbSubnetGroupDescription(value); return *this;} /** *

The description of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupDescription(Aws::String&& value) { SetDbSubnetGroupDescription(std::move(value)); return *this;} /** *

The description of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupDescription(const char* value) { SetDbSubnetGroupDescription(value); return *this;} /** *

The VPC ID of the subnet group.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The VPC ID of the subnet group.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The VPC ID of the subnet group.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The VPC ID of the subnet group.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The VPC ID of the subnet group.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The VPC ID of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The VPC ID of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The VPC ID of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The status of the subnet group.

*/ inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; } /** *

The status of the subnet group.

*/ inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; } /** *

The status of the subnet group.

*/ inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; } /** *

The status of the subnet group.

*/ inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::move(value); } /** *

The status of the subnet group.

*/ inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); } /** *

The status of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;} /** *

The status of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;} /** *

The status of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;} /** *

A list of subnets in the subnet group.

*/ inline const Aws::Vector& GetSubnets() const{ return m_subnets; } /** *

A list of subnets in the subnet group.

*/ inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } /** *

A list of subnets in the subnet group.

*/ inline void SetSubnets(const Aws::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } /** *

A list of subnets in the subnet group.

*/ inline void SetSubnets(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } /** *

A list of subnets in the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithSubnets(const Aws::Vector& value) { SetSubnets(value); return *this;} /** *

A list of subnets in the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithSubnets(Aws::Vector&& value) { SetSubnets(std::move(value)); return *this;} /** *

A list of subnets in the subnet group.

*/ inline AwsRdsDbSubnetGroup& AddSubnets(const AwsRdsDbSubnetGroupSubnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *

A list of subnets in the subnet group.

*/ inline AwsRdsDbSubnetGroup& AddSubnets(AwsRdsDbSubnetGroupSubnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } /** *

The ARN of the subnet group.

*/ inline const Aws::String& GetDbSubnetGroupArn() const{ return m_dbSubnetGroupArn; } /** *

The ARN of the subnet group.

*/ inline bool DbSubnetGroupArnHasBeenSet() const { return m_dbSubnetGroupArnHasBeenSet; } /** *

The ARN of the subnet group.

*/ inline void SetDbSubnetGroupArn(const Aws::String& value) { m_dbSubnetGroupArnHasBeenSet = true; m_dbSubnetGroupArn = value; } /** *

The ARN of the subnet group.

*/ inline void SetDbSubnetGroupArn(Aws::String&& value) { m_dbSubnetGroupArnHasBeenSet = true; m_dbSubnetGroupArn = std::move(value); } /** *

The ARN of the subnet group.

*/ inline void SetDbSubnetGroupArn(const char* value) { m_dbSubnetGroupArnHasBeenSet = true; m_dbSubnetGroupArn.assign(value); } /** *

The ARN of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupArn(const Aws::String& value) { SetDbSubnetGroupArn(value); return *this;} /** *

The ARN of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupArn(Aws::String&& value) { SetDbSubnetGroupArn(std::move(value)); return *this;} /** *

The ARN of the subnet group.

*/ inline AwsRdsDbSubnetGroup& WithDbSubnetGroupArn(const char* value) { SetDbSubnetGroupArn(value); return *this;} private: Aws::String m_dbSubnetGroupName; bool m_dbSubnetGroupNameHasBeenSet = false; Aws::String m_dbSubnetGroupDescription; bool m_dbSubnetGroupDescriptionHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_subnetGroupStatus; bool m_subnetGroupStatusHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::String m_dbSubnetGroupArn; bool m_dbSubnetGroupArnHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws