Interface ScheduledInstance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ScheduledInstance.Builder,
,ScheduledInstance> SdkBuilder<ScheduledInstance.Builder,
,ScheduledInstance> SdkPojo
- Enclosing class:
ScheduledInstance
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The Availability Zone.createDate
(Instant createDate) The date when the Scheduled Instance was purchased.hourlyPrice
(String hourlyPrice) The hourly price for a single instance.instanceCount
(Integer instanceCount) The number of instances.instanceType
(String instanceType) The instance type.networkPlatform
(String networkPlatform) The network platform.nextSlotStartTime
(Instant nextSlotStartTime) The time for the next schedule to start.The platform (Linux/UNIX
orWindows
).previousSlotEndTime
(Instant previousSlotEndTime) The time that the previous schedule ended or will end.default ScheduledInstance.Builder
recurrence
(Consumer<ScheduledInstanceRecurrence.Builder> recurrence) The schedule recurrence.recurrence
(ScheduledInstanceRecurrence recurrence) The schedule recurrence.scheduledInstanceId
(String scheduledInstanceId) The Scheduled Instance ID.slotDurationInHours
(Integer slotDurationInHours) The number of hours in the schedule.termEndDate
(Instant termEndDate) The end date for the Scheduled Instance.termStartDate
(Instant termStartDate) The start date for the Scheduled Instance.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.
-
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
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
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
The instance type.
- Parameters:
instanceType
- The instance type.- 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.
-
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
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
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
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:
-
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
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
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
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
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.
-