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

See Also:

AWS * API Reference

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

Any VPCs attached to the internet gateway.

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

Any VPCs attached to the internet gateway.

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

Any VPCs attached to the internet gateway.

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

Any VPCs attached to the internet gateway.

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

Any VPCs attached to the internet gateway.

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

Any VPCs attached to the internet gateway.

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

Any VPCs attached to the internet gateway.

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

Any VPCs attached to the internet gateway.

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

The ID of the internet gateway.

*/ inline const Aws::String& GetInternetGatewayId() const{ return m_internetGatewayId; } /** *

The ID of the internet gateway.

*/ inline bool InternetGatewayIdHasBeenSet() const { return m_internetGatewayIdHasBeenSet; } /** *

The ID of the internet gateway.

*/ inline void SetInternetGatewayId(const Aws::String& value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId = value; } /** *

The ID of the internet gateway.

*/ inline void SetInternetGatewayId(Aws::String&& value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId = std::move(value); } /** *

The ID of the internet gateway.

*/ inline void SetInternetGatewayId(const char* value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId.assign(value); } /** *

The ID of the internet gateway.

*/ inline InternetGateway& WithInternetGatewayId(const Aws::String& value) { SetInternetGatewayId(value); return *this;} /** *

The ID of the internet gateway.

*/ inline InternetGateway& WithInternetGatewayId(Aws::String&& value) { SetInternetGatewayId(std::move(value)); return *this;} /** *

The ID of the internet gateway.

*/ inline InternetGateway& WithInternetGatewayId(const char* value) { SetInternetGatewayId(value); return *this;} /** *

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

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

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

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

The ID of the Amazon Web Services account that owns the internet 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 internet 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 internet 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 internet gateway.

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

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

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

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

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

Any tags assigned to the internet gateway.

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

Any tags assigned to the internet gateway.

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

Any tags assigned to the internet gateway.

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

Any tags assigned to the internet gateway.

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

Any tags assigned to the internet gateway.

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

Any tags assigned to the internet gateway.

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

Any tags assigned to the internet gateway.

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

Any tags assigned to the internet gateway.

*/ inline InternetGateway& 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_internetGatewayId; bool m_internetGatewayIdHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws