Interface MaintenanceWindowTarget.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MaintenanceWindowTarget.Builder,
,MaintenanceWindowTarget> SdkBuilder<MaintenanceWindowTarget.Builder,
,MaintenanceWindowTarget> SdkPojo
- Enclosing class:
MaintenanceWindowTarget
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) A description for the target.The name for the maintenance window target.ownerInformation
(String ownerInformation) A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.resourceType
(String resourceType) The type of target that is being registered with the maintenance window.resourceType
(MaintenanceWindowResourceType resourceType) The type of target that is being registered with the maintenance window.targets
(Collection<Target> targets) The targets, either managed nodes or tags.targets
(Consumer<Target.Builder>... targets) The targets, either managed nodes or tags.The targets, either managed nodes or tags.The ID of the maintenance window to register the target with.windowTargetId
(String windowTargetId) The ID of the target.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
-
windowId
The ID of the maintenance window to register the target with.
- Parameters:
windowId
- The ID of the maintenance window to register the target with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
windowTargetId
The ID of the target.
- Parameters:
windowTargetId
- The ID of the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of target that is being registered with the maintenance window.
- Parameters:
resourceType
- The type of target that is being registered with the maintenance window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of target that is being registered with the maintenance window.
- Parameters:
resourceType
- The type of target that is being registered with the maintenance window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targets
The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.- Parameters:
targets
- The targets, either managed nodes or tags.Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.- Parameters:
targets
- The targets, either managed nodes or tags.Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.Target.Builder
avoiding the need to create one manually viaTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargets(List<Target>)
.- Parameters:
targets
- a consumer that will call methods onTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ownerInformation
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.
- Parameters:
ownerInformation
- A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name for the maintenance window target.
- Parameters:
name
- The name for the maintenance window target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description for the target.
- Parameters:
description
- A description for the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-