195 lines
6.4 KiB
C
195 lines
6.4 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Xml
|
|||
|
|
{
|
|||
|
|
class XmlNode;
|
|||
|
|
} // namespace Xml
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace ElasticLoadBalancingv2
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about a subnet mapping.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SubnetMapping">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICLOADBALANCINGV2_API SubnetMapping
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
SubnetMapping();
|
|||
|
|
SubnetMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
SubnetMapping& 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 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 SubnetMapping& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline SubnetMapping& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline SubnetMapping& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The allocation ID of the Elastic IP address for an
|
|||
|
|
* internet-facing load balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The allocation ID of the Elastic IP address for an
|
|||
|
|
* internet-facing load balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The allocation ID of the Elastic IP address for an
|
|||
|
|
* internet-facing load balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The allocation ID of the Elastic IP address for an
|
|||
|
|
* internet-facing load balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The allocation ID of the Elastic IP address for an
|
|||
|
|
* internet-facing load balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The allocation ID of the Elastic IP address for an
|
|||
|
|
* internet-facing load balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline SubnetMapping& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The allocation ID of the Elastic IP address for an
|
|||
|
|
* internet-facing load balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline SubnetMapping& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The allocation ID of the Elastic IP address for an
|
|||
|
|
* internet-facing load balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline SubnetMapping& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The private IPv4 address for an internal load
|
|||
|
|
* balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetPrivateIPv4Address() const{ return m_privateIPv4Address; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The private IPv4 address for an internal load
|
|||
|
|
* balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PrivateIPv4AddressHasBeenSet() const { return m_privateIPv4AddressHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The private IPv4 address for an internal load
|
|||
|
|
* balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPrivateIPv4Address(const Aws::String& value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The private IPv4 address for an internal load
|
|||
|
|
* balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPrivateIPv4Address(Aws::String&& value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The private IPv4 address for an internal load
|
|||
|
|
* balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPrivateIPv4Address(const char* value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The private IPv4 address for an internal load
|
|||
|
|
* balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline SubnetMapping& WithPrivateIPv4Address(const Aws::String& value) { SetPrivateIPv4Address(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The private IPv4 address for an internal load
|
|||
|
|
* balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline SubnetMapping& WithPrivateIPv4Address(Aws::String&& value) { SetPrivateIPv4Address(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Network Load Balancers] The private IPv4 address for an internal load
|
|||
|
|
* balancer.</p>
|
|||
|
|
*/
|
|||
|
|
inline SubnetMapping& WithPrivateIPv4Address(const char* value) { SetPrivateIPv4Address(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_subnetId;
|
|||
|
|
bool m_subnetIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_allocationId;
|
|||
|
|
bool m_allocationIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_privateIPv4Address;
|
|||
|
|
bool m_privateIPv4AddressHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElasticLoadBalancingv2
|
|||
|
|
} // namespace Aws
|