@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateMaintenanceWindowRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateMaintenanceWindowRequest() |
Modifier and Type | Method and Description |
---|---|
CreateMaintenanceWindowRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getAllowUnassociatedTargets()
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those
instances as targets.
|
String |
getClientToken()
User-provided idempotency token.
|
Integer |
getCutoff()
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for
execution.
|
String |
getDescription()
An optional description for the Maintenance Window.
|
Integer |
getDuration()
The duration of the Maintenance Window in hours.
|
String |
getName()
The name of the Maintenance Window.
|
String |
getSchedule()
The schedule of the Maintenance Window in the form of a cron or rate expression.
|
int |
hashCode() |
Boolean |
isAllowUnassociatedTargets()
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those
instances as targets.
|
void |
setAllowUnassociatedTargets(Boolean allowUnassociatedTargets)
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those
instances as targets.
|
void |
setClientToken(String clientToken)
User-provided idempotency token.
|
void |
setCutoff(Integer cutoff)
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for
execution.
|
void |
setDescription(String description)
An optional description for the Maintenance Window.
|
void |
setDuration(Integer duration)
The duration of the Maintenance Window in hours.
|
void |
setName(String name)
The name of the Maintenance Window.
|
void |
setSchedule(String schedule)
The schedule of the Maintenance Window in the form of a cron or rate expression.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateMaintenanceWindowRequest |
withAllowUnassociatedTargets(Boolean allowUnassociatedTargets)
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those
instances as targets.
|
CreateMaintenanceWindowRequest |
withClientToken(String clientToken)
User-provided idempotency token.
|
CreateMaintenanceWindowRequest |
withCutoff(Integer cutoff)
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for
execution.
|
CreateMaintenanceWindowRequest |
withDescription(String description)
An optional description for the Maintenance Window.
|
CreateMaintenanceWindowRequest |
withDuration(Integer duration)
The duration of the Maintenance Window in hours.
|
CreateMaintenanceWindowRequest |
withName(String name)
The name of the Maintenance Window.
|
CreateMaintenanceWindowRequest |
withSchedule(String schedule)
The schedule of the Maintenance Window in the form of a cron or rate expression.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the Maintenance Window.
name
- The name of the Maintenance Window.public String getName()
The name of the Maintenance Window.
public CreateMaintenanceWindowRequest withName(String name)
The name of the Maintenance Window.
name
- The name of the Maintenance Window.public void setDescription(String description)
An optional description for the Maintenance Window. We recommend specifying a description to help you organize your Maintenance Windows.
description
- An optional description for the Maintenance Window. We recommend specifying a description to help you
organize your Maintenance Windows.public String getDescription()
An optional description for the Maintenance Window. We recommend specifying a description to help you organize your Maintenance Windows.
public CreateMaintenanceWindowRequest withDescription(String description)
An optional description for the Maintenance Window. We recommend specifying a description to help you organize your Maintenance Windows.
description
- An optional description for the Maintenance Window. We recommend specifying a description to help you
organize your Maintenance Windows.public void setSchedule(String schedule)
The schedule of the Maintenance Window in the form of a cron or rate expression.
schedule
- The schedule of the Maintenance Window in the form of a cron or rate expression.public String getSchedule()
The schedule of the Maintenance Window in the form of a cron or rate expression.
public CreateMaintenanceWindowRequest withSchedule(String schedule)
The schedule of the Maintenance Window in the form of a cron or rate expression.
schedule
- The schedule of the Maintenance Window in the form of a cron or rate expression.public void setDuration(Integer duration)
The duration of the Maintenance Window in hours.
duration
- The duration of the Maintenance Window in hours.public Integer getDuration()
The duration of the Maintenance Window in hours.
public CreateMaintenanceWindowRequest withDuration(Integer duration)
The duration of the Maintenance Window in hours.
duration
- The duration of the Maintenance Window in hours.public void setCutoff(Integer cutoff)
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.
cutoff
- The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new
tasks for execution.public Integer getCutoff()
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.
public CreateMaintenanceWindowRequest withCutoff(Integer cutoff)
The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.
cutoff
- The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new
tasks for execution.public void setAllowUnassociatedTargets(Boolean allowUnassociatedTargets)
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when you register a task with the Maintenance Window
If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
allowUnassociatedTargets
- Enables a Maintenance Window task to execute on managed instances, even if you have not registered those
instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when
you register a task with the Maintenance Window
If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
public Boolean getAllowUnassociatedTargets()
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when you register a task with the Maintenance Window
If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
public CreateMaintenanceWindowRequest withAllowUnassociatedTargets(Boolean allowUnassociatedTargets)
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when you register a task with the Maintenance Window
If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
allowUnassociatedTargets
- Enables a Maintenance Window task to execute on managed instances, even if you have not registered those
instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when
you register a task with the Maintenance Window
If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
public Boolean isAllowUnassociatedTargets()
Enables a Maintenance Window task to execute on managed instances, even if you have not registered those instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when you register a task with the Maintenance Window
If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
If you don't enable this option, then you must specify previously-registered targets when you register a task with the Maintenance Window.
public void setClientToken(String clientToken)
User-provided idempotency token.
clientToken
- User-provided idempotency token.public String getClientToken()
User-provided idempotency token.
public CreateMaintenanceWindowRequest withClientToken(String clientToken)
User-provided idempotency token.
clientToken
- User-provided idempotency token.public String toString()
toString
in class Object
Object.toString()
public CreateMaintenanceWindowRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.