Interface DescribeScheduledInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeScheduledInstancesResponse.Builder,,DescribeScheduledInstancesResponse> Ec2Response.Builder,SdkBuilder<DescribeScheduledInstancesResponse.Builder,,DescribeScheduledInstancesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeScheduledInstancesResponse
@Mutable
@NotThreadSafe
public static interface DescribeScheduledInstancesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeScheduledInstancesResponse.Builder,DescribeScheduledInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token required to retrieve the next set of results.scheduledInstanceSet(Collection<ScheduledInstance> scheduledInstanceSet) Information about the Scheduled Instances.scheduledInstanceSet(Consumer<ScheduledInstance.Builder>... scheduledInstanceSet) Information about the Scheduled Instances.scheduledInstanceSet(ScheduledInstance... scheduledInstanceSet) Information about the Scheduled Instances.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
-
nextToken
The token required to retrieve the next set of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token required to retrieve the next set of results. This value isnullwhen there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledInstanceSet
DescribeScheduledInstancesResponse.Builder scheduledInstanceSet(Collection<ScheduledInstance> scheduledInstanceSet) Information about the Scheduled Instances.
- Parameters:
scheduledInstanceSet- Information about the Scheduled Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledInstanceSet
DescribeScheduledInstancesResponse.Builder scheduledInstanceSet(ScheduledInstance... scheduledInstanceSet) Information about the Scheduled Instances.
- Parameters:
scheduledInstanceSet- Information about the Scheduled Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledInstanceSet
DescribeScheduledInstancesResponse.Builder scheduledInstanceSet(Consumer<ScheduledInstance.Builder>... scheduledInstanceSet) Information about the Scheduled Instances.
This is a convenience method that creates an instance of theScheduledInstance.Builderavoiding the need to create one manually viaScheduledInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscheduledInstanceSet(List<ScheduledInstance>).- Parameters:
scheduledInstanceSet- a consumer that will call methods onScheduledInstance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-