@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MaintenanceWindowTask extends Object implements Serializable, Cloneable
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) |
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.
|
Integer |
getPriority()
The priority of the task in the Maintenance Window, the lower the number the higher the priority.
|
String |
getServiceRoleArn()
The role that should be assumed when executing the task
|
List<Target> |
getTargets()
The targets (either instances or tags).
|
String |
getTaskArn()
The ARN of the task to execute.
|
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 |
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 |
setPriority(Integer priority)
The priority of the task in the Maintenance Window, the lower the number the higher the priority.
|
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 ARN of the task to execute.
|
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 |
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 |
withPriority(Integer priority)
The priority of the task in the Maintenance Window, the lower the number the higher the priority.
|
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 ARN of the task to execute.
|
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 ARN of the task to execute.
taskArn
- The ARN of the task to execute.public String getTaskArn()
The ARN of the task to execute.
public MaintenanceWindowTask withTaskArn(String taskArn)
The ARN of the task to execute.
taskArn
- The ARN of the task to execute.public void setType(String type)
The type of task.
type
- The type of task.MaintenanceWindowTaskType
public String getType()
The type of task.
MaintenanceWindowTaskType
public MaintenanceWindowTask withType(String type)
The type of task.
type
- The type of task.MaintenanceWindowTaskType
public void setType(MaintenanceWindowTaskType type)
The type of task.
type
- The type of task.MaintenanceWindowTaskType
public MaintenanceWindowTask withType(MaintenanceWindowTaskType type)
The type of task.
type
- The type of task.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 in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
priority
- The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in
a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in
parallel.public Integer getPriority()
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority 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 in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
priority
- The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in
a Maintenance Window are scheduled in priority order with tasks that have the same priority 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 String toString()
toString
in class Object
Object.toString()
public MaintenanceWindowTask clone()
Copyright © 2017. All rights reserved.