public static interface RunScheduledInstancesRequest.Builder extends Ec2Request.Builder, CopyableBuilder<RunScheduledInstancesRequest.Builder,RunScheduledInstancesRequest>
build
overrideConfiguration
copy
applyMutation, build
RunScheduledInstancesRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken
- Unique, case-sensitive identifier that ensures the idempotency of the request. For more information,
see Ensuring
Idempotency.RunScheduledInstancesRequest.Builder instanceCount(Integer instanceCount)
The number of instances.
Default: 1
instanceCount
- The number of instances.
Default: 1
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.
launchSpecification
- The launch specification. You must match the instance type, Availability Zone, network, and platform
of the schedule that you purchased.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 that creates an instance of theScheduledInstancesLaunchSpecification.Builder
avoiding the need to create one manually via ScheduledInstancesLaunchSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to launchSpecification(ScheduledInstancesLaunchSpecification)
.launchSpecification
- a consumer that will call methods on ScheduledInstancesLaunchSpecification.Builder
launchSpecification(ScheduledInstancesLaunchSpecification)
RunScheduledInstancesRequest.Builder scheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
scheduledInstanceId
- The Scheduled Instance ID.RunScheduledInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.RunScheduledInstancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.