@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceEventWindow extends Object implements Serializable, Cloneable
The event window.
Constructor and Description |
---|
InstanceEventWindow() |
Modifier and Type | Method and Description |
---|---|
InstanceEventWindow |
clone() |
boolean |
equals(Object obj) |
InstanceEventWindowAssociationTarget |
getAssociationTarget()
One or more targets associated with the event window.
|
String |
getCronExpression()
The cron expression defined for the event window.
|
String |
getInstanceEventWindowId()
The ID of the event window.
|
String |
getName()
The name of the event window.
|
String |
getState()
The current state of the event window.
|
List<Tag> |
getTags()
The instance tags associated with the event window.
|
List<InstanceEventWindowTimeRange> |
getTimeRanges()
One or more time ranges defined for the event window.
|
int |
hashCode() |
void |
setAssociationTarget(InstanceEventWindowAssociationTarget associationTarget)
One or more targets associated with the event window.
|
void |
setCronExpression(String cronExpression)
The cron expression defined for the event window.
|
void |
setInstanceEventWindowId(String instanceEventWindowId)
The ID of the event window.
|
void |
setName(String name)
The name of the event window.
|
void |
setState(String state)
The current state of the event window.
|
void |
setTags(Collection<Tag> tags)
The instance tags associated with the event window.
|
void |
setTimeRanges(Collection<InstanceEventWindowTimeRange> timeRanges)
One or more time ranges defined for the event window.
|
String |
toString()
Returns a string representation of this object.
|
InstanceEventWindow |
withAssociationTarget(InstanceEventWindowAssociationTarget associationTarget)
One or more targets associated with the event window.
|
InstanceEventWindow |
withCronExpression(String cronExpression)
The cron expression defined for the event window.
|
InstanceEventWindow |
withInstanceEventWindowId(String instanceEventWindowId)
The ID of the event window.
|
InstanceEventWindow |
withName(String name)
The name of the event window.
|
InstanceEventWindow |
withState(InstanceEventWindowState state)
The current state of the event window.
|
InstanceEventWindow |
withState(String state)
The current state of the event window.
|
InstanceEventWindow |
withTags(Collection<Tag> tags)
The instance tags associated with the event window.
|
InstanceEventWindow |
withTags(Tag... tags)
The instance tags associated with the event window.
|
InstanceEventWindow |
withTimeRanges(Collection<InstanceEventWindowTimeRange> timeRanges)
One or more time ranges defined for the event window.
|
InstanceEventWindow |
withTimeRanges(InstanceEventWindowTimeRange... timeRanges)
One or more time ranges defined for 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 InstanceEventWindow withInstanceEventWindowId(String instanceEventWindowId)
The ID of the event window.
instanceEventWindowId
- The ID of the event window.public List<InstanceEventWindowTimeRange> getTimeRanges()
One or more time ranges defined for the event window.
public void setTimeRanges(Collection<InstanceEventWindowTimeRange> timeRanges)
One or more time ranges defined for the event window.
timeRanges
- One or more time ranges defined for the event window.public InstanceEventWindow withTimeRanges(InstanceEventWindowTimeRange... timeRanges)
One or more time ranges defined for 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
- One or more time ranges defined for the event window.public InstanceEventWindow withTimeRanges(Collection<InstanceEventWindowTimeRange> timeRanges)
One or more time ranges defined for the event window.
timeRanges
- One or more time ranges defined for the event window.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 InstanceEventWindow withName(String name)
The name of the event window.
name
- The name of the event window.public void setCronExpression(String cronExpression)
The cron expression defined for the event window.
cronExpression
- The cron expression defined for the event window.public String getCronExpression()
The cron expression defined for the event window.
public InstanceEventWindow withCronExpression(String cronExpression)
The cron expression defined for the event window.
cronExpression
- The cron expression defined for the event window.public void setAssociationTarget(InstanceEventWindowAssociationTarget associationTarget)
One or more targets associated with the event window.
associationTarget
- One or more targets associated with the event window.public InstanceEventWindowAssociationTarget getAssociationTarget()
One or more targets associated with the event window.
public InstanceEventWindow withAssociationTarget(InstanceEventWindowAssociationTarget associationTarget)
One or more targets associated with the event window.
associationTarget
- One or more targets associated with the event window.public void setState(String state)
The current state of the event window.
state
- The current state of the event window.InstanceEventWindowState
public String getState()
The current state of the event window.
InstanceEventWindowState
public InstanceEventWindow withState(String state)
The current state of the event window.
state
- The current state of the event window.InstanceEventWindowState
public InstanceEventWindow withState(InstanceEventWindowState state)
The current state of the event window.
state
- The current state of the event window.InstanceEventWindowState
public List<Tag> getTags()
The instance tags associated with the event window.
public void setTags(Collection<Tag> tags)
The instance tags associated with the event window.
tags
- The instance tags associated with the event window.public InstanceEventWindow withTags(Tag... tags)
The instance tags associated with the event window.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The instance tags associated with the event window.public InstanceEventWindow withTags(Collection<Tag> tags)
The instance tags associated with the event window.
tags
- The instance tags associated with the event window.public String toString()
toString
in class Object
Object.toString()
public InstanceEventWindow clone()
Copyright © 2022. All rights reserved.