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

Represents the subnet associated with a cluster. This parameter refers to * subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with * MemoryDB.

See Also:

AWS API * Reference

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

The unique identifier for the subnet.

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

The unique identifier for the subnet.

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

The unique identifier for the subnet.

*/ inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

The unique identifier for the subnet.

*/ inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

The unique identifier for the subnet.

*/ inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } /** *

The unique identifier for the subnet.

*/ inline Subnet& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

The unique identifier for the subnet.

*/ inline Subnet& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

The unique identifier for the subnet.

*/ inline Subnet& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} /** *

The Availability Zone where the subnet resides

*/ inline const AvailabilityZone& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone where the subnet resides

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone where the subnet resides

*/ inline void SetAvailabilityZone(const AvailabilityZone& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone where the subnet resides

*/ inline void SetAvailabilityZone(AvailabilityZone&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone where the subnet resides

*/ inline Subnet& WithAvailabilityZone(const AvailabilityZone& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone where the subnet resides

*/ inline Subnet& WithAvailabilityZone(AvailabilityZone&& value) { SetAvailabilityZone(std::move(value)); return *this;} private: Aws::String m_identifier; bool m_identifierHasBeenSet = false; AvailabilityZone m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws