Interface ScheduledInstanceAvailability.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ScheduledInstanceAvailability.Builder,
,ScheduledInstanceAvailability> SdkBuilder<ScheduledInstanceAvailability.Builder,
,ScheduledInstanceAvailability> SdkPojo
- Enclosing class:
ScheduledInstanceAvailability
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The Availability Zone.availableInstanceCount
(Integer availableInstanceCount) The number of available instances.firstSlotStartTime
(Instant firstSlotStartTime) The time period for the first schedule to start.hourlyPrice
(String hourlyPrice) The hourly price for a single instance.instanceType
(String instanceType) The instance type.maxTermDurationInDays
(Integer maxTermDurationInDays) The maximum term.minTermDurationInDays
(Integer minTermDurationInDays) The minimum term.networkPlatform
(String networkPlatform) The network platform.The platform (Linux/UNIX
orWindows
).purchaseToken
(String purchaseToken) The purchase token.recurrence
(Consumer<ScheduledInstanceRecurrence.Builder> recurrence) The schedule recurrence.recurrence
(ScheduledInstanceRecurrence recurrence) The schedule recurrence.slotDurationInHours
(Integer slotDurationInHours) The number of hours in the schedule.totalScheduledInstanceHours
(Integer totalScheduledInstanceHours) The total number of hours for a single instance for the entire term.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
availabilityZone
The Availability Zone.
- Parameters:
availabilityZone
- The Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableInstanceCount
The number of available instances.
- Parameters:
availableInstanceCount
- The number of available instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firstSlotStartTime
The time period for the first schedule to start.
- Parameters:
firstSlotStartTime
- The time period for the first schedule to start.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hourlyPrice
The hourly price for a single instance.
- Parameters:
hourlyPrice
- The hourly price for a single instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
- Parameters:
instanceType
- The instance type. You can specify one of the C3, C4, M4, or R3 instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxTermDurationInDays
The maximum term. The only possible value is 365 days.
- Parameters:
maxTermDurationInDays
- The maximum term. The only possible value is 365 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minTermDurationInDays
The minimum term. The only possible value is 365 days.
- Parameters:
minTermDurationInDays
- The minimum term. The only possible value is 365 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkPlatform
The network platform.
- Parameters:
networkPlatform
- The network platform.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platform
The platform (
Linux/UNIX
orWindows
).- Parameters:
platform
- The platform (Linux/UNIX
orWindows
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchaseToken
The purchase token. This token expires in two hours.
- Parameters:
purchaseToken
- The purchase token. This token expires in two hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurrence
The schedule recurrence.
- Parameters:
recurrence
- The schedule recurrence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaScheduledInstanceRecurrence.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecurrence(ScheduledInstanceRecurrence)
.- Parameters:
recurrence
- a consumer that will call methods onScheduledInstanceRecurrence.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slotDurationInHours
The number of hours in the schedule.
- Parameters:
slotDurationInHours
- The number of hours in the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalScheduledInstanceHours
ScheduledInstanceAvailability.Builder totalScheduledInstanceHours(Integer totalScheduledInstanceHours) The total number of hours for a single instance for the entire term.
- Parameters:
totalScheduledInstanceHours
- The total number of hours for a single instance for the entire term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-