@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MaintenanceWindowTask extends Object implements Serializable, Cloneable, StructuredPojo
Information about a task defined for a Maintenance Window.
Constructor and Description |
---|
MaintenanceWindowTask() |
Modifier and Type | Method and Description |
---|---|
MaintenanceWindowTask |
addTaskParametersEntry(String key,
MaintenanceWindowTaskParameterValueExpression value) |
MaintenanceWindowTask |
clearTaskParametersEntries()
Removes all the entries added into TaskParameters.
|
MaintenanceWindowTask |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the task.
|
LoggingInfo |
getLoggingInfo()
Information about an Amazon S3 bucket to write task-level logs to.
|
String |
getMaxConcurrency()
The maximum number of targets this task can be run for in parallel.
|
String |
getMaxErrors()
The maximum number of errors allowed before this task stops being scheduled.
|
String |
getName()
The task name.
|
Integer |
getPriority()
The priority of the task in the Maintenance Window.
|
String |
getServiceRoleArn()
The role that should be assumed when executing the task
|
List<Target> |
getTargets()
The targets (either instances or tags).
|
String |
getTaskArn()
The resource that the task uses during execution.
|
Map<String,MaintenanceWindowTaskParameterValueExpression> |
getTaskParameters()
The parameters that should be passed to the task when it is executed.
|
String |
getType()
The type of task.
|
String |
getWindowId()
The Maintenance Window ID where the task is registered.
|
String |
getWindowTaskId()
The task ID.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
A description of the task.
|
void |
setLoggingInfo(LoggingInfo loggingInfo)
Information about an Amazon S3 bucket to write task-level logs to.
|
void |
setMaxConcurrency(String maxConcurrency)
The maximum number of targets this task can be run for in parallel.
|
void |
setMaxErrors(String maxErrors)
The maximum number of errors allowed before this task stops being scheduled.
|
void |
setName(String name)
The task name.
|
void |
setPriority(Integer priority)
The priority of the task in the Maintenance Window.
|
void |
setServiceRoleArn(String serviceRoleArn)
The role that should be assumed when executing the task
|
void |
setTargets(Collection<Target> targets)
The targets (either instances or tags).
|
void |
setTaskArn(String taskArn)
The resource that the task uses during execution.
|
void |
setTaskParameters(Map<String,MaintenanceWindowTaskParameterValueExpression> taskParameters)
The parameters that should be passed to the task when it is executed.
|
void |
setType(MaintenanceWindowTaskType type)
The type of task.
|
void |
setType(String type)
The type of task.
|
void |
setWindowId(String windowId)
The Maintenance Window ID where the task is registered.
|
void |
setWindowTaskId(String windowTaskId)
The task ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MaintenanceWindowTask |
withDescription(String description)
A description of the task.
|
MaintenanceWindowTask |
withLoggingInfo(LoggingInfo loggingInfo)
Information about an Amazon S3 bucket to write task-level logs to.
|
MaintenanceWindowTask |
withMaxConcurrency(String maxConcurrency)
The maximum number of targets this task can be run for in parallel.
|
MaintenanceWindowTask |
withMaxErrors(String maxErrors)
The maximum number of errors allowed before this task stops being scheduled.
|
MaintenanceWindowTask |
withName(String name)
The task name.
|
MaintenanceWindowTask |
withPriority(Integer priority)
The priority of the task in the Maintenance Window.
|
MaintenanceWindowTask |
withServiceRoleArn(String serviceRoleArn)
The role that should be assumed when executing the task
|
MaintenanceWindowTask |
withTargets(Collection<Target> targets)
The targets (either instances or tags).
|
MaintenanceWindowTask |
withTargets(Target... targets)
The targets (either instances or tags).
|
MaintenanceWindowTask |
withTaskArn(String taskArn)
The resource that the task uses during execution.
|
MaintenanceWindowTask |
withTaskParameters(Map<String,MaintenanceWindowTaskParameterValueExpression> taskParameters)
The parameters that should be passed to the task when it is executed.
|
MaintenanceWindowTask |
withType(MaintenanceWindowTaskType type)
The type of task.
|
MaintenanceWindowTask |
withType(String type)
The type of task.
|
MaintenanceWindowTask |
withWindowId(String windowId)
The Maintenance Window ID where the task is registered.
|
MaintenanceWindowTask |
withWindowTaskId(String windowTaskId)
The task ID.
|
public void setWindowId(String windowId)
The Maintenance Window ID where the task is registered.
windowId
- The Maintenance Window ID where the task is registered.public String getWindowId()
The Maintenance Window ID where the task is registered.
public MaintenanceWindowTask withWindowId(String windowId)
The Maintenance Window ID where the task is registered.
windowId
- The Maintenance Window ID where the task is registered.public void setWindowTaskId(String windowTaskId)
The task ID.
windowTaskId
- The task ID.public String getWindowTaskId()
The task ID.
public MaintenanceWindowTask withWindowTaskId(String windowTaskId)
The task ID.
windowTaskId
- The task ID.public void setTaskArn(String taskArn)
The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types, TaskArn
is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function name or ARN. For STEP_FUNCTION
tasks, it's the state machine ARN.
taskArn
- The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types,
TaskArn
is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function name
or ARN. For STEP_FUNCTION tasks, it's the state machine ARN.public String getTaskArn()
The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types, TaskArn
is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function name or ARN. For STEP_FUNCTION
tasks, it's the state machine ARN.
TaskArn
is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function
name or ARN. For STEP_FUNCTION tasks, it's the state machine ARN.public MaintenanceWindowTask withTaskArn(String taskArn)
The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types, TaskArn
is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function name or ARN. For STEP_FUNCTION
tasks, it's the state machine ARN.
taskArn
- The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types,
TaskArn
is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function name
or ARN. For STEP_FUNCTION tasks, it's the state machine ARN.public void setType(String type)
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
type
- The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.MaintenanceWindowTaskType
public String getType()
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
MaintenanceWindowTaskType
public MaintenanceWindowTask withType(String type)
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
type
- The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.MaintenanceWindowTaskType
public void setType(MaintenanceWindowTaskType type)
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
type
- The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.MaintenanceWindowTaskType
public MaintenanceWindowTask withType(MaintenanceWindowTaskType type)
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
type
- The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.MaintenanceWindowTaskType
public List<Target> getTargets()
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
public void setTargets(Collection<Target> targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
targets
- The targets (either instances or tags). Instances are specified using
Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag
name>,Values=<tag value>.public MaintenanceWindowTask withTargets(Target... targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- The targets (either instances or tags). Instances are specified using
Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag
name>,Values=<tag value>.public MaintenanceWindowTask withTargets(Collection<Target> targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
targets
- The targets (either instances or tags). Instances are specified using
Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag
name>,Values=<tag value>.public Map<String,MaintenanceWindowTaskParameterValueExpression> getTaskParameters()
The parameters that should be passed to the task when it is executed.
public void setTaskParameters(Map<String,MaintenanceWindowTaskParameterValueExpression> taskParameters)
The parameters that should be passed to the task when it is executed.
taskParameters
- The parameters that should be passed to the task when it is executed.public MaintenanceWindowTask withTaskParameters(Map<String,MaintenanceWindowTaskParameterValueExpression> taskParameters)
The parameters that should be passed to the task when it is executed.
taskParameters
- The parameters that should be passed to the task when it is executed.public MaintenanceWindowTask addTaskParametersEntry(String key, MaintenanceWindowTaskParameterValueExpression value)
public MaintenanceWindowTask clearTaskParametersEntries()
public void setPriority(Integer priority)
The priority of the task in the Maintenance Window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
priority
- The priority of the task in the Maintenance Window. The lower the number, the higher the priority. Tasks
that have the same priority are scheduled in parallel.public Integer getPriority()
The priority of the task in the Maintenance Window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
public MaintenanceWindowTask withPriority(Integer priority)
The priority of the task in the Maintenance Window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
priority
- The priority of the task in the Maintenance Window. The lower the number, the higher the priority. Tasks
that have the same priority are scheduled in parallel.public void setLoggingInfo(LoggingInfo loggingInfo)
Information about an Amazon S3 bucket to write task-level logs to.
loggingInfo
- Information about an Amazon S3 bucket to write task-level logs to.public LoggingInfo getLoggingInfo()
Information about an Amazon S3 bucket to write task-level logs to.
public MaintenanceWindowTask withLoggingInfo(LoggingInfo loggingInfo)
Information about an Amazon S3 bucket to write task-level logs to.
loggingInfo
- Information about an Amazon S3 bucket to write task-level logs to.public void setServiceRoleArn(String serviceRoleArn)
The role that should be assumed when executing the task
serviceRoleArn
- The role that should be assumed when executing the taskpublic String getServiceRoleArn()
The role that should be assumed when executing the task
public MaintenanceWindowTask withServiceRoleArn(String serviceRoleArn)
The role that should be assumed when executing the task
serviceRoleArn
- The role that should be assumed when executing the taskpublic void setMaxConcurrency(String maxConcurrency)
The maximum number of targets this task can be run for in parallel.
maxConcurrency
- The maximum number of targets this task can be run for in parallel.public String getMaxConcurrency()
The maximum number of targets this task can be run for in parallel.
public MaintenanceWindowTask withMaxConcurrency(String maxConcurrency)
The maximum number of targets this task can be run for in parallel.
maxConcurrency
- The maximum number of targets this task can be run for in parallel.public void setMaxErrors(String maxErrors)
The maximum number of errors allowed before this task stops being scheduled.
maxErrors
- The maximum number of errors allowed before this task stops being scheduled.public String getMaxErrors()
The maximum number of errors allowed before this task stops being scheduled.
public MaintenanceWindowTask withMaxErrors(String maxErrors)
The maximum number of errors allowed before this task stops being scheduled.
maxErrors
- The maximum number of errors allowed before this task stops being scheduled.public void setName(String name)
The task name.
name
- The task name.public String getName()
The task name.
public MaintenanceWindowTask withName(String name)
The task name.
name
- The task name.public void setDescription(String description)
A description of the task.
description
- A description of the task.public String getDescription()
A description of the task.
public MaintenanceWindowTask withDescription(String description)
A description of the task.
description
- A description of the task.public String toString()
toString
in class Object
Object.toString()
public MaintenanceWindowTask clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.