/*
* 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 lightsail-2016-11-28.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.Lightsail.Model
{
///
/// Describes a load balancer.
///
public partial class LoadBalancer
{
private string _arn;
private Dictionary _configurationOptions = new Dictionary();
private DateTime? _createdAt;
private string _dnsName;
private string _healthCheckPath;
private bool? _httpsRedirectionEnabled;
private List _instanceHealthSummary = new List();
private int? _instancePort;
private IpAddressType _ipAddressType;
private ResourceLocation _location;
private string _name;
private LoadBalancerProtocol _protocol;
private List _publicPorts = new List();
private ResourceType _resourceType;
private LoadBalancerState _state;
private string _supportCode;
private List _tags = new List();
private List _tlsCertificateSummaries = new List();
private string _tlsPolicyName;
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the load balancer.
///
///
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property ConfigurationOptions.
///
/// A string to string map of the configuration options for your load balancer. Valid
/// values are listed below.
///
///
public Dictionary ConfigurationOptions
{
get { return this._configurationOptions; }
set { this._configurationOptions = value; }
}
// Check to see if ConfigurationOptions property is set
internal bool IsSetConfigurationOptions()
{
return this._configurationOptions != null && this._configurationOptions.Count > 0;
}
///
/// Gets and sets the property CreatedAt.
///
/// The date when your load balancer was created.
///
///
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
///
/// Gets and sets the property DnsName.
///
/// The DNS name of your Lightsail load balancer.
///
///
public string DnsName
{
get { return this._dnsName; }
set { this._dnsName = value; }
}
// Check to see if DnsName property is set
internal bool IsSetDnsName()
{
return this._dnsName != null;
}
///
/// Gets and sets the property HealthCheckPath.
///
/// The path you specified to perform your health checks. If no path is specified, the
/// load balancer tries to make a request to the default (root) page.
///
///
public string HealthCheckPath
{
get { return this._healthCheckPath; }
set { this._healthCheckPath = value; }
}
// Check to see if HealthCheckPath property is set
internal bool IsSetHealthCheckPath()
{
return this._healthCheckPath != null;
}
///
/// Gets and sets the property HttpsRedirectionEnabled.
///
/// A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.
///
///
public bool HttpsRedirectionEnabled
{
get { return this._httpsRedirectionEnabled.GetValueOrDefault(); }
set { this._httpsRedirectionEnabled = value; }
}
// Check to see if HttpsRedirectionEnabled property is set
internal bool IsSetHttpsRedirectionEnabled()
{
return this._httpsRedirectionEnabled.HasValue;
}
///
/// Gets and sets the property InstanceHealthSummary.
///
/// An array of InstanceHealthSummary objects describing the health of the load balancer.
///
///
public List InstanceHealthSummary
{
get { return this._instanceHealthSummary; }
set { this._instanceHealthSummary = value; }
}
// Check to see if InstanceHealthSummary property is set
internal bool IsSetInstanceHealthSummary()
{
return this._instanceHealthSummary != null && this._instanceHealthSummary.Count > 0;
}
///
/// Gets and sets the property InstancePort.
///
/// The port where the load balancer will direct traffic to your Lightsail instances.
/// For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.
///
///
public int InstancePort
{
get { return this._instancePort.GetValueOrDefault(); }
set { this._instancePort = value; }
}
// Check to see if InstancePort property is set
internal bool IsSetInstancePort()
{
return this._instancePort.HasValue;
}
///
/// Gets and sets the property IpAddressType.
///
/// The IP address type of the load balancer.
///
///
///
/// The possible values are ipv4
for IPv4 only, and dualstack
/// for IPv4 and IPv6.
///
///
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 Location.
///
/// The AWS Region where your load balancer was created (e.g., us-east-2a
).
/// Lightsail automatically creates your load balancer across Availability Zones.
///
///
public ResourceLocation Location
{
get { return this._location; }
set { this._location = value; }
}
// Check to see if Location property is set
internal bool IsSetLocation()
{
return this._location != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the load balancer (e.g., my-load-balancer
).
///
///
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 Protocol.
///
/// The protocol you have enabled for your load balancer. Valid values are below.
///
///
///
/// You can't just have HTTP_HTTPS
, but you can have just HTTP
.
///
///
public LoadBalancerProtocol Protocol
{
get { return this._protocol; }
set { this._protocol = value; }
}
// Check to see if Protocol property is set
internal bool IsSetProtocol()
{
return this._protocol != null;
}
///
/// Gets and sets the property PublicPorts.
///
/// An array of public port settings for your load balancer. For HTTP, use port 80. For
/// HTTPS, use port 443.
///
///
public List PublicPorts
{
get { return this._publicPorts; }
set { this._publicPorts = value; }
}
// Check to see if PublicPorts property is set
internal bool IsSetPublicPorts()
{
return this._publicPorts != null && this._publicPorts.Count > 0;
}
///
/// Gets and sets the property ResourceType.
///
/// The resource type (e.g., LoadBalancer
.
///
///
public ResourceType ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
///
/// Gets and sets the property State.
///
/// The status of your load balancer. Valid values are below.
///
///
public LoadBalancerState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property SupportCode.
///
/// The support code. Include this code in your email to support when you have questions
/// about your Lightsail load balancer. This code enables our support team to look up
/// your Lightsail information more easily.
///
///
public string SupportCode
{
get { return this._supportCode; }
set { this._supportCode = value; }
}
// Check to see if SupportCode property is set
internal bool IsSetSupportCode()
{
return this._supportCode != null;
}
///
/// Gets and sets the property Tags.
///
/// The tag keys and optional values for the resource. For more information about tags
/// in Lightsail, see the Amazon
/// Lightsail Developer Guide.
///
///
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 TlsCertificateSummaries.
///
/// An array of LoadBalancerTlsCertificateSummary objects that provide additional information
/// about the SSL/TLS certificates. For example, if true
, the certificate
/// is attached to the load balancer.
///
///
public List TlsCertificateSummaries
{
get { return this._tlsCertificateSummaries; }
set { this._tlsCertificateSummaries = value; }
}
// Check to see if TlsCertificateSummaries property is set
internal bool IsSetTlsCertificateSummaries()
{
return this._tlsCertificateSummaries != null && this._tlsCertificateSummaries.Count > 0;
}
///
/// Gets and sets the property TlsPolicyName.
///
/// The name of the TLS security policy for the load balancer.
///
///
public string TlsPolicyName
{
get { return this._tlsPolicyName; }
set { this._tlsPolicyName = value; }
}
// Check to see if TlsPolicyName property is set
internal bool IsSetTlsPolicyName()
{
return this._tlsPolicyName != null;
}
}
}