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

Describes the transit gateway peering attachment.

See Also:

* AWS * API Reference

*/ class TransitGatewayPeeringAttachment { public: AWS_EC2_API TransitGatewayPeeringAttachment(); AWS_EC2_API TransitGatewayPeeringAttachment(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API TransitGatewayPeeringAttachment& 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 peering attachment.

*/ inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; } /** *

The ID of the transit gateway peering attachment.

*/ inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; } /** *

The ID of the transit gateway peering attachment.

*/ inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; } /** *

The ID of the transit gateway peering attachment.

*/ inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); } /** *

The ID of the transit gateway peering attachment.

*/ inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); } /** *

The ID of the transit gateway peering attachment.

*/ inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;} /** *

The ID of the transit gateway peering attachment.

*/ inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;} /** *

The ID of the transit gateway peering attachment.

*/ inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;} /** *

The ID of the accepter transit gateway attachment.

*/ inline const Aws::String& GetAccepterTransitGatewayAttachmentId() const{ return m_accepterTransitGatewayAttachmentId; } /** *

The ID of the accepter transit gateway attachment.

*/ inline bool AccepterTransitGatewayAttachmentIdHasBeenSet() const { return m_accepterTransitGatewayAttachmentIdHasBeenSet; } /** *

The ID of the accepter transit gateway attachment.

*/ inline void SetAccepterTransitGatewayAttachmentId(const Aws::String& value) { m_accepterTransitGatewayAttachmentIdHasBeenSet = true; m_accepterTransitGatewayAttachmentId = value; } /** *

The ID of the accepter transit gateway attachment.

*/ inline void SetAccepterTransitGatewayAttachmentId(Aws::String&& value) { m_accepterTransitGatewayAttachmentIdHasBeenSet = true; m_accepterTransitGatewayAttachmentId = std::move(value); } /** *

The ID of the accepter transit gateway attachment.

*/ inline void SetAccepterTransitGatewayAttachmentId(const char* value) { m_accepterTransitGatewayAttachmentIdHasBeenSet = true; m_accepterTransitGatewayAttachmentId.assign(value); } /** *

The ID of the accepter transit gateway attachment.

*/ inline TransitGatewayPeeringAttachment& WithAccepterTransitGatewayAttachmentId(const Aws::String& value) { SetAccepterTransitGatewayAttachmentId(value); return *this;} /** *

The ID of the accepter transit gateway attachment.

*/ inline TransitGatewayPeeringAttachment& WithAccepterTransitGatewayAttachmentId(Aws::String&& value) { SetAccepterTransitGatewayAttachmentId(std::move(value)); return *this;} /** *

The ID of the accepter transit gateway attachment.

*/ inline TransitGatewayPeeringAttachment& WithAccepterTransitGatewayAttachmentId(const char* value) { SetAccepterTransitGatewayAttachmentId(value); return *this;} /** *

Information about the requester transit gateway.

*/ inline const PeeringTgwInfo& GetRequesterTgwInfo() const{ return m_requesterTgwInfo; } /** *

Information about the requester transit gateway.

*/ inline bool RequesterTgwInfoHasBeenSet() const { return m_requesterTgwInfoHasBeenSet; } /** *

Information about the requester transit gateway.

*/ inline void SetRequesterTgwInfo(const PeeringTgwInfo& value) { m_requesterTgwInfoHasBeenSet = true; m_requesterTgwInfo = value; } /** *

Information about the requester transit gateway.

*/ inline void SetRequesterTgwInfo(PeeringTgwInfo&& value) { m_requesterTgwInfoHasBeenSet = true; m_requesterTgwInfo = std::move(value); } /** *

Information about the requester transit gateway.

*/ inline TransitGatewayPeeringAttachment& WithRequesterTgwInfo(const PeeringTgwInfo& value) { SetRequesterTgwInfo(value); return *this;} /** *

Information about the requester transit gateway.

*/ inline TransitGatewayPeeringAttachment& WithRequesterTgwInfo(PeeringTgwInfo&& value) { SetRequesterTgwInfo(std::move(value)); return *this;} /** *

Information about the accepter transit gateway.

*/ inline const PeeringTgwInfo& GetAccepterTgwInfo() const{ return m_accepterTgwInfo; } /** *

Information about the accepter transit gateway.

*/ inline bool AccepterTgwInfoHasBeenSet() const { return m_accepterTgwInfoHasBeenSet; } /** *

Information about the accepter transit gateway.

*/ inline void SetAccepterTgwInfo(const PeeringTgwInfo& value) { m_accepterTgwInfoHasBeenSet = true; m_accepterTgwInfo = value; } /** *

Information about the accepter transit gateway.

*/ inline void SetAccepterTgwInfo(PeeringTgwInfo&& value) { m_accepterTgwInfoHasBeenSet = true; m_accepterTgwInfo = std::move(value); } /** *

Information about the accepter transit gateway.

*/ inline TransitGatewayPeeringAttachment& WithAccepterTgwInfo(const PeeringTgwInfo& value) { SetAccepterTgwInfo(value); return *this;} /** *

Information about the accepter transit gateway.

*/ inline TransitGatewayPeeringAttachment& WithAccepterTgwInfo(PeeringTgwInfo&& value) { SetAccepterTgwInfo(std::move(value)); return *this;} /** *

Details about the transit gateway peering attachment.

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

Details about the transit gateway peering attachment.

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

Details about the transit gateway peering attachment.

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

Details about the transit gateway peering attachment.

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

Details about the transit gateway peering attachment.

*/ inline TransitGatewayPeeringAttachment& WithOptions(const TransitGatewayPeeringAttachmentOptions& value) { SetOptions(value); return *this;} /** *

Details about the transit gateway peering attachment.

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

The status of the transit gateway peering attachment.

*/ inline const PeeringAttachmentStatus& GetStatus() const{ return m_status; } /** *

The status of the transit gateway peering attachment.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the transit gateway peering attachment.

*/ inline void SetStatus(const PeeringAttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the transit gateway peering attachment.

*/ inline void SetStatus(PeeringAttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the transit gateway peering attachment.

*/ inline TransitGatewayPeeringAttachment& WithStatus(const PeeringAttachmentStatus& value) { SetStatus(value); return *this;} /** *

The status of the transit gateway peering attachment.

*/ inline TransitGatewayPeeringAttachment& WithStatus(PeeringAttachmentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The state of the transit gateway peering attachment. Note that the * initiating state has been deprecated.

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

The state of the transit gateway peering attachment. Note that the * initiating state has been deprecated.

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

The state of the transit gateway peering attachment. Note that the * initiating state has been deprecated.

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

The state of the transit gateway peering attachment. Note that the * initiating state has been deprecated.

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

The state of the transit gateway peering attachment. Note that the * initiating state has been deprecated.

*/ inline TransitGatewayPeeringAttachment& WithState(const TransitGatewayAttachmentState& value) { SetState(value); return *this;} /** *

The state of the transit gateway peering attachment. Note that the * initiating state has been deprecated.

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

The time the transit gateway peering attachment was created.

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

The time the transit gateway peering attachment was created.

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

The time the transit gateway peering attachment was created.

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

The time the transit gateway peering attachment was created.

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

The time the transit gateway peering attachment was created.

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

The time the transit gateway peering attachment was created.

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

The tags for the transit gateway peering attachment.

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

The tags for the transit gateway peering attachment.

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

The tags for the transit gateway peering attachment.

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

The tags for the transit gateway peering attachment.

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

The tags for the transit gateway peering attachment.

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

The tags for the transit gateway peering attachment.

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

The tags for the transit gateway peering attachment.

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

The tags for the transit gateway peering attachment.

*/ inline TransitGatewayPeeringAttachment& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_transitGatewayAttachmentId; bool m_transitGatewayAttachmentIdHasBeenSet = false; Aws::String m_accepterTransitGatewayAttachmentId; bool m_accepterTransitGatewayAttachmentIdHasBeenSet = false; PeeringTgwInfo m_requesterTgwInfo; bool m_requesterTgwInfoHasBeenSet = false; PeeringTgwInfo m_accepterTgwInfo; bool m_accepterTgwInfoHasBeenSet = false; TransitGatewayPeeringAttachmentOptions m_options; bool m_optionsHasBeenSet = false; PeeringAttachmentStatus m_status; bool m_statusHasBeenSet = false; TransitGatewayAttachmentState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws