/* * Copyright 2018-2023 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. */ package com.amazonaws.services.servicediscovery.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* In a response to a DiscoverInstances request,
* HttpInstanceSummary
contains information about one instance that matches the values that you specified
* in the request.
*
* The ID of an instance that matches the values that you specified in the request. *
*/ private String instanceId; /** *
*
*
* The HttpName
name of the namespace. It's found in the HttpProperties
member of the
* Properties
member of the namespace.
*
* The name of the service that you specified when you registered the instance. *
*/ private String serviceName; /** ** If you configured health checking in the service, the current health status of the service instance. *
*/ private String healthStatus; /** ** If you included any attributes when you registered the instance, the values of those attributes. *
*/ private java.util.Map* The ID of an instance that matches the values that you specified in the request. *
* * @param instanceId * The ID of an instance that matches the values that you specified in the request. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** ** The ID of an instance that matches the values that you specified in the request. *
* * @return The ID of an instance that matches the values that you specified in the request. */ public String getInstanceId() { return this.instanceId; } /** ** The ID of an instance that matches the values that you specified in the request. *
* * @param instanceId * The ID of an instance that matches the values that you specified in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpInstanceSummary withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** *
*
*
* The HttpName
name of the namespace. It's found in the HttpProperties
member of the
* Properties
member of the namespace.
*
The HttpName
name of the namespace. It's found in the
* HttpProperties
member of the Properties
member of the namespace.
*/
public void setNamespaceName(String namespaceName) {
this.namespaceName = namespaceName;
}
/**
*
*
*
* The HttpName
name of the namespace. It's found in the HttpProperties
member of the
* Properties
member of the namespace.
*
The HttpName
name of the namespace. It's found in the
* HttpProperties
member of the Properties
member of the namespace.
*/
public String getNamespaceName() {
return this.namespaceName;
}
/**
*
*
*
* The HttpName
name of the namespace. It's found in the HttpProperties
member of the
* Properties
member of the namespace.
*
The HttpName
name of the namespace. It's found in the
* HttpProperties
member of the Properties
member of the namespace.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HttpInstanceSummary withNamespaceName(String namespaceName) {
setNamespaceName(namespaceName);
return this;
}
/**
*
* The name of the service that you specified when you registered the instance. *
* * @param serviceName * The name of the service that you specified when you registered the instance. */ public void setServiceName(String serviceName) { this.serviceName = serviceName; } /** ** The name of the service that you specified when you registered the instance. *
* * @return The name of the service that you specified when you registered the instance. */ public String getServiceName() { return this.serviceName; } /** ** The name of the service that you specified when you registered the instance. *
* * @param serviceName * The name of the service that you specified when you registered the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpInstanceSummary withServiceName(String serviceName) { setServiceName(serviceName); return this; } /** ** If you configured health checking in the service, the current health status of the service instance. *
* * @param healthStatus * If you configured health checking in the service, the current health status of the service instance. * @see HealthStatus */ public void setHealthStatus(String healthStatus) { this.healthStatus = healthStatus; } /** ** If you configured health checking in the service, the current health status of the service instance. *
* * @return If you configured health checking in the service, the current health status of the service instance. * @see HealthStatus */ public String getHealthStatus() { return this.healthStatus; } /** ** If you configured health checking in the service, the current health status of the service instance. *
* * @param healthStatus * If you configured health checking in the service, the current health status of the service instance. * @return Returns a reference to this object so that method calls can be chained together. * @see HealthStatus */ public HttpInstanceSummary withHealthStatus(String healthStatus) { setHealthStatus(healthStatus); return this; } /** ** If you configured health checking in the service, the current health status of the service instance. *
* * @param healthStatus * If you configured health checking in the service, the current health status of the service instance. * @return Returns a reference to this object so that method calls can be chained together. * @see HealthStatus */ public HttpInstanceSummary withHealthStatus(HealthStatus healthStatus) { this.healthStatus = healthStatus.toString(); return this; } /** ** If you included any attributes when you registered the instance, the values of those attributes. *
* * @return If you included any attributes when you registered the instance, the values of those attributes. */ public java.util.Map* If you included any attributes when you registered the instance, the values of those attributes. *
* * @param attributes * If you included any attributes when you registered the instance, the values of those attributes. */ public void setAttributes(java.util.Map* If you included any attributes when you registered the instance, the values of those attributes. *
* * @param attributes * If you included any attributes when you registered the instance, the values of those attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpInstanceSummary withAttributes(java.util.Map