Interface TimeWindow.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TimeWindow.Builder,
,TimeWindow> SdkBuilder<TimeWindow.Builder,
,TimeWindow> SdkPojo
- Enclosing class:
TimeWindow
@Mutable
@NotThreadSafe
public static interface TimeWindow.Builder
extends SdkPojo, CopyableBuilder<TimeWindow.Builder,TimeWindow>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TimeWindow.Builder
openHours
(Consumer<OpenHours.Builder> openHours) Sets the value of the OpenHours property for this object.Sets the value of the OpenHours property for this object.default TimeWindow.Builder
restrictedPeriods
(Consumer<RestrictedPeriods.Builder> restrictedPeriods) Sets the value of the RestrictedPeriods property for this object.restrictedPeriods
(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 Details
-
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
Sets the value of the OpenHours property for this object. This is a convenience method that creates an instance of theOpenHours.Builder
avoiding the need to create one manually viaOpenHours.builder()
.When the
Consumer
completes,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:
-
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
Sets the value of the RestrictedPeriods property for this object. This is a convenience method that creates an instance of theRestrictedPeriods.Builder
avoiding the need to create one manually viaRestrictedPeriods.builder()
.When the
Consumer
completes,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:
-