Interface InstanceEventWindow.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceEventWindow.Builder,InstanceEventWindow>,SdkBuilder<InstanceEventWindow.Builder,InstanceEventWindow>,SdkPojo
- Enclosing class:
- InstanceEventWindow
public static interface InstanceEventWindow.Builder extends SdkPojo, CopyableBuilder<InstanceEventWindow.Builder,InstanceEventWindow>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InstanceEventWindow.BuilderassociationTarget(Consumer<InstanceEventWindowAssociationTarget.Builder> associationTarget)One or more targets associated with the event window.InstanceEventWindow.BuilderassociationTarget(InstanceEventWindowAssociationTarget associationTarget)One or more targets associated with the event window.InstanceEventWindow.BuildercronExpression(String cronExpression)The cron expression defined for the event window.InstanceEventWindow.BuilderinstanceEventWindowId(String instanceEventWindowId)The ID of the event window.InstanceEventWindow.Buildername(String name)The name of the event window.InstanceEventWindow.Builderstate(String state)The current state of the event window.InstanceEventWindow.Builderstate(InstanceEventWindowState state)The current state of the event window.InstanceEventWindow.Buildertags(Collection<Tag> tags)The instance tags associated with the event window.InstanceEventWindow.Buildertags(Consumer<Tag.Builder>... tags)The instance tags associated with the event window.InstanceEventWindow.Buildertags(Tag... tags)The instance tags associated with the event window.InstanceEventWindow.BuildertimeRanges(Collection<InstanceEventWindowTimeRange> timeRanges)One or more time ranges defined for the event window.InstanceEventWindow.BuildertimeRanges(Consumer<InstanceEventWindowTimeRange.Builder>... timeRanges)One or more time ranges defined for the event window.InstanceEventWindow.BuildertimeRanges(InstanceEventWindowTimeRange... timeRanges)One or more time ranges defined for the event window.-
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, sdkFields
-
-
-
-
Method Detail
-
instanceEventWindowId
InstanceEventWindow.Builder instanceEventWindowId(String instanceEventWindowId)
The ID of the event window.
- Parameters:
instanceEventWindowId- The ID of the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeRanges
InstanceEventWindow.Builder timeRanges(Collection<InstanceEventWindowTimeRange> timeRanges)
One or more time ranges defined for the event window.
- Parameters:
timeRanges- One or more time ranges defined for the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeRanges
InstanceEventWindow.Builder timeRanges(InstanceEventWindowTimeRange... timeRanges)
One or more time ranges defined for the event window.
- Parameters:
timeRanges- One or more time ranges defined for the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeRanges
InstanceEventWindow.Builder timeRanges(Consumer<InstanceEventWindowTimeRange.Builder>... timeRanges)
One or more time ranges defined for the event window.
This is a convenience method that creates an instance of theInstanceEventWindowTimeRange.Builderavoiding the need to create one manually viaInstanceEventWindowTimeRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#timeRanges(List.) - Parameters:
timeRanges- a consumer that will call methods onInstanceEventWindowTimeRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#timeRanges(java.util.Collection)
-
name
InstanceEventWindow.Builder name(String name)
The name of the event window.
- Parameters:
name- The name of the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cronExpression
InstanceEventWindow.Builder cronExpression(String cronExpression)
The cron expression defined for the event window.
- Parameters:
cronExpression- The cron expression defined for the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associationTarget
InstanceEventWindow.Builder associationTarget(InstanceEventWindowAssociationTarget associationTarget)
One or more targets associated with the event window.
- Parameters:
associationTarget- One or more targets associated with the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associationTarget
default InstanceEventWindow.Builder associationTarget(Consumer<InstanceEventWindowAssociationTarget.Builder> associationTarget)
One or more targets associated with the event window.
This is a convenience method that creates an instance of theInstanceEventWindowAssociationTarget.Builderavoiding the need to create one manually viaInstanceEventWindowAssociationTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassociationTarget(InstanceEventWindowAssociationTarget).- Parameters:
associationTarget- a consumer that will call methods onInstanceEventWindowAssociationTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
associationTarget(InstanceEventWindowAssociationTarget)
-
state
InstanceEventWindow.Builder state(String state)
The current state of the event window.
- Parameters:
state- The current state of the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceEventWindowState,InstanceEventWindowState
-
state
InstanceEventWindow.Builder state(InstanceEventWindowState state)
The current state of the event window.
- Parameters:
state- The current state of the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceEventWindowState,InstanceEventWindowState
-
tags
InstanceEventWindow.Builder tags(Collection<Tag> tags)
The instance tags associated with the event window.
- Parameters:
tags- The instance tags associated with the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
InstanceEventWindow.Builder tags(Tag... tags)
The instance tags associated with the event window.
- Parameters:
tags- The instance tags associated with the event window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
InstanceEventWindow.Builder tags(Consumer<Tag.Builder>... tags)
The instance tags associated with the event window.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
-