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