@Generated(value="software.amazon.awssdk:codegen") public final class HttpInstanceSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HttpInstanceSummary.Builder,HttpInstanceSummary>
In a response to a DiscoverInstance request, HttpInstanceSummary
contains information about one
instance that matches the values that you specified in the request.
Modifier and Type | Class and Description |
---|---|
static interface |
HttpInstanceSummary.Builder |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
attributes()
If you included any attributes when you registered the instance, the values of those attributes.
|
static HttpInstanceSummary.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HealthStatus |
healthStatus()
If you configured health checking in the service, the current health status of the service instance.
|
String |
healthStatusAsString()
If you configured health checking in the service, the current health status of the service instance.
|
String |
instanceId()
The ID of an instance that matches the values that you specified in the request.
|
String |
namespaceName()
The name of the namespace that you specified when you registered the instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HttpInstanceSummary.Builder> |
serializableBuilderClass() |
String |
serviceName()
The name of the service that you specified when you registered the instance.
|
HttpInstanceSummary.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String instanceId()
The ID of an instance that matches the values that you specified in the request.
public String namespaceName()
The name of the namespace that you specified when you registered the instance.
public String serviceName()
The name of the service that you specified when you registered the instance.
public HealthStatus healthStatus()
If you configured health checking in the service, the current health status of the service instance.
If the service returns an enum value that is not available in the current SDK version, healthStatus
will
return HealthStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
healthStatusAsString()
.
HealthStatus
public String healthStatusAsString()
If you configured health checking in the service, the current health status of the service instance.
If the service returns an enum value that is not available in the current SDK version, healthStatus
will
return HealthStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
healthStatusAsString()
.
HealthStatus
public Map<String,String> attributes()
If you included any attributes when you registered the instance, the values of those attributes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public HttpInstanceSummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<HttpInstanceSummary.Builder,HttpInstanceSummary>
public static HttpInstanceSummary.Builder builder()
public static Class<? extends HttpInstanceSummary.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.