Interface PurchaseScheduledInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PurchaseScheduledInstancesResponse.Builder,
,PurchaseScheduledInstancesResponse> Ec2Response.Builder
,SdkBuilder<PurchaseScheduledInstancesResponse.Builder,
,PurchaseScheduledInstancesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PurchaseScheduledInstancesResponse
public static interface PurchaseScheduledInstancesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<PurchaseScheduledInstancesResponse.Builder,PurchaseScheduledInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionscheduledInstanceSet
(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
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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 Details
-
scheduledInstanceSet
PurchaseScheduledInstancesResponse.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
PurchaseScheduledInstancesResponse.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
PurchaseScheduledInstancesResponse.Builder scheduledInstanceSet(Consumer<ScheduledInstance.Builder>... scheduledInstanceSet) Information about the Scheduled Instances.
This is a convenience method that creates an instance of theScheduledInstance.Builder
avoiding the need to create one manually viaScheduledInstance.builder()
.When the
Consumer
completes,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:
-