/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the elasticloadbalancingv2-2015-12-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.ElasticLoadBalancingV2.Model
{
///
/// Container for the parameters to the CreateLoadBalancer operation.
/// Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
///
///
///
/// For more information, see the following:
///
///
///
/// This operation is idempotent, which means that it completes at most one time. If you
/// attempt to create multiple load balancers with the same settings, each call succeeds.
///
///
public partial class CreateLoadBalancerRequest : AmazonElasticLoadBalancingV2Request
{
private string _customerOwnedIpv4Pool;
private IpAddressType _ipAddressType;
private string _name;
private LoadBalancerSchemeEnum _scheme;
private List _securityGroups = new List();
private List _subnetMappings = new List();
private List _subnets = new List();
private List _tags = new List();
private LoadBalancerTypeEnum _type;
///
/// Gets and sets the property CustomerOwnedIpv4Pool.
///
/// [Application Load Balancers on Outposts] The ID of the customer-owned address pool
/// (CoIP pool).
///
///
[AWSProperty(Max=256)]
public string CustomerOwnedIpv4Pool
{
get { return this._customerOwnedIpv4Pool; }
set { this._customerOwnedIpv4Pool = value; }
}
// Check to see if CustomerOwnedIpv4Pool property is set
internal bool IsSetCustomerOwnedIpv4Pool()
{
return this._customerOwnedIpv4Pool != null;
}
///
/// Gets and sets the property IpAddressType.
///
/// The type of IP addresses used by the subnets for your load balancer. The possible
/// values are ipv4
(for IPv4 addresses) and dualstack
(for
/// IPv4 and IPv6 addresses).
///
///
public IpAddressType IpAddressType
{
get { return this._ipAddressType; }
set { this._ipAddressType = value; }
}
// Check to see if IpAddressType property is set
internal bool IsSetIpAddressType()
{
return this._ipAddressType != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the load balancer.
///
///
///
/// This name must be unique per region per account, can have a maximum of 32 characters,
/// must contain only alphanumeric characters or hyphens, must not begin or end with a
/// hyphen, and must not begin with "internal-".
///
///
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Scheme.
///
/// The nodes of an Internet-facing load balancer have public IP addresses. The DNS name
/// of an Internet-facing load balancer is publicly resolvable to the public IP addresses
/// of the nodes. Therefore, Internet-facing load balancers can route requests from clients
/// over the internet.
///
///
///
/// The nodes of an internal load balancer have only private IP addresses. The DNS name
/// of an internal load balancer is publicly resolvable to the private IP addresses of
/// the nodes. Therefore, internal load balancers can route requests only from clients
/// with access to the VPC for the load balancer.
///
///
///
/// The default is an Internet-facing load balancer.
///
///
///
/// You cannot specify a scheme for a Gateway Load Balancer.
///
///
public LoadBalancerSchemeEnum Scheme
{
get { return this._scheme; }
set { this._scheme = value; }
}
// Check to see if Scheme property is set
internal bool IsSetScheme()
{
return this._scheme != null;
}
///
/// Gets and sets the property SecurityGroups.
///
/// [Application Load Balancers] The IDs of the security groups for the load balancer.
///
///
public List SecurityGroups
{
get { return this._securityGroups; }
set { this._securityGroups = value; }
}
// Check to see if SecurityGroups property is set
internal bool IsSetSecurityGroups()
{
return this._securityGroups != null && this._securityGroups.Count > 0;
}
///
/// Gets and sets the property SubnetMappings.
///
/// The IDs of the public subnets. You can specify only one subnet per Availability Zone.
/// You must specify either subnets or subnet mappings, but not both.
///
///
///
/// [Application Load Balancers] You must specify subnets from at least two Availability
/// Zones. You cannot specify Elastic IP addresses for your subnets.
///
///
///
/// [Application Load Balancers on Outposts] You must specify one Outpost subnet.
///
///
///
/// [Application Load Balancers on Local Zones] You can specify subnets from one or more
/// Local Zones.
///
///
///
/// [Network Load Balancers] You can specify subnets from one or more Availability Zones.
/// You can specify one Elastic IP address per subnet if you need static IP addresses
/// for your internet-facing load balancer. For internal load balancers, you can specify
/// one private IP address per subnet from the IPv4 range of the subnet. For internet-facing
/// load balancer, you can specify one IPv6 address per subnet.
///
///
///
/// [Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
/// You cannot specify Elastic IP addresses for your subnets.
///
///
public List SubnetMappings
{
get { return this._subnetMappings; }
set { this._subnetMappings = value; }
}
// Check to see if SubnetMappings property is set
internal bool IsSetSubnetMappings()
{
return this._subnetMappings != null && this._subnetMappings.Count > 0;
}
///
/// Gets and sets the property Subnets.
///
/// The IDs of the public subnets. You can specify only one subnet per Availability Zone.
/// You must specify either subnets or subnet mappings, but not both. To specify an Elastic
/// IP address, specify subnet mappings instead of subnets.
///
///
///
/// [Application Load Balancers] You must specify subnets from at least two Availability
/// Zones.
///
///
///
/// [Application Load Balancers on Outposts] You must specify one Outpost subnet.
///
///
///
/// [Application Load Balancers on Local Zones] You can specify subnets from one or more
/// Local Zones.
///
///
///
/// [Network Load Balancers] You can specify subnets from one or more Availability Zones.
///
///
///
/// [Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
///
///
public List Subnets
{
get { return this._subnets; }
set { this._subnets = value; }
}
// Check to see if Subnets property is set
internal bool IsSetSubnets()
{
return this._subnets != null && this._subnets.Count > 0;
}
///
/// Gets and sets the property Tags.
///
/// The tags to assign to the load balancer.
///
///
[AWSProperty(Min=1)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property Type.
///
/// The type of load balancer. The default is application
.
///
///
public LoadBalancerTypeEnum Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}