public static interface GetMaintenanceWindowTaskResponse.Builder extends SsmResponse.Builder, SdkPojo, CopyableBuilder<GetMaintenanceWindowTaskResponse.Builder,GetMaintenanceWindowTaskResponse>
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, 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 targets(Consumer<Target.Builder>... targets)
The targets where the task should execute.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #targets(List)
.targets
- a consumer that will call methods on List.Builder
#targets(List)
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
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.
taskParameters
- The parameters to pass to the task when it executes.
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.
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
has been deprecated. To specify an S3 bucket to contain logs, instead use the
OutputS3BucketName
and OutputS3KeyPrefix
options in the
TaskInvocationParameters
structure. For information about how Systems Manager handles these
options for the supported Maintenance Window task types, see
MaintenanceWindowTaskInvocationParameters.
loggingInfo
- The location in Amazon S3 where the task results are logged.
LoggingInfo
has been deprecated. To specify an S3 bucket to contain logs, instead use the
OutputS3BucketName
and OutputS3KeyPrefix
options in the
TaskInvocationParameters
structure. For information about how Systems Manager handles
these options for the supported Maintenance Window task types, see
MaintenanceWindowTaskInvocationParameters.
default GetMaintenanceWindowTaskResponse.Builder loggingInfo(Consumer<LoggingInfo.Builder> loggingInfo)
The location in Amazon S3 where the task results are logged.
LoggingInfo
has been deprecated. To specify an S3 bucket to contain logs, instead use the
OutputS3BucketName
and OutputS3KeyPrefix
options in the
TaskInvocationParameters
structure. For information about how Systems Manager handles these
options for the supported Maintenance Window task types, see
MaintenanceWindowTaskInvocationParameters.
LoggingInfo.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.