Interface ListServiceInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListServiceInstancesResponse.Builder,
,ListServiceInstancesResponse> ProtonResponse.Builder
,SdkBuilder<ListServiceInstancesResponse.Builder,
,ListServiceInstancesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListServiceInstancesResponse
@Mutable
@NotThreadSafe
public static interface ListServiceInstancesResponse.Builder
extends ProtonResponse.Builder, SdkPojo, CopyableBuilder<ListServiceInstancesResponse.Builder,ListServiceInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA token that indicates the location of the next service instance in the array of service instances, after the current requested list of service instances.serviceInstances
(Collection<ServiceInstanceSummary> serviceInstances) An array of service instances with summary data.serviceInstances
(Consumer<ServiceInstanceSummary.Builder>... serviceInstances) An array of service instances with summary data.serviceInstances
(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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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.Builder
avoiding the need to create one manually viaServiceInstanceSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserviceInstances(List<ServiceInstanceSummary>)
.- 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:
-