Interface RunScheduledInstancesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RunScheduledInstancesRequest.Builder,
,RunScheduledInstancesRequest> Ec2Request.Builder
,SdkBuilder<RunScheduledInstancesRequest.Builder,
,RunScheduledInstancesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
RunScheduledInstancesRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier that ensures the idempotency of the request.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.instanceCount
(Integer instanceCount) The number of instances.launchSpecification
(Consumer<ScheduledInstancesLaunchSpecification.Builder> launchSpecification) The launch specification.launchSpecification
(ScheduledInstancesLaunchSpecification launchSpecification) The launch specification.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.scheduledInstanceId
(String scheduledInstanceId) The Scheduled Instance ID.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, sdkFields
-
Method Details
-
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
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
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:
-
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) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
RunScheduledInstancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-