Interface UpdateMaintenanceWindowTargetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateMaintenanceWindowTargetRequest.Builder,
,UpdateMaintenanceWindowTargetRequest> SdkBuilder<UpdateMaintenanceWindowTargetRequest.Builder,
,UpdateMaintenanceWindowTargetRequest> SdkPojo
,SdkRequest.Builder
,SsmRequest.Builder
- Enclosing class:
UpdateMaintenanceWindowTargetRequest
public static interface UpdateMaintenanceWindowTargetRequest.Builder
extends SsmRequest.Builder, SdkPojo, CopyableBuilder<UpdateMaintenanceWindowTargetRequest.Builder,UpdateMaintenanceWindowTargetRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) An optional description for the update.A name for the update.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.ownerInformation
(String ownerInformation) User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.IfTrue
, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request.targets
(Collection<Target> targets) The targets to add or replace.targets
(Consumer<Target.Builder>... targets) The targets to add or replace.The targets to add or replace.The maintenance window ID with which to modify the target.windowTargetId
(String windowTargetId) The target ID to modify.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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
Methods inherited from interface software.amazon.awssdk.services.ssm.model.SsmRequest.Builder
build
-
Method Details
-
windowId
The maintenance window ID with which to modify the target.
- Parameters:
windowId
- The maintenance window ID with which to modify the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
windowTargetId
The target ID to modify.
- Parameters:
windowTargetId
- The target ID to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to add or replace.
- Parameters:
targets
- The targets to add or replace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to add or replace.
- Parameters:
targets
- The targets to add or replace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to add or replace.
This is a convenience method that creates an instance of theTarget.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
User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.
- Parameters:
ownerInformation
- User-provided value that will be included in any Amazon CloudWatch Events events 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
A name for the update.
- Parameters:
name
- A name for the update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
An optional description for the update.
- Parameters:
description
- An optional description for the update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replace
If
True
, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request. Optional fields that aren't specified are set to null.- Parameters:
replace
- IfTrue
, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request. Optional fields that aren't specified are set to null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateMaintenanceWindowTargetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateMaintenanceWindowTargetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-