/* * 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 globalaccelerator-2018-08-08.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.GlobalAccelerator.Model { /// /// Container for the parameters to the UpdateEndpointGroup operation. /// Update an endpoint group. A resource must be valid and active when you add it as an /// endpoint. /// public partial class UpdateEndpointGroupRequest : AmazonGlobalAcceleratorRequest { private List _endpointConfigurations = new List(); private string _endpointGroupArn; private int? _healthCheckIntervalSeconds; private string _healthCheckPath; private int? _healthCheckPort; private HealthCheckProtocol _healthCheckProtocol; private List _portOverrides = new List(); private int? _thresholdCount; private float? _trafficDialPercentage; /// /// Gets and sets the property EndpointConfigurations. /// /// The list of endpoint objects. A resource must be valid and active when you add it /// as an endpoint. /// /// [AWSProperty(Min=0, Max=10)] public List EndpointConfigurations { get { return this._endpointConfigurations; } set { this._endpointConfigurations = value; } } // Check to see if EndpointConfigurations property is set internal bool IsSetEndpointConfigurations() { return this._endpointConfigurations != null && this._endpointConfigurations.Count > 0; } /// /// Gets and sets the property EndpointGroupArn. /// /// The Amazon Resource Name (ARN) of the endpoint group. /// /// [AWSProperty(Required=true, Max=255)] public string EndpointGroupArn { get { return this._endpointGroupArn; } set { this._endpointGroupArn = value; } } // Check to see if EndpointGroupArn property is set internal bool IsSetEndpointGroupArn() { return this._endpointGroupArn != null; } /// /// Gets and sets the property HealthCheckIntervalSeconds. /// /// The time—10 seconds or 30 seconds—between each health check for an endpoint. The default /// value is 30. /// /// [AWSProperty(Min=10, Max=30)] public int HealthCheckIntervalSeconds { get { return this._healthCheckIntervalSeconds.GetValueOrDefault(); } set { this._healthCheckIntervalSeconds = value; } } // Check to see if HealthCheckIntervalSeconds property is set internal bool IsSetHealthCheckIntervalSeconds() { return this._healthCheckIntervalSeconds.HasValue; } /// /// Gets and sets the property HealthCheckPath. /// /// If the protocol is HTTP/S, then this specifies the path that is the destination for /// health check targets. The default value is slash (/). /// /// [AWSProperty(Max=255)] 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 HealthCheckPort. /// /// The port that Global Accelerator uses to check the health of endpoints that are part /// of this endpoint group. The default port is the listener port that this endpoint group /// is associated with. If the listener port is a list of ports, Global Accelerator uses /// the first port in the list. /// /// [AWSProperty(Min=1, Max=65535)] public int HealthCheckPort { get { return this._healthCheckPort.GetValueOrDefault(); } set { this._healthCheckPort = value; } } // Check to see if HealthCheckPort property is set internal bool IsSetHealthCheckPort() { return this._healthCheckPort.HasValue; } /// /// Gets and sets the property HealthCheckProtocol. /// /// The protocol that Global Accelerator uses to check the health of endpoints that are /// part of this endpoint group. The default value is TCP. /// /// public HealthCheckProtocol HealthCheckProtocol { get { return this._healthCheckProtocol; } set { this._healthCheckProtocol = value; } } // Check to see if HealthCheckProtocol property is set internal bool IsSetHealthCheckProtocol() { return this._healthCheckProtocol != null; } /// /// Gets and sets the property PortOverrides. /// /// Override specific listener ports used to route traffic to endpoints that are part /// of this endpoint group. For example, you can create a port override in which the listener /// receives user traffic on ports 80 and 443, but your accelerator routes that traffic /// to ports 1080 and 1443, respectively, on the endpoints. /// /// /// /// For more information, see /// Overriding listener ports in the Global Accelerator Developer Guide. /// /// [AWSProperty(Min=0, Max=10)] public List PortOverrides { get { return this._portOverrides; } set { this._portOverrides = value; } } // Check to see if PortOverrides property is set internal bool IsSetPortOverrides() { return this._portOverrides != null && this._portOverrides.Count > 0; } /// /// Gets and sets the property ThresholdCount. /// /// The number of consecutive health checks required to set the state of a healthy endpoint /// to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3. /// /// [AWSProperty(Min=1, Max=10)] public int ThresholdCount { get { return this._thresholdCount.GetValueOrDefault(); } set { this._thresholdCount = value; } } // Check to see if ThresholdCount property is set internal bool IsSetThresholdCount() { return this._thresholdCount.HasValue; } /// /// Gets and sets the property TrafficDialPercentage. /// /// The percentage of traffic to send to an Amazon Web Services Region. Additional traffic /// is distributed to other endpoint groups for this listener. /// /// /// /// Use this action to increase (dial up) or decrease (dial down) traffic to a specific /// Region. The percentage is applied to the traffic that would otherwise have been routed /// to the Region based on optimal routing. /// /// /// /// The default value is 100. /// /// [AWSProperty(Min=0, Max=100)] public float TrafficDialPercentage { get { return this._trafficDialPercentage.GetValueOrDefault(); } set { this._trafficDialPercentage = value; } } // Check to see if TrafficDialPercentage property is set internal bool IsSetTrafficDialPercentage() { return this._trafficDialPercentage.HasValue; } } }