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) AWeeklyAutoScalingScheduleobject with the instance schedule.autoScalingSchedule(WeeklyAutoScalingSchedule autoScalingSchedule) AWeeklyAutoScalingScheduleobject with the instance schedule.instanceId(String instanceId) The instance ID.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
WeeklyAutoScalingScheduleobject with the instance schedule.- Parameters:
autoScalingSchedule- AWeeklyAutoScalingScheduleobject 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 theWeeklyAutoScalingScheduleobject with the instance schedule.WeeklyAutoScalingSchedule.Builderavoiding the need to create one manually viaWeeklyAutoScalingSchedule.builder().When the
Consumercompletes,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:
-