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 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

      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:
    • 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>.

      This is a convenience method that creates an instance of the Target.Builder avoiding the need to create one manually via Target.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to targets(List<Target>).

      Parameters:
      targets - a consumer that will call methods on Target.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.