/*
* 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 the specified service.
///
public partial class Service
{
private string _arn;
private DateTime? _createDate;
private string _creatorRequestId;
private string _description;
private DnsConfig _dnsConfig;
private HealthCheckConfig _healthCheckConfig;
private HealthCheckCustomConfig _healthCheckCustomConfig;
private string _id;
private int? _instanceCount;
private string _name;
private string _namespaceId;
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, in Unix format and Coordinated Universal
/// Time (UTC). The value of CreateDate
is accurate to milliseconds. For
/// example, the value 1516925490.087
represents Friday, January 26, 2018
/// 12:11:30.087 AM.
///
///
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 CreatorRequestId.
///
/// A unique string that identifies the request and that allows failed requests to be
/// retried without the risk of running the operation twice. CreatorRequestId
/// can be any unique string (for example, a date/timestamp).
///
///
[AWSProperty(Max=64)]
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
///
/// Gets and sets the property Description.
///
/// The description of 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.
///
/// A complex type that contains information about the RouteĀ 53 DNS records that you want
/// Cloud Map to create when you register an instance.
///
///
///
/// The record types of a service can only be changed by deleting the service and recreating
/// it with a new Dnsconfig
.
///
///
///
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. A complex type that contains 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
.
///
///
///
/// For information about the charges for health checks, see Amazon
/// RouteĀ 53 Pricing.
///
///
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.
///
/// A complex type that contains information about an optional custom health check.
///
///
///
/// 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 NamespaceId.
///
/// The ID of the namespace that was used to create the service.
///
///
[AWSProperty(Max=64)]
public string NamespaceId
{
get { return this._namespaceId; }
set { this._namespaceId = value; }
}
// Check to see if NamespaceId property is set
internal bool IsSetNamespaceId()
{
return this._namespaceId != 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;
}
}
}