/** * 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 DAX { namespace Model { /** *

Represents the output of one of the following actions:

  • * CreateSubnetGroup

  • ModifySubnetGroup

  • *

See Also:

AWS API * Reference

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

The name of the subnet group.

*/ inline const Aws::String& GetSubnetGroupName() const{ return m_subnetGroupName; } /** *

The name of the subnet group.

*/ inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; } /** *

The name of the subnet group.

*/ inline void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = value; } /** *

The name of the subnet group.

*/ inline void SetSubnetGroupName(Aws::String&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::move(value); } /** *

The name of the subnet group.

*/ inline void SetSubnetGroupName(const char* value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName.assign(value); } /** *

The name of the subnet group.

*/ inline SubnetGroup& WithSubnetGroupName(const Aws::String& value) { SetSubnetGroupName(value); return *this;} /** *

The name of the subnet group.

*/ inline SubnetGroup& WithSubnetGroupName(Aws::String&& value) { SetSubnetGroupName(std::move(value)); return *this;} /** *

The name of the subnet group.

*/ inline SubnetGroup& WithSubnetGroupName(const char* value) { SetSubnetGroupName(value); return *this;} /** *

The description of the subnet group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the subnet group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the subnet group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the subnet group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the subnet group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the subnet group.

*/ inline SubnetGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the subnet group.

*/ inline SubnetGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the subnet group.

*/ inline SubnetGroup& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

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

The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

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

The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

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

The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

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

The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

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

The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

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

The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

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

The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

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

A list of subnets associated with the subnet group.

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

A list of subnets associated with the subnet group.

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

A list of subnets associated with the subnet group.

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

A list of subnets associated with the subnet group.

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

A list of subnets associated with the subnet group.

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

A list of subnets associated with the subnet group.

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

A list of subnets associated with the subnet group.

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

A list of subnets associated with the subnet group.

*/ inline SubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } private: Aws::String m_subnetGroupName; bool m_subnetGroupNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; }; } // namespace Model } // namespace DAX } // namespace Aws