Interface InstanceEventWindow.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceEventWindow.Builder,
,InstanceEventWindow> SdkBuilder<InstanceEventWindow.Builder,
,InstanceEventWindow> SdkPojo
- Enclosing class:
InstanceEventWindow
-
Method Summary
Modifier and TypeMethodDescriptiondefault InstanceEventWindow.Builder
associationTarget
(Consumer<InstanceEventWindowAssociationTarget.Builder> associationTarget) One or more targets associated with the event window.associationTarget
(InstanceEventWindowAssociationTarget associationTarget) One or more targets associated with the event window.cronExpression
(String cronExpression) The cron expression defined for the event window.instanceEventWindowId
(String instanceEventWindowId) The ID of the event window.The name of the event window.The current state of the event window.state
(InstanceEventWindowState state) The current state of the event window.tags
(Collection<Tag> tags) The instance tags associated with the event window.tags
(Consumer<Tag.Builder>... tags) The instance tags associated with the event window.The instance tags associated with the event window.timeRanges
(Collection<InstanceEventWindowTimeRange> timeRanges) One or more time ranges defined for the event window.timeRanges
(Consumer<InstanceEventWindowTimeRange.Builder>... timeRanges) One or more time ranges defined for the event window.timeRanges
(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 Details
-
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
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
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.Builder
avoiding the need to create one manually viaInstanceEventWindowTimeRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeRanges(List<InstanceEventWindowTimeRange>)
.- 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:
-
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
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.Builder
avoiding the need to create one manually viaInstanceEventWindowAssociationTarget.builder()
.When the
Consumer
completes,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:
-
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:
-
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:
-
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
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
The instance tags associated with the event window.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- 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:
-