@Generated(value="software.amazon.awssdk:codegen") public final class DiscoverInstancesRequest extends ServiceDiscoveryRequest implements ToCopyableBuilder<DiscoverInstancesRequest.Builder,DiscoverInstancesRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
DiscoverInstancesRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static DiscoverInstancesRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
HealthStatusFilter |
healthStatus()
The health status of the instances that you want to discover.
|
String |
healthStatusAsString()
The health status of the instances that you want to discover.
|
Integer |
maxResults()
The maximum number of instances that you want Cloud Map to return in the response to a
DiscoverInstances request. |
String |
namespaceName()
The name of the namespace that you specified when you registered the instance.
|
Map<String,String> |
queryParameters()
A string map that contains attributes with values that you can use to filter instances by any custom attribute
that you specified when you registered the instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DiscoverInstancesRequest.Builder> |
serializableBuilderClass() |
String |
serviceName()
The name of the service that you specified when you registered the instance.
|
DiscoverInstancesRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
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 Integer maxResults()
The maximum number of instances that you want Cloud Map to return in the response to a
DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud Map
returns up to 100 instances.
DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud
Map returns up to 100 instances.public Map<String,String> queryParameters()
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all the specified key/value pairs will be returned.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public HealthStatusFilter healthStatus()
The health status of the instances that you want to discover.
If the service returns an enum value that is not available in the current SDK version, healthStatus
will
return HealthStatusFilter.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
healthStatusAsString()
.
HealthStatusFilter
public String healthStatusAsString()
The health status of the instances that you want to discover.
If the service returns an enum value that is not available in the current SDK version, healthStatus
will
return HealthStatusFilter.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
healthStatusAsString()
.
HealthStatusFilter
public DiscoverInstancesRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DiscoverInstancesRequest.Builder,DiscoverInstancesRequest>
toBuilder
in class ServiceDiscoveryRequest
public static DiscoverInstancesRequest.Builder builder()
public static Class<? extends DiscoverInstancesRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.