/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a subnet CIDR reservation.See Also:
AWS
* API Reference
The ID of the subnet CIDR reservation.
*/ inline const Aws::String& GetSubnetCidrReservationId() const{ return m_subnetCidrReservationId; } /** *The ID of the subnet CIDR reservation.
*/ inline bool SubnetCidrReservationIdHasBeenSet() const { return m_subnetCidrReservationIdHasBeenSet; } /** *The ID of the subnet CIDR reservation.
*/ inline void SetSubnetCidrReservationId(const Aws::String& value) { m_subnetCidrReservationIdHasBeenSet = true; m_subnetCidrReservationId = value; } /** *The ID of the subnet CIDR reservation.
*/ inline void SetSubnetCidrReservationId(Aws::String&& value) { m_subnetCidrReservationIdHasBeenSet = true; m_subnetCidrReservationId = std::move(value); } /** *The ID of the subnet CIDR reservation.
*/ inline void SetSubnetCidrReservationId(const char* value) { m_subnetCidrReservationIdHasBeenSet = true; m_subnetCidrReservationId.assign(value); } /** *The ID of the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithSubnetCidrReservationId(const Aws::String& value) { SetSubnetCidrReservationId(value); return *this;} /** *The ID of the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithSubnetCidrReservationId(Aws::String&& value) { SetSubnetCidrReservationId(std::move(value)); return *this;} /** *The ID of the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithSubnetCidrReservationId(const char* value) { SetSubnetCidrReservationId(value); return *this;} /** *The ID of the subnet.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The ID of the subnet.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The ID of the subnet.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The ID of the subnet.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The ID of the subnet.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The ID of the subnet.
*/ inline SubnetCidrReservation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet.
*/ inline SubnetCidrReservation& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet.
*/ inline SubnetCidrReservation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The CIDR that has been reserved.
*/ inline const Aws::String& GetCidr() const{ return m_cidr; } /** *The CIDR that has been reserved.
*/ inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; } /** *The CIDR that has been reserved.
*/ inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; } /** *The CIDR that has been reserved.
*/ inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); } /** *The CIDR that has been reserved.
*/ inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); } /** *The CIDR that has been reserved.
*/ inline SubnetCidrReservation& WithCidr(const Aws::String& value) { SetCidr(value); return *this;} /** *The CIDR that has been reserved.
*/ inline SubnetCidrReservation& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;} /** *The CIDR that has been reserved.
*/ inline SubnetCidrReservation& WithCidr(const char* value) { SetCidr(value); return *this;} /** *The type of reservation.
*/ inline const SubnetCidrReservationType& GetReservationType() const{ return m_reservationType; } /** *The type of reservation.
*/ inline bool ReservationTypeHasBeenSet() const { return m_reservationTypeHasBeenSet; } /** *The type of reservation.
*/ inline void SetReservationType(const SubnetCidrReservationType& value) { m_reservationTypeHasBeenSet = true; m_reservationType = value; } /** *The type of reservation.
*/ inline void SetReservationType(SubnetCidrReservationType&& value) { m_reservationTypeHasBeenSet = true; m_reservationType = std::move(value); } /** *The type of reservation.
*/ inline SubnetCidrReservation& WithReservationType(const SubnetCidrReservationType& value) { SetReservationType(value); return *this;} /** *The type of reservation.
*/ inline SubnetCidrReservation& WithReservationType(SubnetCidrReservationType&& value) { SetReservationType(std::move(value)); return *this;} /** *The ID of the account that owns the subnet CIDR reservation.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *The ID of the account that owns the subnet CIDR reservation.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *The ID of the account that owns the subnet CIDR reservation.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *The ID of the account that owns the subnet CIDR reservation.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *The ID of the account that owns the subnet CIDR reservation.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *The ID of the account that owns the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The ID of the account that owns the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The ID of the account that owns the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *The description assigned to the subnet CIDR reservation.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description assigned to the subnet CIDR reservation.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description assigned to the subnet CIDR reservation.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description assigned to the subnet CIDR reservation.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description assigned to the subnet CIDR reservation.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description assigned to the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description assigned to the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description assigned to the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The tags assigned to the subnet CIDR reservation.
*/ inline const Aws::VectorThe tags assigned to the subnet CIDR reservation.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags assigned to the subnet CIDR reservation.
*/ inline void SetTags(const Aws::VectorThe tags assigned to the subnet CIDR reservation.
*/ inline void SetTags(Aws::VectorThe tags assigned to the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithTags(const Aws::VectorThe tags assigned to the subnet CIDR reservation.
*/ inline SubnetCidrReservation& WithTags(Aws::VectorThe tags assigned to the subnet CIDR reservation.
*/ inline SubnetCidrReservation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tags assigned to the subnet CIDR reservation.
*/ inline SubnetCidrReservation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_subnetCidrReservationId; bool m_subnetCidrReservationIdHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_cidr; bool m_cidrHasBeenSet = false; SubnetCidrReservationType m_reservationType; bool m_reservationTypeHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector