Interface GetMaintenanceWindowTaskResponse.Builder

    • Method Detail

      • windowId

        GetMaintenanceWindowTaskResponse.Builder windowId​(String windowId)

        The retrieved maintenance window ID.

        Parameters:
        windowId - The retrieved maintenance window ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • windowTaskId

        GetMaintenanceWindowTaskResponse.Builder windowTaskId​(String windowTaskId)

        The retrieved maintenance window task ID.

        Parameters:
        windowTaskId - The retrieved maintenance window task ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targets

        GetMaintenanceWindowTaskResponse.Builder targets​(Collection<Target> targets)

        The targets where the task should run.

        Parameters:
        targets - The targets where the task should run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targets

        GetMaintenanceWindowTaskResponse.Builder targets​(Target... targets)

        The targets where the task should run.

        Parameters:
        targets - The targets where the task should run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • taskArn

        GetMaintenanceWindowTaskResponse.Builder taskArn​(String taskArn)

        The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value is the state machine ARN.

        Parameters:
        taskArn - The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value is the state machine ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceRoleArn

        GetMaintenanceWindowTaskResponse.Builder serviceRoleArn​(String serviceRoleArn)

        The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.

        Parameters:
        serviceRoleArn - The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • taskParameters

        GetMaintenanceWindowTaskResponse.Builder taskParameters​(Map<String,​MaintenanceWindowTaskParameterValueExpression> taskParameters)

        The parameters to pass to the task when it runs.

        TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

        Parameters:
        taskParameters - The parameters to pass to the task when it runs.

        TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • priority

        GetMaintenanceWindowTaskResponse.Builder priority​(Integer priority)

        The priority of the task when it runs. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

        Parameters:
        priority - The priority of the task when it runs. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxConcurrency

        GetMaintenanceWindowTaskResponse.Builder maxConcurrency​(String maxConcurrency)

        The maximum number of targets allowed to run this task in parallel.

        For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

        Parameters:
        maxConcurrency - The maximum number of targets allowed to run this task in parallel.

        For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxErrors

        GetMaintenanceWindowTaskResponse.Builder maxErrors​(String maxErrors)

        The maximum number of errors allowed before the task stops being scheduled.

        For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

        Parameters:
        maxErrors - The maximum number of errors allowed before the task stops being scheduled.

        For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • loggingInfo

        GetMaintenanceWindowTaskResponse.Builder loggingInfo​(LoggingInfo loggingInfo)

        The location in Amazon Simple Storage Service (Amazon S3) where the task results are logged.

        LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

        Parameters:
        loggingInfo - The location in Amazon Simple Storage Service (Amazon S3) where the task results are logged.

        LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        GetMaintenanceWindowTaskResponse.Builder description​(String description)

        The retrieved task description.

        Parameters:
        description - The retrieved task description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cutoffBehavior

        GetMaintenanceWindowTaskResponse.Builder cutoffBehavior​(String cutoffBehavior)

        The action to take on tasks when the maintenance window cutoff time is reached. CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently running task invocations continue, but no new task invocations are started. For Run Command tasks, CANCEL_TASK means the system attempts to stop the task by sending a CancelCommand operation.

        Parameters:
        cutoffBehavior - The action to take on tasks when the maintenance window cutoff time is reached. CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently running task invocations continue, but no new task invocations are started. For Run Command tasks, CANCEL_TASK means the system attempts to stop the task by sending a CancelCommand operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MaintenanceWindowTaskCutoffBehavior, MaintenanceWindowTaskCutoffBehavior
      • cutoffBehavior

        GetMaintenanceWindowTaskResponse.Builder cutoffBehavior​(MaintenanceWindowTaskCutoffBehavior cutoffBehavior)

        The action to take on tasks when the maintenance window cutoff time is reached. CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently running task invocations continue, but no new task invocations are started. For Run Command tasks, CANCEL_TASK means the system attempts to stop the task by sending a CancelCommand operation.

        Parameters:
        cutoffBehavior - The action to take on tasks when the maintenance window cutoff time is reached. CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently running task invocations continue, but no new task invocations are started. For Run Command tasks, CANCEL_TASK means the system attempts to stop the task by sending a CancelCommand operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MaintenanceWindowTaskCutoffBehavior, MaintenanceWindowTaskCutoffBehavior
      • alarmConfiguration

        GetMaintenanceWindowTaskResponse.Builder alarmConfiguration​(AlarmConfiguration alarmConfiguration)

        The details for the CloudWatch alarm you applied to your maintenance window task.

        Parameters:
        alarmConfiguration - The details for the CloudWatch alarm you applied to your maintenance window task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.