Interface ListTestRunSourcesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListTestRunSourcesResponse.Builder,,ListTestRunSourcesResponse> Resiliencehubv2Response.Builder,SdkBuilder<ListTestRunSourcesResponse.Builder,,ListTestRunSourcesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListTestRunSourcesResponse
@Mutable
@NotThreadSafe
public static interface ListTestRunSourcesResponse.Builder
extends Resiliencehubv2Response.Builder, SdkPojo, CopyableBuilder<ListTestRunSourcesResponse.Builder,ListTestRunSourcesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionSets the value of the NextToken property for this object.testRunSources(Collection<TestRunSourceSummary> testRunSources) The list of monitoring source snapshots.testRunSources(Consumer<TestRunSourceSummary.Builder>... testRunSources) The list of monitoring source snapshots.testRunSources(TestRunSourceSummary... testRunSources) The list of monitoring source snapshots.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.resiliencehubv2.model.Resiliencehubv2Response.Builder
build, responseMetadata, responseMetadataMethods 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
-
testRunSources
The list of monitoring source snapshots.
- Parameters:
testRunSources- The list of monitoring source snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testRunSources
The list of monitoring source snapshots.
- Parameters:
testRunSources- The list of monitoring source snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testRunSources
ListTestRunSourcesResponse.Builder testRunSources(Consumer<TestRunSourceSummary.Builder>... testRunSources) The list of monitoring source snapshots.
This is a convenience method that creates an instance of theTestRunSourceSummary.Builderavoiding the need to create one manually viaTestRunSourceSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totestRunSources(List<TestRunSourceSummary>).- Parameters:
testRunSources- a consumer that will call methods onTestRunSourceSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Sets the value of the NextToken property for this object.- Parameters:
nextToken- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-