/*
 * 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 route53-2013-04-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.Route53.Model
{
    /// 
    /// A complex type that contains information about one health check that is associated
    /// with the current Amazon Web Services account.
    /// 
    public partial class HealthCheck
    {
        private string _id;
        private string _callerReference;
        private LinkedService _linkedService;
        private HealthCheckConfig _healthCheckConfig;
        private long? _healthCheckVersion;
        private CloudWatchAlarmConfiguration _cloudWatchAlarmConfiguration;
        /// 
        /// Gets and sets the property Id. 
        /// 
        /// The identifier that Amazon Route 53 assigned to the health check when you created
        /// it. When you add or update a resource record set, you use this value to specify which
        /// health check to use. The value can be up to 64 characters long. 
        /// 
        /// 
        [AWSProperty(Required=true, Max=64)]
        public string Id
        {
            get { return this._id; }
            set { this._id = value; }
        }
        // Check to see if Id property is set
        internal bool IsSetId()
        {
            return this._id != null;
        }
        /// 
        /// Gets and sets the property CallerReference. 
        /// 
        /// A unique string that you specified when you created the health check.
        /// 
        /// 
        [AWSProperty(Required=true, Min=1, Max=64)]
        public string CallerReference
        {
            get { return this._callerReference; }
            set { this._callerReference = value; }
        }
        // Check to see if CallerReference property is set
        internal bool IsSetCallerReference()
        {
            return this._callerReference != null;
        }
        /// 
        /// Gets and sets the property LinkedService. 
        /// 
        /// If the health check was created by another service, the service that created the health
        /// check. When a health check is created by another service, you can't edit or delete
        /// it using Amazon Route 53. 
        /// 
        /// 
        public LinkedService LinkedService
        {
            get { return this._linkedService; }
            set { this._linkedService = value; }
        }
        // Check to see if LinkedService property is set
        internal bool IsSetLinkedService()
        {
            return this._linkedService != null;
        }
        /// 
        /// Gets and sets the property HealthCheckConfig. 
        /// 
        /// A complex type that contains detailed information about one health check.
        /// 
        /// 
        [AWSProperty(Required=true)]
        public HealthCheckConfig HealthCheckConfig
        {
            get { return this._healthCheckConfig; }
            set { this._healthCheckConfig = value; }
        }
        // Check to see if HealthCheckConfig property is set
        internal bool IsSetHealthCheckConfig()
        {
            return this._healthCheckConfig != null;
        }
        /// 
        /// Gets and sets the property HealthCheckVersion. 
        /// 
        /// The version of the health check. You can optionally pass this value in a call to UpdateHealthCheck
        /// to prevent overwriting another change to the health check.
        /// 
        /// 
        [AWSProperty(Required=true, Min=1)]
        public long HealthCheckVersion
        {
            get { return this._healthCheckVersion.GetValueOrDefault(); }
            set { this._healthCheckVersion = value; }
        }
        // Check to see if HealthCheckVersion property is set
        internal bool IsSetHealthCheckVersion()
        {
            return this._healthCheckVersion.HasValue; 
        }
        /// 
        /// Gets and sets the property CloudWatchAlarmConfiguration. 
        /// 
        /// A complex type that contains information about the CloudWatch alarm that Amazon Route
        /// 53 is monitoring for this health check.
        /// 
        /// 
        public CloudWatchAlarmConfiguration CloudWatchAlarmConfiguration
        {
            get { return this._cloudWatchAlarmConfiguration; }
            set { this._cloudWatchAlarmConfiguration = value; }
        }
        // Check to see if CloudWatchAlarmConfiguration property is set
        internal bool IsSetCloudWatchAlarmConfiguration()
        {
            return this._cloudWatchAlarmConfiguration != null;
        }
    }
}