Interface MaintenanceWindowTarget.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MaintenanceWindowTarget.Builder,MaintenanceWindowTarget>,SdkBuilder<MaintenanceWindowTarget.Builder,MaintenanceWindowTarget>,SdkPojo
- Enclosing class:
- MaintenanceWindowTarget
public static interface MaintenanceWindowTarget.Builder extends SdkPojo, CopyableBuilder<MaintenanceWindowTarget.Builder,MaintenanceWindowTarget>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MaintenanceWindowTarget.Builderdescription(String description)A description for the target.MaintenanceWindowTarget.Buildername(String name)The name for the maintenance window target.MaintenanceWindowTarget.BuilderownerInformation(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.MaintenanceWindowTarget.BuilderresourceType(String resourceType)The type of target that is being registered with the maintenance window.MaintenanceWindowTarget.BuilderresourceType(MaintenanceWindowResourceType resourceType)The type of target that is being registered with the maintenance window.MaintenanceWindowTarget.Buildertargets(Collection<Target> targets)The targets, either managed nodes or tags.MaintenanceWindowTarget.Buildertargets(Consumer<Target.Builder>... targets)The targets, either managed nodes or tags.MaintenanceWindowTarget.Buildertargets(Target... targets)The targets, either managed nodes or tags.MaintenanceWindowTarget.BuilderwindowId(String windowId)The ID of the maintenance window to register the target with.MaintenanceWindowTarget.BuilderwindowTargetId(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
windowId
MaintenanceWindowTarget.Builder windowId(String 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
MaintenanceWindowTarget.Builder windowTargetId(String 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
MaintenanceWindowTarget.Builder resourceType(String 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:
MaintenanceWindowResourceType,MaintenanceWindowResourceType
-
resourceType
MaintenanceWindowTarget.Builder resourceType(MaintenanceWindowResourceType 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:
MaintenanceWindowResourceType,MaintenanceWindowResourceType
-
targets
MaintenanceWindowTarget.Builder targets(Collection<Target> 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
MaintenanceWindowTarget.Builder targets(Target... 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
MaintenanceWindowTarget.Builder targets(Consumer<Target.Builder>... 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:
This is a convenience method that creates an instance of theKey=<tag name>,Values=<tag value>.Target.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#targets(List.) - 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:
#targets(java.util.Collection)
-
ownerInformation
MaintenanceWindowTarget.Builder 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.
- 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
MaintenanceWindowTarget.Builder name(String 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
MaintenanceWindowTarget.Builder description(String 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.
-
-