Interface RestrictedPeriods.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RestrictedPeriods.Builder,
,RestrictedPeriods> SdkBuilder<RestrictedPeriods.Builder,
,RestrictedPeriods> SdkPojo
- Enclosing class:
RestrictedPeriods
@Mutable
@NotThreadSafe
public static interface RestrictedPeriods.Builder
extends SdkPojo, CopyableBuilder<RestrictedPeriods.Builder,RestrictedPeriods>
-
Method Summary
Modifier and TypeMethodDescriptionrestrictedPeriodList
(Collection<RestrictedPeriod> restrictedPeriodList) Sets the value of the RestrictedPeriodList property for this object.restrictedPeriodList
(Consumer<RestrictedPeriod.Builder>... restrictedPeriodList) Sets the value of the RestrictedPeriodList property for this object.restrictedPeriodList
(RestrictedPeriod... restrictedPeriodList) Sets the value of the RestrictedPeriodList 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
-
restrictedPeriodList
Sets the value of the RestrictedPeriodList property for this object.- Parameters:
restrictedPeriodList
- The new value for the RestrictedPeriodList property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictedPeriodList
Sets the value of the RestrictedPeriodList property for this object.- Parameters:
restrictedPeriodList
- The new value for the RestrictedPeriodList property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictedPeriodList
RestrictedPeriods.Builder restrictedPeriodList(Consumer<RestrictedPeriod.Builder>... restrictedPeriodList) Sets the value of the RestrictedPeriodList property for this object. This is a convenience method that creates an instance of theRestrictedPeriod.Builder
avoiding the need to create one manually viaRestrictedPeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torestrictedPeriodList(List<RestrictedPeriod>)
.- Parameters:
restrictedPeriodList
- a consumer that will call methods onRestrictedPeriod.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-