/** * 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 #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a transit gateway.

See Also:

AWS * API Reference

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

The ID of the transit gateway.

*/ inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; } /** *

The ID of the transit gateway.

*/ inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; } /** *

The ID of the transit gateway.

*/ inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; } /** *

The ID of the transit gateway.

*/ inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); } /** *

The ID of the transit gateway.

*/ inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); } /** *

The ID of the transit gateway.

*/ inline TransitGateway& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;} /** *

The ID of the transit gateway.

*/ inline TransitGateway& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;} /** *

The ID of the transit gateway.

*/ inline TransitGateway& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline const Aws::String& GetTransitGatewayArn() const{ return m_transitGatewayArn; } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline bool TransitGatewayArnHasBeenSet() const { return m_transitGatewayArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline void SetTransitGatewayArn(const Aws::String& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = value; } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline void SetTransitGatewayArn(Aws::String&& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline void SetTransitGatewayArn(const char* value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline TransitGateway& WithTransitGatewayArn(const Aws::String& value) { SetTransitGatewayArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline TransitGateway& WithTransitGatewayArn(Aws::String&& value) { SetTransitGatewayArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline TransitGateway& WithTransitGatewayArn(const char* value) { SetTransitGatewayArn(value); return *this;} /** *

The state of the transit gateway.

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

The state of the transit gateway.

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

The state of the transit gateway.

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

The state of the transit gateway.

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

The state of the transit gateway.

*/ inline TransitGateway& WithState(const TransitGatewayState& value) { SetState(value); return *this;} /** *

The state of the transit gateway.

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

The ID of the Amazon Web Services account that owns the transit gateway.

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

The ID of the Amazon Web Services account that owns the transit gateway.

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

The ID of the Amazon Web Services account that owns the transit gateway.

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

The ID of the Amazon Web Services account that owns the transit gateway.

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

The ID of the Amazon Web Services account that owns the transit gateway.

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

The ID of the Amazon Web Services account that owns the transit gateway.

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

The ID of the Amazon Web Services account that owns the transit gateway.

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

The ID of the Amazon Web Services account that owns the transit gateway.

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

The description of the transit gateway.

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

The description of the transit gateway.

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

The description of the transit gateway.

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

The description of the transit gateway.

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

The description of the transit gateway.

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

The description of the transit gateway.

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

The description of the transit gateway.

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

The description of the transit gateway.

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

The creation time.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The creation time.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The creation time.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The creation time.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The creation time.

*/ inline TransitGateway& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The creation time.

*/ inline TransitGateway& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The transit gateway options.

*/ inline const TransitGatewayOptions& GetOptions() const{ return m_options; } /** *

The transit gateway options.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

The transit gateway options.

*/ inline void SetOptions(const TransitGatewayOptions& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

The transit gateway options.

*/ inline void SetOptions(TransitGatewayOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

The transit gateway options.

*/ inline TransitGateway& WithOptions(const TransitGatewayOptions& value) { SetOptions(value); return *this;} /** *

The transit gateway options.

*/ inline TransitGateway& WithOptions(TransitGatewayOptions&& value) { SetOptions(std::move(value)); return *this;} /** *

The tags for the transit gateway.

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

The tags for the transit gateway.

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

The tags for the transit gateway.

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

The tags for the transit gateway.

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

The tags for the transit gateway.

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

The tags for the transit gateway.

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

The tags for the transit gateway.

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

The tags for the transit gateway.

*/ inline TransitGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_transitGatewayId; bool m_transitGatewayIdHasBeenSet = false; Aws::String m_transitGatewayArn; bool m_transitGatewayArnHasBeenSet = false; TransitGatewayState m_state; bool m_stateHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; TransitGatewayOptions m_options; bool m_optionsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws