Interface MaintenanceWindowTarget.Builder

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

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

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