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.BuilderopenHours(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.BuilderrestrictedPeriods(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
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
-
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.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:
-
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.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:
-