@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyInstanceEventWindowRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyInstanceEventWindowRequest>
NOOP| Constructor and Description |
|---|
ModifyInstanceEventWindowRequest() |
| Modifier and Type | Method and Description |
|---|---|
ModifyInstanceEventWindowRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCronExpression()
The cron expression of the event window, for example,
* 0-4,20-23 * * 1,5. |
Request<ModifyInstanceEventWindowRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceEventWindowId()
The ID of the event window.
|
String |
getName()
The name of the event window.
|
List<InstanceEventWindowTimeRangeRequest> |
getTimeRanges()
The time ranges of the event window.
|
int |
hashCode() |
void |
setCronExpression(String cronExpression)
The cron expression of the event window, for example,
* 0-4,20-23 * * 1,5. |
void |
setInstanceEventWindowId(String instanceEventWindowId)
The ID of the event window.
|
void |
setName(String name)
The name of the event window.
|
void |
setTimeRanges(Collection<InstanceEventWindowTimeRangeRequest> timeRanges)
The time ranges of the event window.
|
String |
toString()
Returns a string representation of this object.
|
ModifyInstanceEventWindowRequest |
withCronExpression(String cronExpression)
The cron expression of the event window, for example,
* 0-4,20-23 * * 1,5. |
ModifyInstanceEventWindowRequest |
withInstanceEventWindowId(String instanceEventWindowId)
The ID of the event window.
|
ModifyInstanceEventWindowRequest |
withName(String name)
The name of the event window.
|
ModifyInstanceEventWindowRequest |
withTimeRanges(Collection<InstanceEventWindowTimeRangeRequest> timeRanges)
The time ranges of the event window.
|
ModifyInstanceEventWindowRequest |
withTimeRanges(InstanceEventWindowTimeRangeRequest... timeRanges)
The time ranges of the event window.
|
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, withSdkRequestTimeoutpublic void setName(String name)
The name of the event window.
name - The name of the event window.public String getName()
The name of the event window.
public ModifyInstanceEventWindowRequest withName(String name)
The name of the event window.
name - The name of the event window.public void setInstanceEventWindowId(String instanceEventWindowId)
The ID of the event window.
instanceEventWindowId - The ID of the event window.public String getInstanceEventWindowId()
The ID of the event window.
public ModifyInstanceEventWindowRequest withInstanceEventWindowId(String instanceEventWindowId)
The ID of the event window.
instanceEventWindowId - The ID of the event window.public List<InstanceEventWindowTimeRangeRequest> getTimeRanges()
The time ranges of the event window.
public void setTimeRanges(Collection<InstanceEventWindowTimeRangeRequest> timeRanges)
The time ranges of the event window.
timeRanges - The time ranges of the event window.public ModifyInstanceEventWindowRequest withTimeRanges(InstanceEventWindowTimeRangeRequest... timeRanges)
The time ranges of the event window.
NOTE: This method appends the values to the existing list (if any). Use
setTimeRanges(java.util.Collection) or withTimeRanges(java.util.Collection) if you want to
override the existing values.
timeRanges - The time ranges of the event window.public ModifyInstanceEventWindowRequest withTimeRanges(Collection<InstanceEventWindowTimeRangeRequest> timeRanges)
The time ranges of the event window.
timeRanges - The time ranges of the event window.public void setCronExpression(String cronExpression)
The cron expression of the event window, for example, * 0-4,20-23 * * 1,5.
Constraints:
Only hour and day of the week values are supported.
For day of the week values, you can specify either integers 0 through 6, or alternative
single values SUN through SAT.
The minute, month, and year must be specified by *.
The hour value must be one or a multiple range, for example, 0-4 or 0-4,20-23.
Each hour range must be >= 2 hours, for example, 0-2 or 20-23.
The event window must be >= 4 hours. The combined total time ranges in the event window must be >= 4 hours.
For more information about cron expressions, see cron on the Wikipedia website.
cronExpression - The cron expression of the event window, for example, * 0-4,20-23 * * 1,5.
Constraints:
Only hour and day of the week values are supported.
For day of the week values, you can specify either integers 0 through 6, or
alternative single values SUN through SAT.
The minute, month, and year must be specified by *.
The hour value must be one or a multiple range, for example, 0-4 or 0-4,20-23.
Each hour range must be >= 2 hours, for example, 0-2 or 20-23.
The event window must be >= 4 hours. The combined total time ranges in the event window must be >= 4 hours.
For more information about cron expressions, see cron on the Wikipedia website.
public String getCronExpression()
The cron expression of the event window, for example, * 0-4,20-23 * * 1,5.
Constraints:
Only hour and day of the week values are supported.
For day of the week values, you can specify either integers 0 through 6, or alternative
single values SUN through SAT.
The minute, month, and year must be specified by *.
The hour value must be one or a multiple range, for example, 0-4 or 0-4,20-23.
Each hour range must be >= 2 hours, for example, 0-2 or 20-23.
The event window must be >= 4 hours. The combined total time ranges in the event window must be >= 4 hours.
For more information about cron expressions, see cron on the Wikipedia website.
* 0-4,20-23 * * 1,5.
Constraints:
Only hour and day of the week values are supported.
For day of the week values, you can specify either integers 0 through 6, or
alternative single values SUN through SAT.
The minute, month, and year must be specified by *.
The hour value must be one or a multiple range, for example, 0-4 or 0-4,20-23.
Each hour range must be >= 2 hours, for example, 0-2 or 20-23.
The event window must be >= 4 hours. The combined total time ranges in the event window must be >= 4 hours.
For more information about cron expressions, see cron on the Wikipedia website.
public ModifyInstanceEventWindowRequest withCronExpression(String cronExpression)
The cron expression of the event window, for example, * 0-4,20-23 * * 1,5.
Constraints:
Only hour and day of the week values are supported.
For day of the week values, you can specify either integers 0 through 6, or alternative
single values SUN through SAT.
The minute, month, and year must be specified by *.
The hour value must be one or a multiple range, for example, 0-4 or 0-4,20-23.
Each hour range must be >= 2 hours, for example, 0-2 or 20-23.
The event window must be >= 4 hours. The combined total time ranges in the event window must be >= 4 hours.
For more information about cron expressions, see cron on the Wikipedia website.
cronExpression - The cron expression of the event window, for example, * 0-4,20-23 * * 1,5.
Constraints:
Only hour and day of the week values are supported.
For day of the week values, you can specify either integers 0 through 6, or
alternative single values SUN through SAT.
The minute, month, and year must be specified by *.
The hour value must be one or a multiple range, for example, 0-4 or 0-4,20-23.
Each hour range must be >= 2 hours, for example, 0-2 or 20-23.
The event window must be >= 4 hours. The combined total time ranges in the event window must be >= 4 hours.
For more information about cron expressions, see cron on the Wikipedia website.
public Request<ModifyInstanceEventWindowRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ModifyInstanceEventWindowRequest>public String toString()
toString in class ObjectObject.toString()public ModifyInstanceEventWindowRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()