public static interface RunScheduledInstancesRequest.Builder extends EC2Request.Builder, CopyableBuilder<RunScheduledInstancesRequest.Builder,RunScheduledInstancesRequest>
Modifier and Type | Method and Description |
---|---|
RunScheduledInstancesRequest.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the request.
|
RunScheduledInstancesRequest.Builder |
instanceCount(Integer instanceCount)
The number of instances.
|
default RunScheduledInstancesRequest.Builder |
launchSpecification(Consumer<ScheduledInstancesLaunchSpecification.Builder> launchSpecification)
The launch specification.
|
RunScheduledInstancesRequest.Builder |
launchSpecification(ScheduledInstancesLaunchSpecification launchSpecification)
The launch specification.
|
RunScheduledInstancesRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
RunScheduledInstancesRequest.Builder |
scheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, 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 requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.