Interface ListTaskHistoryResponse.Builder
- All Superinterfaces:
AssuranceResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<ListTaskHistoryResponse.Builder,,ListTaskHistoryResponse> SdkBuilder<ListTaskHistoryResponse.Builder,,ListTaskHistoryResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListTaskHistoryResponse
@Mutable
@NotThreadSafe
public static interface ListTaskHistoryResponse.Builder
extends AssuranceResponse.Builder, SdkPojo, CopyableBuilder<ListTaskHistoryResponse.Builder,ListTaskHistoryResponse>
-
Method Summary
Modifier and TypeMethodDescriptionhistory(Collection<TaskHistoryEntry> history) The list of task history entries returned.history(Consumer<TaskHistoryEntry.Builder>... history) The list of task history entries returned.history(TaskHistoryEntry... history) The list of task history entries returned.The pagination token returned by a previous request.Methods inherited from interface software.amazon.awssdk.services.assurance.model.AssuranceResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
history
The list of task history entries returned.
- Parameters:
history- The list of task history entries returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
history
The list of task history entries returned.
- Parameters:
history- The list of task history entries returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
history
The list of task history entries returned.
This is a convenience method that creates an instance of theTaskHistoryEntry.Builderavoiding the need to create one manually viaTaskHistoryEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohistory(List<TaskHistoryEntry>).- Parameters:
history- a consumer that will call methods onTaskHistoryEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
- Parameters:
nextToken- The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-