709 lines
24 KiB
C
709 lines
24 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/SubnetState.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/ec2/model/SubnetIpv6CidrBlockAssociation.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 a subnet.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Subnet">AWS API
|
|||
|
|
* Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_EC2_API Subnet
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
Subnet();
|
|||
|
|
Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
Subnet& 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 Availability Zone of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Availability Zone of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Availability Zone of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Availability Zone of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Availability Zone of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Availability Zone of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Availability Zone of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Availability Zone of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The AZ ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The AZ ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The AZ ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The AZ ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The AZ ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The AZ ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The AZ ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The AZ ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The number of unused private IPv4 addresses in the subnet. The IPv4 addresses
|
|||
|
|
* for any stopped instances are considered unavailable.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetAvailableIpAddressCount() const{ return m_availableIpAddressCount; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The number of unused private IPv4 addresses in the subnet. The IPv4 addresses
|
|||
|
|
* for any stopped instances are considered unavailable.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AvailableIpAddressCountHasBeenSet() const { return m_availableIpAddressCountHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The number of unused private IPv4 addresses in the subnet. The IPv4 addresses
|
|||
|
|
* for any stopped instances are considered unavailable.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailableIpAddressCount(int value) { m_availableIpAddressCountHasBeenSet = true; m_availableIpAddressCount = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The number of unused private IPv4 addresses in the subnet. The IPv4 addresses
|
|||
|
|
* for any stopped instances are considered unavailable.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithAvailableIpAddressCount(int value) { SetAvailableIpAddressCount(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 CIDR block assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 CIDR block assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 CIDR block assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 CIDR block assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 CIDR block assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 CIDR block assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 CIDR block assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 CIDR block assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether this is the default subnet for the Availability Zone.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetDefaultForAz() const{ return m_defaultForAz; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether this is the default subnet for the Availability Zone.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DefaultForAzHasBeenSet() const { return m_defaultForAzHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether this is the default subnet for the Availability Zone.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDefaultForAz(bool value) { m_defaultForAzHasBeenSet = true; m_defaultForAz = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether this is the default subnet for the Availability Zone.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithDefaultForAz(bool value) { SetDefaultForAz(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether instances launched in this subnet receive a public IPv4
|
|||
|
|
* address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetMapPublicIpOnLaunch() const{ return m_mapPublicIpOnLaunch; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether instances launched in this subnet receive a public IPv4
|
|||
|
|
* address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether instances launched in this subnet receive a public IPv4
|
|||
|
|
* address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMapPublicIpOnLaunch(bool value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether instances launched in this subnet receive a public IPv4
|
|||
|
|
* address.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithMapPublicIpOnLaunch(bool value) { SetMapPublicIpOnLaunch(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether a network interface created in this subnet (including a
|
|||
|
|
* network interface created by <a>RunInstances</a>) receives a customer-owned IPv4
|
|||
|
|
* address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetMapCustomerOwnedIpOnLaunch() const{ return m_mapCustomerOwnedIpOnLaunch; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether a network interface created in this subnet (including a
|
|||
|
|
* network interface created by <a>RunInstances</a>) receives a customer-owned IPv4
|
|||
|
|
* address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool MapCustomerOwnedIpOnLaunchHasBeenSet() const { return m_mapCustomerOwnedIpOnLaunchHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether a network interface created in this subnet (including a
|
|||
|
|
* network interface created by <a>RunInstances</a>) receives a customer-owned IPv4
|
|||
|
|
* address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMapCustomerOwnedIpOnLaunch(bool value) { m_mapCustomerOwnedIpOnLaunchHasBeenSet = true; m_mapCustomerOwnedIpOnLaunch = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether a network interface created in this subnet (including a
|
|||
|
|
* network interface created by <a>RunInstances</a>) receives a customer-owned IPv4
|
|||
|
|
* address.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithMapCustomerOwnedIpOnLaunch(bool value) { SetMapCustomerOwnedIpOnLaunch(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The customer-owned IPv4 address pool associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The customer-owned IPv4 address pool associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The customer-owned IPv4 address pool associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The customer-owned IPv4 address pool associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The customer-owned IPv4 address pool associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The customer-owned IPv4 address pool associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The customer-owned IPv4 address pool associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The customer-owned IPv4 address pool associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const SubnetState& GetState() const{ return m_state; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetState(const SubnetState& value) { m_stateHasBeenSet = true; m_state = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetState(SubnetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithState(const SubnetState& value) { SetState(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithState(SubnetState&& value) { SetState(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the VPC the subnet is in.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetVpcId() const{ return m_vpcId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the VPC the subnet is in.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the VPC the subnet is in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the VPC the subnet is in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the VPC the subnet is in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the VPC the subnet is in.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the VPC the subnet is in.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the VPC the subnet is in.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithVpcId(const char* value) { SetVpcId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether a network interface created in this subnet (including a
|
|||
|
|
* network interface created by <a>RunInstances</a>) receives an IPv6 address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetAssignIpv6AddressOnCreation() const{ return m_assignIpv6AddressOnCreation; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether a network interface created in this subnet (including a
|
|||
|
|
* network interface created by <a>RunInstances</a>) receives an IPv6 address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AssignIpv6AddressOnCreationHasBeenSet() const { return m_assignIpv6AddressOnCreationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether a network interface created in this subnet (including a
|
|||
|
|
* network interface created by <a>RunInstances</a>) receives an IPv6 address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAssignIpv6AddressOnCreation(bool value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether a network interface created in this subnet (including a
|
|||
|
|
* network interface created by <a>RunInstances</a>) receives an IPv6 address.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithAssignIpv6AddressOnCreation(bool value) { SetAssignIpv6AddressOnCreation(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<SubnetIpv6CidrBlockAssociation>& GetIpv6CidrBlockAssociationSet() const{ return m_ipv6CidrBlockAssociationSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool Ipv6CidrBlockAssociationSetHasBeenSet() const { return m_ipv6CidrBlockAssociationSetHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpv6CidrBlockAssociationSet(const Aws::Vector<SubnetIpv6CidrBlockAssociation>& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpv6CidrBlockAssociationSet(Aws::Vector<SubnetIpv6CidrBlockAssociation>&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithIpv6CidrBlockAssociationSet(const Aws::Vector<SubnetIpv6CidrBlockAssociation>& value) { SetIpv6CidrBlockAssociationSet(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithIpv6CidrBlockAssociationSet(Aws::Vector<SubnetIpv6CidrBlockAssociation>&& value) { SetIpv6CidrBlockAssociationSet(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& AddIpv6CidrBlockAssociationSet(const SubnetIpv6CidrBlockAssociation& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& AddIpv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Any tags assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Any tags assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Any tags assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Any tags assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Any tags assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Any tags assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Any tags assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Any tags assigned to the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the Outpost.</p>
|
|||
|
|
*/
|
|||
|
|
inline Subnet& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_availabilityZone;
|
|||
|
|
bool m_availabilityZoneHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_availabilityZoneId;
|
|||
|
|
bool m_availabilityZoneIdHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_availableIpAddressCount;
|
|||
|
|
bool m_availableIpAddressCountHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_cidrBlock;
|
|||
|
|
bool m_cidrBlockHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_defaultForAz;
|
|||
|
|
bool m_defaultForAzHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_mapPublicIpOnLaunch;
|
|||
|
|
bool m_mapPublicIpOnLaunchHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_mapCustomerOwnedIpOnLaunch;
|
|||
|
|
bool m_mapCustomerOwnedIpOnLaunchHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_customerOwnedIpv4Pool;
|
|||
|
|
bool m_customerOwnedIpv4PoolHasBeenSet;
|
|||
|
|
|
|||
|
|
SubnetState m_state;
|
|||
|
|
bool m_stateHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_subnetId;
|
|||
|
|
bool m_subnetIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_vpcId;
|
|||
|
|
bool m_vpcIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_ownerId;
|
|||
|
|
bool m_ownerIdHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_assignIpv6AddressOnCreation;
|
|||
|
|
bool m_assignIpv6AddressOnCreationHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<SubnetIpv6CidrBlockAssociation> m_ipv6CidrBlockAssociationSet;
|
|||
|
|
bool m_ipv6CidrBlockAssociationSetHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Tag> m_tags;
|
|||
|
|
bool m_tagsHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_subnetArn;
|
|||
|
|
bool m_subnetArnHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_outpostArn;
|
|||
|
|
bool m_outpostArnHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace EC2
|
|||
|
|
} // namespace Aws
|