/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// Contains information about the health checks that are conducted on the load balancer. /// public partial class AwsElbLoadBalancerHealthCheck { private int? _healthyThreshold; private int? _interval; private string _target; private int? _timeout; private int? _unhealthyThreshold; /// /// Gets and sets the property HealthyThreshold. /// /// The number of consecutive health check successes required before the instance is moved /// to the Healthy state. /// /// public int HealthyThreshold { get { return this._healthyThreshold.GetValueOrDefault(); } set { this._healthyThreshold = value; } } // Check to see if HealthyThreshold property is set internal bool IsSetHealthyThreshold() { return this._healthyThreshold.HasValue; } /// /// Gets and sets the property Interval. /// /// The approximate interval, in seconds, between health checks of an individual instance. /// /// public int Interval { get { return this._interval.GetValueOrDefault(); } set { this._interval = value; } } // Check to see if Interval property is set internal bool IsSetInterval() { return this._interval.HasValue; } /// /// Gets and sets the property Target. /// /// The instance that is being checked. The target specifies the protocol and port. The /// available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid ports is 1 through /// 65535. /// /// /// /// For the HTTP and HTTPS protocols, the target also specifies the ping path. /// /// /// /// For the TCP protocol, the target is specified as TCP: <port> . /// /// /// /// For the SSL protocol, the target is specified as SSL.<port> . /// /// /// /// For the HTTP and HTTPS protocols, the target is specified as <protocol>:<port>/<path /// to ping> . /// /// public string Target { get { return this._target; } set { this._target = value; } } // Check to see if Target property is set internal bool IsSetTarget() { return this._target != null; } /// /// Gets and sets the property Timeout. /// /// The amount of time, in seconds, during which no response means a failed health check. /// /// public int Timeout { get { return this._timeout.GetValueOrDefault(); } set { this._timeout = value; } } // Check to see if Timeout property is set internal bool IsSetTimeout() { return this._timeout.HasValue; } /// /// Gets and sets the property UnhealthyThreshold. /// /// The number of consecutive health check failures that must occur before the instance /// is moved to the Unhealthy state. /// /// public int UnhealthyThreshold { get { return this._unhealthyThreshold.GetValueOrDefault(); } set { this._unhealthyThreshold = value; } } // Check to see if UnhealthyThreshold property is set internal bool IsSetUnhealthyThreshold() { return this._unhealthyThreshold.HasValue; } } }