/* * 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 namespace. /// public partial class Namespace { private string _arn; private DateTime? _createDate; private string _creatorRequestId; private string _description; private string _id; private string _name; private NamespaceProperties _properties; private int? _serviceCount; private NamespaceType _type; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace 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 that the namespace was created, in Unix date/time 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 an operation twice. /// /// [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 that you specify for the namespace when you create it. /// /// [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 Id. /// /// The ID of a namespace. /// /// [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 Name. /// /// The name of the namespace, such as example.com. /// /// [AWSProperty(Max=1024)] 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 Properties. /// /// A complex type that contains information that's specific to the type of the namespace. /// /// public NamespaceProperties Properties { get { return this._properties; } set { this._properties = value; } } // Check to see if Properties property is set internal bool IsSetProperties() { return this._properties != null; } /// /// Gets and sets the property ServiceCount. /// /// The number of services that are associated with the namespace. /// /// public int ServiceCount { get { return this._serviceCount.GetValueOrDefault(); } set { this._serviceCount = value; } } // Check to see if ServiceCount property is set internal bool IsSetServiceCount() { return this._serviceCount.HasValue; } /// /// Gets and sets the property Type. /// /// The type of the namespace. The methods for discovering instances depends on the value /// that you specify: /// ///
HTTP
/// /// Instances can be discovered only programmatically, using the Cloud Map DiscoverInstances /// API. /// ///
DNS_PUBLIC
/// /// Instances can be discovered using public DNS queries and using the DiscoverInstances /// API. /// ///
DNS_PRIVATE
/// /// Instances can be discovered using DNS queries in VPCs and using the DiscoverInstances /// API. /// ///
///
public NamespaceType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }