Interface DiscoverInstancesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DiscoverInstancesRequest.Builder,DiscoverInstancesRequest>,SdkBuilder<DiscoverInstancesRequest.Builder,DiscoverInstancesRequest>,SdkPojo,SdkRequest.Builder,ServiceDiscoveryRequest.Builder
- Enclosing class:
- DiscoverInstancesRequest
public static interface DiscoverInstancesRequest.Builder extends ServiceDiscoveryRequest.Builder, SdkPojo, CopyableBuilder<DiscoverInstancesRequest.Builder,DiscoverInstancesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiscoverInstancesRequest.BuilderhealthStatus(String healthStatus)The health status of the instances that you want to discover.DiscoverInstancesRequest.BuilderhealthStatus(HealthStatusFilter healthStatus)The health status of the instances that you want to discover.DiscoverInstancesRequest.BuildermaxResults(Integer maxResults)The maximum number of instances that you want Cloud Map to return in the response to aDiscoverInstancesrequest.DiscoverInstancesRequest.BuildernamespaceName(String namespaceName)TheHttpNamename of the namespace.DiscoverInstancesRequest.BuilderoptionalParameters(Map<String,String> optionalParameters)Opportunistic filters to scope the results based on custom attributes.DiscoverInstancesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)DiscoverInstancesRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)DiscoverInstancesRequest.BuilderqueryParameters(Map<String,String> queryParameters)Filters to scope the results based on custom attributes for the instance (for example,{version=v1, az=1a}).DiscoverInstancesRequest.BuilderserviceName(String serviceName)The name of the service that you specified when you registered the instance.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryRequest.Builder
build
-
-
-
-
Method Detail
-
namespaceName
DiscoverInstancesRequest.Builder namespaceName(String namespaceName)
The
HttpNamename of the namespace. It's found in theHttpPropertiesmember of thePropertiesmember of the namespace. In most cases,NameandHttpNamematch. However, if you reuseNamefor namespace creation, a generated hash is added toHttpNameto distinguish the two.- Parameters:
namespaceName- TheHttpNamename of the namespace. It's found in theHttpPropertiesmember of thePropertiesmember of the namespace. In most cases,NameandHttpNamematch. However, if you reuseNamefor namespace creation, a generated hash is added toHttpNameto distinguish the two.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceName
DiscoverInstancesRequest.Builder serviceName(String serviceName)
The name of the service that you specified when you registered the instance.
- Parameters:
serviceName- The name of the service that you specified when you registered the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
DiscoverInstancesRequest.Builder maxResults(Integer maxResults)
The maximum number of instances that you want Cloud Map to return in the response to a
DiscoverInstancesrequest. If you don't specify a value forMaxResults, Cloud Map returns up to 100 instances.- Parameters:
maxResults- The maximum number of instances that you want Cloud Map to return in the response to aDiscoverInstancesrequest. If you don't specify a value forMaxResults, Cloud Map returns up to 100 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
DiscoverInstancesRequest.Builder queryParameters(Map<String,String> queryParameters)
Filters to scope the results based on custom attributes for the instance (for example,
{version=v1, az=1a}). Only instances that match all the specified key-value pairs are returned.- Parameters:
queryParameters- Filters to scope the results based on custom attributes for the instance (for example,{version=v1, az=1a}). Only instances that match all the specified key-value pairs are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionalParameters
DiscoverInstancesRequest.Builder optionalParameters(Map<String,String> optionalParameters)
Opportunistic filters to scope the results based on custom attributes. If there are instances that match both the filters specified in both the
QueryParametersparameter and this parameter, all of these instances are returned. Otherwise, the filters are ignored, and only instances that match the filters that are specified in theQueryParametersparameter are returned.- Parameters:
optionalParameters- Opportunistic filters to scope the results based on custom attributes. If there are instances that match both the filters specified in both theQueryParametersparameter and this parameter, all of these instances are returned. Otherwise, the filters are ignored, and only instances that match the filters that are specified in theQueryParametersparameter are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthStatus
DiscoverInstancesRequest.Builder healthStatus(String healthStatus)
The health status of the instances that you want to discover. This parameter is ignored for services that don't have a health check configured, and all instances are returned.
- HEALTHY
-
Returns healthy instances.
- UNHEALTHY
-
Returns unhealthy instances.
- ALL
-
Returns all instances.
- HEALTHY_OR_ELSE_ALL
-
Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.
- Parameters:
healthStatus- The health status of the instances that you want to discover. This parameter is ignored for services that don't have a health check configured, and all instances are returned.- HEALTHY
-
Returns healthy instances.
- UNHEALTHY
-
Returns unhealthy instances.
- ALL
-
Returns all instances.
- HEALTHY_OR_ELSE_ALL
-
Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HealthStatusFilter,HealthStatusFilter
-
healthStatus
DiscoverInstancesRequest.Builder healthStatus(HealthStatusFilter healthStatus)
The health status of the instances that you want to discover. This parameter is ignored for services that don't have a health check configured, and all instances are returned.
- HEALTHY
-
Returns healthy instances.
- UNHEALTHY
-
Returns unhealthy instances.
- ALL
-
Returns all instances.
- HEALTHY_OR_ELSE_ALL
-
Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.
- Parameters:
healthStatus- The health status of the instances that you want to discover. This parameter is ignored for services that don't have a health check configured, and all instances are returned.- HEALTHY
-
Returns healthy instances.
- UNHEALTHY
-
Returns unhealthy instances.
- ALL
-
Returns all instances.
- HEALTHY_OR_ELSE_ALL
-
Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HealthStatusFilter,HealthStatusFilter
-
overrideConfiguration
DiscoverInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
DiscoverInstancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-