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

Describes a carrier gateway.

See Also:

AWS * API Reference

*/ class AWS_EC2_API CarrierGateway { public: CarrierGateway(); CarrierGateway(const Aws::Utils::Xml::XmlNode& xmlNode); CarrierGateway& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the carrier gateway.

*/ inline const Aws::String& GetCarrierGatewayId() const{ return m_carrierGatewayId; } /** *

The ID of the carrier gateway.

*/ inline bool CarrierGatewayIdHasBeenSet() const { return m_carrierGatewayIdHasBeenSet; } /** *

The ID of the carrier gateway.

*/ inline void SetCarrierGatewayId(const Aws::String& value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId = value; } /** *

The ID of the carrier gateway.

*/ inline void SetCarrierGatewayId(Aws::String&& value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId = std::move(value); } /** *

The ID of the carrier gateway.

*/ inline void SetCarrierGatewayId(const char* value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId.assign(value); } /** *

The ID of the carrier gateway.

*/ inline CarrierGateway& WithCarrierGatewayId(const Aws::String& value) { SetCarrierGatewayId(value); return *this;} /** *

The ID of the carrier gateway.

*/ inline CarrierGateway& WithCarrierGatewayId(Aws::String&& value) { SetCarrierGatewayId(std::move(value)); return *this;} /** *

The ID of the carrier gateway.

*/ inline CarrierGateway& WithCarrierGatewayId(const char* value) { SetCarrierGatewayId(value); return *this;} /** *

The ID of the VPC associated with the carrier gateway.

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

The ID of the VPC associated with the carrier gateway.

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

The ID of the VPC associated with the carrier gateway.

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

The ID of the VPC associated with the carrier gateway.

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

The ID of the VPC associated with the carrier gateway.

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

The ID of the VPC associated with the carrier gateway.

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

The ID of the VPC associated with the carrier gateway.

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

The ID of the VPC associated with the carrier gateway.

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

The state of the carrier gateway.

*/ inline const CarrierGatewayState& GetState() const{ return m_state; } /** *

The state of the carrier gateway.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the carrier gateway.

*/ inline void SetState(const CarrierGatewayState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the carrier gateway.

*/ inline void SetState(CarrierGatewayState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the carrier gateway.

*/ inline CarrierGateway& WithState(const CarrierGatewayState& value) { SetState(value); return *this;} /** *

The state of the carrier gateway.

*/ inline CarrierGateway& WithState(CarrierGatewayState&& value) { SetState(std::move(value)); return *this;} /** *

The AWS account ID of the owner of the carrier gateway.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The AWS account ID of the owner of the carrier gateway.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The AWS account ID of the owner of the carrier gateway.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The AWS account ID of the owner of the carrier gateway.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The AWS account ID of the owner of the carrier gateway.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The AWS account ID of the owner of the carrier gateway.

*/ inline CarrierGateway& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The AWS account ID of the owner of the carrier gateway.

*/ inline CarrierGateway& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The AWS account ID of the owner of the carrier gateway.

*/ inline CarrierGateway& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The tags assigned to the carrier gateway.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags assigned to the carrier gateway.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags assigned to the carrier gateway.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags assigned to the carrier gateway.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags assigned to the carrier gateway.

*/ inline CarrierGateway& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags assigned to the carrier gateway.

*/ inline CarrierGateway& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags assigned to the carrier gateway.

*/ inline CarrierGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags assigned to the carrier gateway.

*/ inline CarrierGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_carrierGatewayId; bool m_carrierGatewayIdHasBeenSet; Aws::String m_vpcId; bool m_vpcIdHasBeenSet; CarrierGatewayState m_state; bool m_stateHasBeenSet; Aws::String m_ownerId; bool m_ownerIdHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws