/* * 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 { /// /// In a response to a DiscoverInstances /// request, HttpInstanceSummary contains information about one instance /// that matches the values that you specified in the request. /// public partial class HttpInstanceSummary { private Dictionary _attributes = new Dictionary(); private HealthStatus _healthStatus; private string _instanceId; private string _namespaceName; private string _serviceName; /// /// Gets and sets the property Attributes. /// /// If you included any attributes when you registered the instance, the values of those /// attributes. /// /// public Dictionary Attributes { get { return this._attributes; } set { this._attributes = value; } } // Check to see if Attributes property is set internal bool IsSetAttributes() { return this._attributes != null && this._attributes.Count > 0; } /// /// Gets and sets the property HealthStatus. /// /// If you configured health checking in the service, the current health status of the /// service instance. /// /// public HealthStatus HealthStatus { get { return this._healthStatus; } set { this._healthStatus = value; } } // Check to see if HealthStatus property is set internal bool IsSetHealthStatus() { return this._healthStatus != null; } /// /// Gets and sets the property InstanceId. /// /// The ID of an instance that matches the values that you specified in the request. /// /// [AWSProperty(Max=64)] public string InstanceId { get { return this._instanceId; } set { this._instanceId = value; } } // Check to see if InstanceId property is set internal bool IsSetInstanceId() { return this._instanceId != null; } /// /// Gets and sets the property NamespaceName. /// /// /// /// /// /// The HttpName name of the namespace. It's found in the HttpProperties /// member of the Properties member of the namespace. /// /// [AWSProperty(Max=1024)] public string NamespaceName { get { return this._namespaceName; } set { this._namespaceName = value; } } // Check to see if NamespaceName property is set internal bool IsSetNamespaceName() { return this._namespaceName != null; } /// /// Gets and sets the property ServiceName. /// /// The name of the service that you specified when you registered the instance. /// /// public string ServiceName { get { return this._serviceName; } set { this._serviceName = value; } } // Check to see if ServiceName property is set internal bool IsSetServiceName() { return this._serviceName != null; } } }