182 lines
6.6 KiB
C++
182 lines
6.6 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/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/ec2/model/InternetGatewayAttachment.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 an egress-only internet gateway.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EgressOnlyInternetGateway">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_EC2_API EgressOnlyInternetGateway
|
|
{
|
|
public:
|
|
EgressOnlyInternetGateway();
|
|
EgressOnlyInternetGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
EgressOnlyInternetGateway& 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>Information about the attachment of the egress-only internet gateway.</p>
|
|
*/
|
|
inline const Aws::Vector<InternetGatewayAttachment>& GetAttachments() const{ return m_attachments; }
|
|
|
|
/**
|
|
* <p>Information about the attachment of the egress-only internet gateway.</p>
|
|
*/
|
|
inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Information about the attachment of the egress-only internet gateway.</p>
|
|
*/
|
|
inline void SetAttachments(const Aws::Vector<InternetGatewayAttachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
|
|
|
|
/**
|
|
* <p>Information about the attachment of the egress-only internet gateway.</p>
|
|
*/
|
|
inline void SetAttachments(Aws::Vector<InternetGatewayAttachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the attachment of the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& WithAttachments(const Aws::Vector<InternetGatewayAttachment>& value) { SetAttachments(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the attachment of the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& WithAttachments(Aws::Vector<InternetGatewayAttachment>&& value) { SetAttachments(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the attachment of the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& AddAttachments(const InternetGatewayAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Information about the attachment of the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& AddAttachments(InternetGatewayAttachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The ID of the egress-only internet gateway.</p>
|
|
*/
|
|
inline const Aws::String& GetEgressOnlyInternetGatewayId() const{ return m_egressOnlyInternetGatewayId; }
|
|
|
|
/**
|
|
* <p>The ID of the egress-only internet gateway.</p>
|
|
*/
|
|
inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the egress-only internet gateway.</p>
|
|
*/
|
|
inline void SetEgressOnlyInternetGatewayId(const Aws::String& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the egress-only internet gateway.</p>
|
|
*/
|
|
inline void SetEgressOnlyInternetGatewayId(Aws::String&& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the egress-only internet gateway.</p>
|
|
*/
|
|
inline void SetEgressOnlyInternetGatewayId(const char* value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& WithEgressOnlyInternetGatewayId(const Aws::String& value) { SetEgressOnlyInternetGatewayId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& WithEgressOnlyInternetGatewayId(Aws::String&& value) { SetEgressOnlyInternetGatewayId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& WithEgressOnlyInternetGatewayId(const char* value) { SetEgressOnlyInternetGatewayId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The tags assigned to the egress-only internet gateway.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>The tags assigned to the egress-only internet gateway.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The tags assigned to the egress-only internet gateway.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>The tags assigned to the egress-only internet gateway.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>The tags assigned to the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>The tags assigned to the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The tags assigned to the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The tags assigned to the egress-only internet gateway.</p>
|
|
*/
|
|
inline EgressOnlyInternetGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::Vector<InternetGatewayAttachment> m_attachments;
|
|
bool m_attachmentsHasBeenSet;
|
|
|
|
Aws::String m_egressOnlyInternetGatewayId;
|
|
bool m_egressOnlyInternetGatewayIdHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EC2
|
|
} // namespace Aws
|