@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateInstanceEventWindowRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateInstanceEventWindowRequest>
NOOP
Constructor and Description |
---|
CreateInstanceEventWindowRequest() |
Modifier and Type | Method and Description |
---|---|
CreateInstanceEventWindowRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCronExpression()
The cron expression for the event window, for example,
* 0-4,20-23 * * 1,5 . |
Request<CreateInstanceEventWindowRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getName()
The name of the event window.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the event window.
|
List<InstanceEventWindowTimeRangeRequest> |
getTimeRanges()
The time range for the event window.
|
int |
hashCode() |
void |
setCronExpression(String cronExpression)
The cron expression for the event window, for example,
* 0-4,20-23 * * 1,5 . |
void |
setName(String name)
The name of the event window.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the event window.
|
void |
setTimeRanges(Collection<InstanceEventWindowTimeRangeRequest> timeRanges)
The time range for the event window.
|
String |
toString()
Returns a string representation of this object.
|
CreateInstanceEventWindowRequest |
withCronExpression(String cronExpression)
The cron expression for the event window, for example,
* 0-4,20-23 * * 1,5 . |
CreateInstanceEventWindowRequest |
withName(String name)
The name of the event window.
|
CreateInstanceEventWindowRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the event window.
|
CreateInstanceEventWindowRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the event window.
|
CreateInstanceEventWindowRequest |
withTimeRanges(Collection<InstanceEventWindowTimeRangeRequest> timeRanges)
The time range for the event window.
|
CreateInstanceEventWindowRequest |
withTimeRanges(InstanceEventWindowTimeRangeRequest... timeRanges)
The time range for 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, withSdkRequestTimeout
public 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 CreateInstanceEventWindowRequest withName(String name)
The name of the event window.
name
- The name of the event window.public List<InstanceEventWindowTimeRangeRequest> getTimeRanges()
The time range for the event window. If you specify a time range, you can't specify a cron expression.
public void setTimeRanges(Collection<InstanceEventWindowTimeRangeRequest> timeRanges)
The time range for the event window. If you specify a time range, you can't specify a cron expression.
timeRanges
- The time range for the event window. If you specify a time range, you can't specify a cron expression.public CreateInstanceEventWindowRequest withTimeRanges(InstanceEventWindowTimeRangeRequest... timeRanges)
The time range for the event window. If you specify a time range, you can't specify a cron expression.
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 range for the event window. If you specify a time range, you can't specify a cron expression.public CreateInstanceEventWindowRequest withTimeRanges(Collection<InstanceEventWindowTimeRangeRequest> timeRanges)
The time range for the event window. If you specify a time range, you can't specify a cron expression.
timeRanges
- The time range for the event window. If you specify a time range, you can't specify a cron expression.public void setCronExpression(String cronExpression)
The cron expression for the event window, for example, * 0-4,20-23 * * 1,5
. If you specify a cron
expression, you can't specify a time range.
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 for the event window, for example, * 0-4,20-23 * * 1,5
. If you specify a
cron expression, you can't specify a time range.
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 for the event window, for example, * 0-4,20-23 * * 1,5
. If you specify a cron
expression, you can't specify a time range.
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
. If you specify a
cron expression, you can't specify a time range.
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 CreateInstanceEventWindowRequest withCronExpression(String cronExpression)
The cron expression for the event window, for example, * 0-4,20-23 * * 1,5
. If you specify a cron
expression, you can't specify a time range.
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 for the event window, for example, * 0-4,20-23 * * 1,5
. If you specify a
cron expression, you can't specify a time range.
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 List<TagSpecification> getTagSpecifications()
The tags to apply to the event window.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the event window.
tagSpecifications
- The tags to apply to the event window.public CreateInstanceEventWindowRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the event window.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the event window.public CreateInstanceEventWindowRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the event window.
tagSpecifications
- The tags to apply to the event window.public Request<CreateInstanceEventWindowRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateInstanceEventWindowRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateInstanceEventWindowRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()