This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ec2/include/aws/ec2/model/TransitGatewayPeeringAttachment.h

312 lines
11 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ec2/model/PeeringTgwInfo.h>
#include <aws/ec2/model/PeeringAttachmentStatus.h>
#include <aws/ec2/model/TransitGatewayAttachmentState.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ec2/model/Tag.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace EC2
{
namespace Model
{
/**
* <p>Describes the transit gateway peering attachment.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TransitGatewayPeeringAttachment">AWS
* API Reference</a></p>
*/
class AWS_EC2_API TransitGatewayPeeringAttachment
{
public:
TransitGatewayPeeringAttachment();
TransitGatewayPeeringAttachment(const Aws::Utils::Xml::XmlNode& xmlNode);
TransitGatewayPeeringAttachment& 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;
/**
* <p>The ID of the transit gateway peering attachment.</p>
*/
inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
/**
* <p>The ID of the transit gateway peering attachment.</p>
*/
inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
/**
* <p>The ID of the transit gateway peering attachment.</p>
*/
inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
/**
* <p>The ID of the transit gateway peering attachment.</p>
*/
inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
/**
* <p>The ID of the transit gateway peering attachment.</p>
*/
inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
/**
* <p>The ID of the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
/**
* <p>The ID of the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
/**
* <p>The ID of the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
/**
* <p>Information about the requester transit gateway.</p>
*/
inline const PeeringTgwInfo& GetRequesterTgwInfo() const{ return m_requesterTgwInfo; }
/**
* <p>Information about the requester transit gateway.</p>
*/
inline bool RequesterTgwInfoHasBeenSet() const { return m_requesterTgwInfoHasBeenSet; }
/**
* <p>Information about the requester transit gateway.</p>
*/
inline void SetRequesterTgwInfo(const PeeringTgwInfo& value) { m_requesterTgwInfoHasBeenSet = true; m_requesterTgwInfo = value; }
/**
* <p>Information about the requester transit gateway.</p>
*/
inline void SetRequesterTgwInfo(PeeringTgwInfo&& value) { m_requesterTgwInfoHasBeenSet = true; m_requesterTgwInfo = std::move(value); }
/**
* <p>Information about the requester transit gateway.</p>
*/
inline TransitGatewayPeeringAttachment& WithRequesterTgwInfo(const PeeringTgwInfo& value) { SetRequesterTgwInfo(value); return *this;}
/**
* <p>Information about the requester transit gateway.</p>
*/
inline TransitGatewayPeeringAttachment& WithRequesterTgwInfo(PeeringTgwInfo&& value) { SetRequesterTgwInfo(std::move(value)); return *this;}
/**
* <p>Information about the accepter transit gateway.</p>
*/
inline const PeeringTgwInfo& GetAccepterTgwInfo() const{ return m_accepterTgwInfo; }
/**
* <p>Information about the accepter transit gateway.</p>
*/
inline bool AccepterTgwInfoHasBeenSet() const { return m_accepterTgwInfoHasBeenSet; }
/**
* <p>Information about the accepter transit gateway.</p>
*/
inline void SetAccepterTgwInfo(const PeeringTgwInfo& value) { m_accepterTgwInfoHasBeenSet = true; m_accepterTgwInfo = value; }
/**
* <p>Information about the accepter transit gateway.</p>
*/
inline void SetAccepterTgwInfo(PeeringTgwInfo&& value) { m_accepterTgwInfoHasBeenSet = true; m_accepterTgwInfo = std::move(value); }
/**
* <p>Information about the accepter transit gateway.</p>
*/
inline TransitGatewayPeeringAttachment& WithAccepterTgwInfo(const PeeringTgwInfo& value) { SetAccepterTgwInfo(value); return *this;}
/**
* <p>Information about the accepter transit gateway.</p>
*/
inline TransitGatewayPeeringAttachment& WithAccepterTgwInfo(PeeringTgwInfo&& value) { SetAccepterTgwInfo(std::move(value)); return *this;}
/**
* <p>The status of the transit gateway peering attachment.</p>
*/
inline const PeeringAttachmentStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the transit gateway peering attachment.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the transit gateway peering attachment.</p>
*/
inline void SetStatus(const PeeringAttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the transit gateway peering attachment.</p>
*/
inline void SetStatus(PeeringAttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithStatus(const PeeringAttachmentStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithStatus(PeeringAttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The state of the transit gateway peering attachment.</p>
*/
inline const TransitGatewayAttachmentState& GetState() const{ return m_state; }
/**
* <p>The state of the transit gateway peering attachment.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the transit gateway peering attachment.</p>
*/
inline void SetState(const TransitGatewayAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the transit gateway peering attachment.</p>
*/
inline void SetState(TransitGatewayAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithState(const TransitGatewayAttachmentState& value) { SetState(value); return *this;}
/**
* <p>The state of the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithState(TransitGatewayAttachmentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The time the transit gateway peering attachment was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time the transit gateway peering attachment was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time the transit gateway peering attachment was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time the transit gateway peering attachment was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time the transit gateway peering attachment was created.</p>
*/
inline TransitGatewayPeeringAttachment& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time the transit gateway peering attachment was created.</p>
*/
inline TransitGatewayPeeringAttachment& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The tags for the transit gateway peering attachment.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the transit gateway peering attachment.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags for the transit gateway peering attachment.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags for the transit gateway peering attachment.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags for the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the transit gateway peering attachment.</p>
*/
inline TransitGatewayPeeringAttachment& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags for the transit gateway peering attachment.</p>
*/
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;
PeeringTgwInfo m_requesterTgwInfo;
bool m_requesterTgwInfoHasBeenSet;
PeeringTgwInfo m_accepterTgwInfo;
bool m_accepterTgwInfoHasBeenSet;
PeeringAttachmentStatus m_status;
bool m_statusHasBeenSet;
TransitGatewayAttachmentState m_state;
bool m_stateHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws