public static interface GetMaintenanceWindowTaskResponse.Builder extends SSMResponse.Builder, CopyableBuilder<GetMaintenanceWindowTaskResponse.Builder,GetMaintenanceWindowTaskResponse>
build
copy
apply, build
GetMaintenanceWindowTaskResponse.Builder windowId(String windowId)
The retrieved Maintenance Window ID.
windowId
- The retrieved Maintenance Window ID.GetMaintenanceWindowTaskResponse.Builder windowTaskId(String windowTaskId)
The retrieved Maintenance Window task ID.
windowTaskId
- The retrieved Maintenance Window task ID.GetMaintenanceWindowTaskResponse.Builder targets(Collection<Target> targets)
The targets where the task should execute.
targets
- The targets where the task should execute.GetMaintenanceWindowTaskResponse.Builder targets(Target... targets)
The targets where the task should execute.
targets
- The targets where the task should execute.GetMaintenanceWindowTaskResponse.Builder taskArn(String taskArn)
The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the TaskArn is the Systems Manager Document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTION tasks, the value is the state machine ARN.
taskArn
- The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the
TaskArn is the Systems Manager Document name/ARN. For LAMBDA tasks, the value is the function
name/ARN. For STEP_FUNCTION tasks, the value is the state machine ARN.GetMaintenanceWindowTaskResponse.Builder serviceRoleArn(String serviceRoleArn)
The IAM service role to assume during task execution.
serviceRoleArn
- The IAM service role to assume during task execution.GetMaintenanceWindowTaskResponse.Builder taskType(String taskType)
The type of task to execute.
taskType
- The type of task to execute.MaintenanceWindowTaskType
,
MaintenanceWindowTaskType
GetMaintenanceWindowTaskResponse.Builder taskType(MaintenanceWindowTaskType taskType)
The type of task to execute.
taskType
- The type of task to execute.MaintenanceWindowTaskType
,
MaintenanceWindowTaskType
GetMaintenanceWindowTaskResponse.Builder taskParameters(Map<String,MaintenanceWindowTaskParameterValueExpression> taskParameters)
The parameters to pass to the task when it executes.
taskParameters
- The parameters to pass to the task when it executes.GetMaintenanceWindowTaskResponse.Builder taskInvocationParameters(MaintenanceWindowTaskInvocationParameters taskInvocationParameters)
The parameters to pass to the task when it executes.
taskInvocationParameters
- The parameters to pass to the task when it executes.default GetMaintenanceWindowTaskResponse.Builder taskInvocationParameters(Consumer<MaintenanceWindowTaskInvocationParameters.Builder> taskInvocationParameters)
The parameters to pass to the task when it executes.
This is a convenience that creates an instance of theMaintenanceWindowTaskInvocationParameters.Builder
avoiding the need to create one manually via
MaintenanceWindowTaskInvocationParameters.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to
taskInvocationParameters(MaintenanceWindowTaskInvocationParameters)
.taskInvocationParameters
- a consumer that will call methods on MaintenanceWindowTaskInvocationParameters.Builder
taskInvocationParameters(MaintenanceWindowTaskInvocationParameters)
GetMaintenanceWindowTaskResponse.Builder priority(Integer priority)
The priority of the task when it executes. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
priority
- The priority of the task when it executes. The lower the number, the higher the priority. Tasks that
have the same priority are scheduled in parallel.GetMaintenanceWindowTaskResponse.Builder maxConcurrency(String maxConcurrency)
The maximum number of targets allowed to run this task in parallel.
maxConcurrency
- The maximum number of targets allowed to run this task in parallel.GetMaintenanceWindowTaskResponse.Builder maxErrors(String maxErrors)
The maximum number of errors allowed before the task stops being scheduled.
maxErrors
- The maximum number of errors allowed before the task stops being scheduled.GetMaintenanceWindowTaskResponse.Builder loggingInfo(LoggingInfo loggingInfo)
The location in Amazon S3 where the task results are logged.
loggingInfo
- The location in Amazon S3 where the task results are logged.default GetMaintenanceWindowTaskResponse.Builder loggingInfo(Consumer<LoggingInfo.Builder> loggingInfo)
The location in Amazon S3 where the task results are logged.
This is a convenience that creates an instance of theLoggingInfo.Builder
avoiding the need to create
one manually via LoggingInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to loggingInfo(LoggingInfo)
.loggingInfo
- a consumer that will call methods on LoggingInfo.Builder
loggingInfo(LoggingInfo)
GetMaintenanceWindowTaskResponse.Builder name(String name)
The retrieved task name.
name
- The retrieved task name.GetMaintenanceWindowTaskResponse.Builder description(String description)
The retrieved task description.
description
- The retrieved task description.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.