Interface TimeBasedAutoScalingConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TimeBasedAutoScalingConfiguration.Builder,
,TimeBasedAutoScalingConfiguration> SdkBuilder<TimeBasedAutoScalingConfiguration.Builder,
,TimeBasedAutoScalingConfiguration> SdkPojo
- Enclosing class:
TimeBasedAutoScalingConfiguration
public static interface TimeBasedAutoScalingConfiguration.Builder
extends SdkPojo, CopyableBuilder<TimeBasedAutoScalingConfiguration.Builder,TimeBasedAutoScalingConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingSchedule
(Consumer<WeeklyAutoScalingSchedule.Builder> autoScalingSchedule) AWeeklyAutoScalingSchedule
object with the instance schedule.autoScalingSchedule
(WeeklyAutoScalingSchedule autoScalingSchedule) AWeeklyAutoScalingSchedule
object with the instance schedule.instanceId
(String instanceId) The instance ID.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
-
instanceId
The instance ID.
- Parameters:
instanceId
- The instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingSchedule
TimeBasedAutoScalingConfiguration.Builder autoScalingSchedule(WeeklyAutoScalingSchedule autoScalingSchedule) A
WeeklyAutoScalingSchedule
object with the instance schedule.- Parameters:
autoScalingSchedule
- AWeeklyAutoScalingSchedule
object with the instance schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingSchedule
default TimeBasedAutoScalingConfiguration.Builder autoScalingSchedule(Consumer<WeeklyAutoScalingSchedule.Builder> autoScalingSchedule) A
This is a convenience method that creates an instance of theWeeklyAutoScalingSchedule
object with the instance schedule.WeeklyAutoScalingSchedule.Builder
avoiding the need to create one manually viaWeeklyAutoScalingSchedule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoScalingSchedule(WeeklyAutoScalingSchedule)
.- Parameters:
autoScalingSchedule
- a consumer that will call methods onWeeklyAutoScalingSchedule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-