Class CfnMaintenanceWindowTargetProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTargetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMaintenanceWindowTargetProps>
- Enclosing interface:
CfnMaintenanceWindowTargetProps
@Stability(Stable)
public static final class CfnMaintenanceWindowTargetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMaintenanceWindowTargetProps>
A builder for
CfnMaintenanceWindowTargetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnMaintenanceWindowTargetProps.getDescription()
Sets the value ofCfnMaintenanceWindowTargetProps.getName()
ownerInformation
(String ownerInformation) Sets the value ofCfnMaintenanceWindowTargetProps.getOwnerInformation()
resourceType
(String resourceType) Sets the value ofCfnMaintenanceWindowTargetProps.getResourceType()
Sets the value ofCfnMaintenanceWindowTargetProps.getTargets()
targets
(IResolvable targets) Sets the value ofCfnMaintenanceWindowTargetProps.getTargets()
Sets the value ofCfnMaintenanceWindowTargetProps.getWindowId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
Sets the value ofCfnMaintenanceWindowTargetProps.getResourceType()
- Parameters:
resourceType
- The type of target that is being registered with the maintenance window. This parameter is required.- Returns:
this
-
targets
Sets the value ofCfnMaintenanceWindowTargetProps.getTargets()
- Parameters:
targets
- The targets to register with the maintenance window. This parameter is required. In other words, the instances to run commands on when the maintenance window runs.You must specify targets by using the
WindowTargetIds
parameter.- Returns:
this
-
targets
@Stability(Stable) public CfnMaintenanceWindowTargetProps.Builder targets(List<? extends Object> targets) Sets the value ofCfnMaintenanceWindowTargetProps.getTargets()
- Parameters:
targets
- The targets to register with the maintenance window. This parameter is required. In other words, the instances to run commands on when the maintenance window runs.You must specify targets by using the
WindowTargetIds
parameter.- Returns:
this
-
windowId
Sets the value ofCfnMaintenanceWindowTargetProps.getWindowId()
- Parameters:
windowId
- The ID of the maintenance window to register the target with. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnMaintenanceWindowTargetProps.getDescription()
- Parameters:
description
- A description for the target.- Returns:
this
-
name
Sets the value ofCfnMaintenanceWindowTargetProps.getName()
- Parameters:
name
- The name for the maintenance window target.- Returns:
this
-
ownerInformation
@Stability(Stable) public CfnMaintenanceWindowTargetProps.Builder ownerInformation(String ownerInformation) Sets the value ofCfnMaintenanceWindowTargetProps.getOwnerInformation()
- 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:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMaintenanceWindowTargetProps>
- Returns:
- a new instance of
CfnMaintenanceWindowTargetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-