Interface ListServiceInstancesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListServiceInstancesResponse.Builder,ListServiceInstancesResponse>,ProtonResponse.Builder,SdkBuilder<ListServiceInstancesResponse.Builder,ListServiceInstancesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListServiceInstancesResponse
public static interface ListServiceInstancesResponse.Builder extends ProtonResponse.Builder, SdkPojo, CopyableBuilder<ListServiceInstancesResponse.Builder,ListServiceInstancesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListServiceInstancesResponse.BuildernextToken(String nextToken)A token that indicates the location of the next service instance in the array of service instances, after the current requested list of service instances.ListServiceInstancesResponse.BuilderserviceInstances(Collection<ServiceInstanceSummary> serviceInstances)An array of service instances with summary data.ListServiceInstancesResponse.BuilderserviceInstances(Consumer<ServiceInstanceSummary.Builder>... serviceInstances)An array of service instances with summary data.ListServiceInstancesResponse.BuilderserviceInstances(ServiceInstanceSummary... serviceInstances)An array of service instances with summary data.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.proton.model.ProtonResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
ListServiceInstancesResponse.Builder nextToken(String nextToken)
A token that indicates the location of the next service instance in the array of service instances, after the current requested list of service instances.
- Parameters:
nextToken- A token that indicates the location of the next service instance in the array of service instances, after the current requested list of service instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceInstances
ListServiceInstancesResponse.Builder serviceInstances(Collection<ServiceInstanceSummary> serviceInstances)
An array of service instances with summary data.
- Parameters:
serviceInstances- An array of service instances with summary data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceInstances
ListServiceInstancesResponse.Builder serviceInstances(ServiceInstanceSummary... serviceInstances)
An array of service instances with summary data.
- Parameters:
serviceInstances- An array of service instances with summary data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceInstances
ListServiceInstancesResponse.Builder serviceInstances(Consumer<ServiceInstanceSummary.Builder>... serviceInstances)
An array of service instances with summary data.
This is a convenience method that creates an instance of theServiceInstanceSummary.Builderavoiding the need to create one manually viaServiceInstanceSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#serviceInstances(List.) - Parameters:
serviceInstances- a consumer that will call methods onServiceInstanceSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#serviceInstances(java.util.Collection)
-
-