Interface DayOfMonth.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DayOfMonth.Builder,,DayOfMonth> SdkBuilder<DayOfMonth.Builder,,DayOfMonth> SdkPojo
- Enclosing class:
DayOfMonth
@Mutable
@NotThreadSafe
public static interface DayOfMonth.Builder
extends SdkPojo, CopyableBuilder<DayOfMonth.Builder,DayOfMonth>
-
Method Summary
Modifier and TypeMethodDescriptionA specific day of the month, from 1 to 28.default DayOfMonth.BuilderlastDayOfMonth(Consumer<LastDayOfMonth.Builder> lastDayOfMonth) Set this option to run the monthly sync on the last calendar day of each month.lastDayOfMonth(LastDayOfMonth lastDayOfMonth) Set this option to run the monthly sync on the last calendar day of each month.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, sdkFieldNameToField, sdkFields
-
Method Details
-
dayNumber
A specific day of the month, from 1 to 28. Values are capped at 28, so a monthly sync runs in every month, including February.
- Parameters:
dayNumber- A specific day of the month, from 1 to 28. Values are capped at 28, so a monthly sync runs in every month, including February.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastDayOfMonth
Set this option to run the monthly sync on the last calendar day of each month.
- Parameters:
lastDayOfMonth- Set this option to run the monthly sync on the last calendar day of each month.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastDayOfMonth
Set this option to run the monthly sync on the last calendar day of each month.
This is a convenience method that creates an instance of theLastDayOfMonth.Builderavoiding the need to create one manually viaLastDayOfMonth.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolastDayOfMonth(LastDayOfMonth).- Parameters:
lastDayOfMonth- a consumer that will call methods onLastDayOfMonth.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-