Interface ScheduledInstance.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ScheduledInstance.Builder,ScheduledInstance>
,SdkBuilder<ScheduledInstance.Builder,ScheduledInstance>
,SdkPojo
- Enclosing class:
- ScheduledInstance
public static interface ScheduledInstance.Builder extends SdkPojo, CopyableBuilder<ScheduledInstance.Builder,ScheduledInstance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ScheduledInstance.Builder
availabilityZone(String availabilityZone)
The Availability Zone.ScheduledInstance.Builder
createDate(Instant createDate)
The date when the Scheduled Instance was purchased.ScheduledInstance.Builder
hourlyPrice(String hourlyPrice)
The hourly price for a single instance.ScheduledInstance.Builder
instanceCount(Integer instanceCount)
The number of instances.ScheduledInstance.Builder
instanceType(String instanceType)
The instance type.ScheduledInstance.Builder
networkPlatform(String networkPlatform)
The network platform.ScheduledInstance.Builder
nextSlotStartTime(Instant nextSlotStartTime)
The time for the next schedule to start.ScheduledInstance.Builder
platform(String platform)
The platform (Linux/UNIX
orWindows
).ScheduledInstance.Builder
previousSlotEndTime(Instant previousSlotEndTime)
The time that the previous schedule ended or will end.default ScheduledInstance.Builder
recurrence(Consumer<ScheduledInstanceRecurrence.Builder> recurrence)
The schedule recurrence.ScheduledInstance.Builder
recurrence(ScheduledInstanceRecurrence recurrence)
The schedule recurrence.ScheduledInstance.Builder
scheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.ScheduledInstance.Builder
slotDurationInHours(Integer slotDurationInHours)
The number of hours in the schedule.ScheduledInstance.Builder
termEndDate(Instant termEndDate)
The end date for the Scheduled Instance.ScheduledInstance.Builder
termStartDate(Instant termStartDate)
The start date for the Scheduled Instance.ScheduledInstance.Builder
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 Detail
-
availabilityZone
ScheduledInstance.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.
-
createDate
ScheduledInstance.Builder createDate(Instant createDate)
The date when the Scheduled Instance was purchased.
- Parameters:
createDate
- The date when the Scheduled Instance was purchased.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hourlyPrice
ScheduledInstance.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.
-
instanceCount
ScheduledInstance.Builder instanceCount(Integer instanceCount)
The number of instances.
- Parameters:
instanceCount
- The number of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
ScheduledInstance.Builder instanceType(String instanceType)
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkPlatform
ScheduledInstance.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.
-
nextSlotStartTime
ScheduledInstance.Builder nextSlotStartTime(Instant nextSlotStartTime)
The time for the next schedule to start.
- Parameters:
nextSlotStartTime
- The time for the next schedule to start.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platform
ScheduledInstance.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.
-
previousSlotEndTime
ScheduledInstance.Builder previousSlotEndTime(Instant previousSlotEndTime)
The time that the previous schedule ended or will end.
- Parameters:
previousSlotEndTime
- The time that the previous schedule ended or will end.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurrence
ScheduledInstance.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 ScheduledInstance.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)
-
scheduledInstanceId
ScheduledInstance.Builder scheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
- Parameters:
scheduledInstanceId
- The Scheduled Instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotDurationInHours
ScheduledInstance.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.
-
termEndDate
ScheduledInstance.Builder termEndDate(Instant termEndDate)
The end date for the Scheduled Instance.
- Parameters:
termEndDate
- The end date for the Scheduled Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
termStartDate
ScheduledInstance.Builder termStartDate(Instant termStartDate)
The start date for the Scheduled Instance.
- Parameters:
termStartDate
- The start date for the Scheduled Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalScheduledInstanceHours
ScheduledInstance.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.
-
-