Interface TimeWindow.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TimeWindow.Builder,TimeWindow>,SdkBuilder<TimeWindow.Builder,TimeWindow>,SdkPojo
- Enclosing class:
- TimeWindow
public static interface TimeWindow.Builder extends SdkPojo, CopyableBuilder<TimeWindow.Builder,TimeWindow>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TimeWindow.BuilderopenHours(Consumer<OpenHours.Builder> openHours)Sets the value of the OpenHours property for this object.TimeWindow.BuilderopenHours(OpenHours openHours)Sets the value of the OpenHours property for this object.default TimeWindow.BuilderrestrictedPeriods(Consumer<RestrictedPeriods.Builder> restrictedPeriods)Sets the value of the RestrictedPeriods property for this object.TimeWindow.BuilderrestrictedPeriods(RestrictedPeriods restrictedPeriods)Sets the value of the RestrictedPeriods property for this object.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
openHours
TimeWindow.Builder openHours(OpenHours openHours)
Sets the value of the OpenHours property for this object.- Parameters:
openHours- The new value for the OpenHours property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
openHours
default TimeWindow.Builder openHours(Consumer<OpenHours.Builder> openHours)
Sets the value of the OpenHours property for this object. This is a convenience method that creates an instance of theOpenHours.Builderavoiding the need to create one manually viaOpenHours.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toopenHours(OpenHours).- Parameters:
openHours- a consumer that will call methods onOpenHours.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
openHours(OpenHours)
-
restrictedPeriods
TimeWindow.Builder restrictedPeriods(RestrictedPeriods restrictedPeriods)
Sets the value of the RestrictedPeriods property for this object.- Parameters:
restrictedPeriods- The new value for the RestrictedPeriods property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictedPeriods
default TimeWindow.Builder restrictedPeriods(Consumer<RestrictedPeriods.Builder> restrictedPeriods)
Sets the value of the RestrictedPeriods property for this object. This is a convenience method that creates an instance of theRestrictedPeriods.Builderavoiding the need to create one manually viaRestrictedPeriods.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torestrictedPeriods(RestrictedPeriods).- Parameters:
restrictedPeriods- a consumer that will call methods onRestrictedPeriods.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
restrictedPeriods(RestrictedPeriods)
-
-