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

Represents the output of one of the following operations:

  • *

    CreateSubnetGroup

  • UpdateSubnetGroup

A * subnet group is a collection of subnets (typically private) that you can * designate for your clusters running in an Amazon Virtual Private Cloud (VPC) * environment.

See Also:

AWS * API Reference

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

The name of the subnet group

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the subnet group

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the subnet group

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the subnet group

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the subnet group

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the subnet group

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

The name of the subnet group

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

The name of the subnet group

*/ inline SubnetGroup& WithName(const char* value) { SetName(value); return *this;} /** *

A description of the subnet group

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

A description of the subnet group

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

A description of the subnet group

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

A description of the subnet group

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

A description of the subnet group

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

A description of the subnet group

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

A description of the subnet group

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

A 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; } /** *

The ARN (Amazon Resource Name) of the subnet group.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The ARN (Amazon Resource Name) of the subnet group.

*/ inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } /** *

The ARN (Amazon Resource Name) of the subnet group.

*/ inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } /** *

The ARN (Amazon Resource Name) of the subnet group.

*/ inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } /** *

The ARN (Amazon Resource Name) of the subnet group.

*/ inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } /** *

The ARN (Amazon Resource Name) of the subnet group.

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

The ARN (Amazon Resource Name) of the subnet group.

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

The ARN (Amazon Resource Name) of the subnet group.

*/ inline SubnetGroup& WithARN(const char* value) { SetARN(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = 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; Aws::String m_aRN; bool m_aRNHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws