Interface ScheduledInstanceAvailability.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ScheduledInstanceAvailability.Builder,ScheduledInstanceAvailability>
,SdkBuilder<ScheduledInstanceAvailability.Builder,ScheduledInstanceAvailability>
,SdkPojo
- Enclosing class:
- ScheduledInstanceAvailability
public static interface ScheduledInstanceAvailability.Builder extends SdkPojo, CopyableBuilder<ScheduledInstanceAvailability.Builder,ScheduledInstanceAvailability>
-
-
Method Summary
-
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 Detail
-
availabilityZone
ScheduledInstanceAvailability.Builder availabilityZone(String 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
ScheduledInstanceAvailability.Builder availableInstanceCount(Integer 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
ScheduledInstanceAvailability.Builder firstSlotStartTime(Instant 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
ScheduledInstanceAvailability.Builder hourlyPrice(String 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
ScheduledInstanceAvailability.Builder instanceType(String 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
ScheduledInstanceAvailability.Builder maxTermDurationInDays(Integer 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
ScheduledInstanceAvailability.Builder minTermDurationInDays(Integer 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
ScheduledInstanceAvailability.Builder networkPlatform(String 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
ScheduledInstanceAvailability.Builder platform(String 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
ScheduledInstanceAvailability.Builder purchaseToken(String 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
ScheduledInstanceAvailability.Builder recurrence(ScheduledInstanceRecurrence 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:
recurrence(ScheduledInstanceRecurrence)
-
slotDurationInHours
ScheduledInstanceAvailability.Builder slotDurationInHours(Integer 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.
-
-