Interface RunScheduledInstancesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RunScheduledInstancesRequest.Builder,RunScheduledInstancesRequest>
,Ec2Request.Builder
,SdkBuilder<RunScheduledInstancesRequest.Builder,RunScheduledInstancesRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- RunScheduledInstancesRequest
public static interface RunScheduledInstancesRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<RunScheduledInstancesRequest.Builder,RunScheduledInstancesRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
clientToken
RunScheduledInstancesRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
- Parameters:
clientToken
- Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
RunScheduledInstancesRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
RunScheduledInstancesRequest.Builder instanceCount(Integer instanceCount)
The number of instances.
Default: 1
- Parameters:
instanceCount
- The number of instances.Default: 1
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchSpecification
RunScheduledInstancesRequest.Builder launchSpecification(ScheduledInstancesLaunchSpecification launchSpecification)
The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.
- Parameters:
launchSpecification
- The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchSpecification
default RunScheduledInstancesRequest.Builder launchSpecification(Consumer<ScheduledInstancesLaunchSpecification.Builder> launchSpecification)
The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.
This is a convenience method that creates an instance of theScheduledInstancesLaunchSpecification.Builder
avoiding the need to create one manually viaScheduledInstancesLaunchSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchSpecification(ScheduledInstancesLaunchSpecification)
.- Parameters:
launchSpecification
- a consumer that will call methods onScheduledInstancesLaunchSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
launchSpecification(ScheduledInstancesLaunchSpecification)
-
scheduledInstanceId
RunScheduledInstancesRequest.Builder scheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
- Parameters:
scheduledInstanceId
- The Scheduled Instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RunScheduledInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
RunScheduledInstancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-