public static interface ScheduledInstanceAvailability.Builder extends SdkPojo, CopyableBuilder<ScheduledInstanceAvailability.Builder,ScheduledInstanceAvailability>
equalsBySdkFields, sdkFields
copy
applyMutation, build
ScheduledInstanceAvailability.Builder availabilityZone(String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.ScheduledInstanceAvailability.Builder availableInstanceCount(Integer availableInstanceCount)
The number of available instances.
availableInstanceCount
- The number of available instances.ScheduledInstanceAvailability.Builder firstSlotStartTime(Instant firstSlotStartTime)
The time period for the first schedule to start.
firstSlotStartTime
- The time period for the first schedule to start.ScheduledInstanceAvailability.Builder hourlyPrice(String hourlyPrice)
The hourly price for a single instance.
hourlyPrice
- The hourly price for a single instance.ScheduledInstanceAvailability.Builder instanceType(String instanceType)
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
instanceType
- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.ScheduledInstanceAvailability.Builder maxTermDurationInDays(Integer maxTermDurationInDays)
The maximum term. The only possible value is 365 days.
maxTermDurationInDays
- The maximum term. The only possible value is 365 days.ScheduledInstanceAvailability.Builder minTermDurationInDays(Integer minTermDurationInDays)
The minimum term. The only possible value is 365 days.
minTermDurationInDays
- The minimum term. The only possible value is 365 days.ScheduledInstanceAvailability.Builder networkPlatform(String networkPlatform)
The network platform (EC2-Classic
or EC2-VPC
).
networkPlatform
- The network platform (EC2-Classic
or EC2-VPC
).ScheduledInstanceAvailability.Builder platform(String platform)
The platform (Linux/UNIX
or Windows
).
platform
- The platform (Linux/UNIX
or Windows
).ScheduledInstanceAvailability.Builder purchaseToken(String purchaseToken)
The purchase token. This token expires in two hours.
purchaseToken
- The purchase token. This token expires in two hours.ScheduledInstanceAvailability.Builder recurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.
recurrence
- The schedule recurrence.default ScheduledInstanceAvailability.Builder recurrence(Consumer<ScheduledInstanceRecurrence.Builder> recurrence)
The schedule recurrence.
This is a convenience method that creates an instance of theScheduledInstanceRecurrence.Builder
avoiding the need to create one manually via ScheduledInstanceRecurrence.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to recurrence(ScheduledInstanceRecurrence)
.recurrence
- a consumer that will call methods on ScheduledInstanceRecurrence.Builder
recurrence(ScheduledInstanceRecurrence)
ScheduledInstanceAvailability.Builder slotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.
slotDurationInHours
- The number of hours in the schedule.ScheduledInstanceAvailability.Builder totalScheduledInstanceHours(Integer totalScheduledInstanceHours)
The total number of hours for a single instance for the entire term.
totalScheduledInstanceHours
- The total number of hours for a single instance for the entire term.Copyright © 2022. All rights reserved.