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/InternetGatewayAttachment.h

139 lines
4.3 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/ec2/model/AttachmentStatus.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace EC2
{
namespace Model
{
/**
* <p>Describes the attachment of a VPC to an internet gateway or an egress-only
* internet gateway.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InternetGatewayAttachment">AWS
* API Reference</a></p>
*/
class AWS_EC2_API InternetGatewayAttachment
{
public:
InternetGatewayAttachment();
InternetGatewayAttachment(const Aws::Utils::Xml::XmlNode& xmlNode);
InternetGatewayAttachment& 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 current state of the attachment. For an internet gateway, the state is
* <code>available</code> when attached to a VPC; otherwise, this value is not
* returned.</p>
*/
inline const AttachmentStatus& GetState() const{ return m_state; }
/**
* <p>The current state of the attachment. For an internet gateway, the state is
* <code>available</code> when attached to a VPC; otherwise, this value is not
* returned.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The current state of the attachment. For an internet gateway, the state is
* <code>available</code> when attached to a VPC; otherwise, this value is not
* returned.</p>
*/
inline void SetState(const AttachmentStatus& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The current state of the attachment. For an internet gateway, the state is
* <code>available</code> when attached to a VPC; otherwise, this value is not
* returned.</p>
*/
inline void SetState(AttachmentStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The current state of the attachment. For an internet gateway, the state is
* <code>available</code> when attached to a VPC; otherwise, this value is not
* returned.</p>
*/
inline InternetGatewayAttachment& WithState(const AttachmentStatus& value) { SetState(value); return *this;}
/**
* <p>The current state of the attachment. For an internet gateway, the state is
* <code>available</code> when attached to a VPC; otherwise, this value is not
* returned.</p>
*/
inline InternetGatewayAttachment& WithState(AttachmentStatus&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The ID of the VPC.</p>
*/
inline const Aws::String& GetVpcId() const{ return m_vpcId; }
/**
* <p>The ID of the VPC.</p>
*/
inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
/**
* <p>The ID of the VPC.</p>
*/
inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
/**
* <p>The ID of the VPC.</p>
*/
inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
/**
* <p>The ID of the VPC.</p>
*/
inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
/**
* <p>The ID of the VPC.</p>
*/
inline InternetGatewayAttachment& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
/**
* <p>The ID of the VPC.</p>
*/
inline InternetGatewayAttachment& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
/**
* <p>The ID of the VPC.</p>
*/
inline InternetGatewayAttachment& WithVpcId(const char* value) { SetVpcId(value); return *this;}
private:
AttachmentStatus m_state;
bool m_stateHasBeenSet;
Aws::String m_vpcId;
bool m_vpcIdHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws