/* * 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 servicediscovery-2017-03-14.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.ServiceDiscovery.Model { /// /// A complex type that contains information about a specified service. /// public partial class ServiceSummary { private string _arn; private DateTime? _createDate; private string _description; private DnsConfig _dnsConfig; private HealthCheckConfig _healthCheckConfig; private HealthCheckCustomConfig _healthCheckCustomConfig; private string _id; private int? _instanceCount; private string _name; private ServiceType _type; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create /// it. /// /// [AWSProperty(Max=255)] 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 CreateDate. /// /// The date and time that the service was created. /// /// public DateTime CreateDate { get { return this._createDate.GetValueOrDefault(); } set { this._createDate = value; } } // Check to see if CreateDate property is set internal bool IsSetCreateDate() { return this._createDate.HasValue; } /// /// Gets and sets the property Description. /// /// The description that you specify when you create the service. /// /// [AWSProperty(Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property DnsConfig. /// /// Information about the RouteĀ 53 DNS records that you want Cloud Map to create when /// you register an instance. /// /// public DnsConfig DnsConfig { get { return this._dnsConfig; } set { this._dnsConfig = value; } } // Check to see if DnsConfig property is set internal bool IsSetDnsConfig() { return this._dnsConfig != null; } /// /// Gets and sets the property HealthCheckConfig. /// /// Public DNS and HTTP namespaces only. Settings for an optional health check. /// If you specify settings for a health check, Cloud Map associates the health check /// with the records that you specify in DnsConfig. /// /// 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 HealthCheckCustomConfig. /// /// Information about an optional custom health check. A custom health check, which requires /// that you use a third-party health checker to evaluate the health of your resources, /// is useful in the following circumstances: /// /// /// /// If you specify a health check configuration, you can specify either HealthCheckCustomConfig /// or HealthCheckConfig but not both. /// /// /// public HealthCheckCustomConfig HealthCheckCustomConfig { get { return this._healthCheckCustomConfig; } set { this._healthCheckCustomConfig = value; } } // Check to see if HealthCheckCustomConfig property is set internal bool IsSetHealthCheckCustomConfig() { return this._healthCheckCustomConfig != null; } /// /// Gets and sets the property Id. /// /// The ID that Cloud Map assigned to the service when you created it. /// /// [AWSProperty(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 InstanceCount. /// /// The number of instances that are currently associated with the service. Instances /// that were previously associated with the service but that are deleted aren't included /// in the count. The count might not reflect pending registrations and deregistrations. /// /// public int InstanceCount { get { return this._instanceCount.GetValueOrDefault(); } set { this._instanceCount = value; } } // Check to see if InstanceCount property is set internal bool IsSetInstanceCount() { return this._instanceCount.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the service. /// /// 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 Type. /// /// Describes the systems that can be used to discover the service instances. /// ///
DNS_HTTP
/// /// The service instances can be discovered using either DNS queries or the DiscoverInstances /// API operation. /// ///
HTTP
/// /// The service instances can only be discovered using the DiscoverInstances /// API operation. /// ///
DNS
/// /// Reserved. /// ///
///
public ServiceType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }