/** * 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 an egress-only internet gateway.

See Also:

AWS * API Reference

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

Information about the attachment of the egress-only internet gateway.

*/ inline const Aws::Vector& GetAttachments() const{ return m_attachments; } /** *

Information about the attachment of the egress-only internet gateway.

*/ inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; } /** *

Information about the attachment of the egress-only internet gateway.

*/ inline void SetAttachments(const Aws::Vector& value) { m_attachmentsHasBeenSet = true; m_attachments = value; } /** *

Information about the attachment of the egress-only internet gateway.

*/ inline void SetAttachments(Aws::Vector&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); } /** *

Information about the attachment of the egress-only internet gateway.

*/ inline EgressOnlyInternetGateway& WithAttachments(const Aws::Vector& value) { SetAttachments(value); return *this;} /** *

Information about the attachment of the egress-only internet gateway.

*/ inline EgressOnlyInternetGateway& WithAttachments(Aws::Vector&& value) { SetAttachments(std::move(value)); return *this;} /** *

Information about the attachment of the egress-only internet gateway.

*/ inline EgressOnlyInternetGateway& AddAttachments(const InternetGatewayAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; } /** *

Information about the attachment of the egress-only internet gateway.

*/ inline EgressOnlyInternetGateway& AddAttachments(InternetGatewayAttachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; } /** *

The ID of the egress-only internet gateway.

*/ inline const Aws::String& GetEgressOnlyInternetGatewayId() const{ return m_egressOnlyInternetGatewayId; } /** *

The ID of the egress-only internet gateway.

*/ inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; } /** *

The ID of the egress-only internet gateway.

*/ inline void SetEgressOnlyInternetGatewayId(const Aws::String& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = value; } /** *

The ID of the egress-only internet gateway.

*/ inline void SetEgressOnlyInternetGatewayId(Aws::String&& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = std::move(value); } /** *

The ID of the egress-only internet gateway.

*/ inline void SetEgressOnlyInternetGatewayId(const char* value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId.assign(value); } /** *

The ID of the egress-only internet gateway.

*/ inline EgressOnlyInternetGateway& WithEgressOnlyInternetGatewayId(const Aws::String& value) { SetEgressOnlyInternetGatewayId(value); return *this;} /** *

The ID of the egress-only internet gateway.

*/ inline EgressOnlyInternetGateway& WithEgressOnlyInternetGatewayId(Aws::String&& value) { SetEgressOnlyInternetGatewayId(std::move(value)); return *this;} /** *

The ID of the egress-only internet gateway.

*/ inline EgressOnlyInternetGateway& WithEgressOnlyInternetGatewayId(const char* value) { SetEgressOnlyInternetGatewayId(value); return *this;} /** *

The tags assigned to the egress-only internet gateway.

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

The tags assigned to the egress-only internet gateway.

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

The tags assigned to the egress-only internet gateway.

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

The tags assigned to the egress-only internet gateway.

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

The tags assigned to the egress-only internet gateway.

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

The tags assigned to the egress-only internet gateway.

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

The tags assigned to the egress-only internet gateway.

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

The tags assigned to the egress-only internet gateway.

*/ inline EgressOnlyInternetGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::Vector m_attachments; bool m_attachmentsHasBeenSet = false; Aws::String m_egressOnlyInternetGatewayId; bool m_egressOnlyInternetGatewayIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws