@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceEventWindowAssociationRequest extends Object implements Serializable, Cloneable
One or more targets associated with the specified event window. Only one type of target (instance ID, instance tag, or Dedicated Host ID) can be associated with an event window.
Constructor and Description |
---|
InstanceEventWindowAssociationRequest() |
Modifier and Type | Method and Description |
---|---|
InstanceEventWindowAssociationRequest |
clone() |
boolean |
equals(Object obj) |
List<String> |
getDedicatedHostIds()
The IDs of the Dedicated Hosts to associate with the event window.
|
List<String> |
getInstanceIds()
The IDs of the instances to associate with the event window.
|
List<Tag> |
getInstanceTags()
The instance tags to associate with the event window.
|
int |
hashCode() |
void |
setDedicatedHostIds(Collection<String> dedicatedHostIds)
The IDs of the Dedicated Hosts to associate with the event window.
|
void |
setInstanceIds(Collection<String> instanceIds)
The IDs of the instances to associate with the event window.
|
void |
setInstanceTags(Collection<Tag> instanceTags)
The instance tags to associate with the event window.
|
String |
toString()
Returns a string representation of this object.
|
InstanceEventWindowAssociationRequest |
withDedicatedHostIds(Collection<String> dedicatedHostIds)
The IDs of the Dedicated Hosts to associate with the event window.
|
InstanceEventWindowAssociationRequest |
withDedicatedHostIds(String... dedicatedHostIds)
The IDs of the Dedicated Hosts to associate with the event window.
|
InstanceEventWindowAssociationRequest |
withInstanceIds(Collection<String> instanceIds)
The IDs of the instances to associate with the event window.
|
InstanceEventWindowAssociationRequest |
withInstanceIds(String... instanceIds)
The IDs of the instances to associate with the event window.
|
InstanceEventWindowAssociationRequest |
withInstanceTags(Collection<Tag> instanceTags)
The instance tags to associate with the event window.
|
InstanceEventWindowAssociationRequest |
withInstanceTags(Tag... instanceTags)
The instance tags to associate with the event window.
|
public InstanceEventWindowAssociationRequest()
public List<String> getInstanceIds()
The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.
public void setInstanceIds(Collection<String> instanceIds)
The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.
instanceIds
- The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you
can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.public InstanceEventWindowAssociationRequest withInstanceIds(String... instanceIds)
The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to
override the existing values.
instanceIds
- The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you
can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.public InstanceEventWindowAssociationRequest withInstanceIds(Collection<String> instanceIds)
The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.
instanceIds
- The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you
can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.public List<Tag> getInstanceTags()
The instance tags to associate with the event window. Any instances associated with the tags will be associated with the event window.
public void setInstanceTags(Collection<Tag> instanceTags)
The instance tags to associate with the event window. Any instances associated with the tags will be associated with the event window.
instanceTags
- The instance tags to associate with the event window. Any instances associated with the tags will be
associated with the event window.public InstanceEventWindowAssociationRequest withInstanceTags(Tag... instanceTags)
The instance tags to associate with the event window. Any instances associated with the tags will be associated with the event window.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceTags(java.util.Collection)
or withInstanceTags(java.util.Collection)
if you want to
override the existing values.
instanceTags
- The instance tags to associate with the event window. Any instances associated with the tags will be
associated with the event window.public InstanceEventWindowAssociationRequest withInstanceTags(Collection<Tag> instanceTags)
The instance tags to associate with the event window. Any instances associated with the tags will be associated with the event window.
instanceTags
- The instance tags to associate with the event window. Any instances associated with the tags will be
associated with the event window.public List<String> getDedicatedHostIds()
The IDs of the Dedicated Hosts to associate with the event window.
public void setDedicatedHostIds(Collection<String> dedicatedHostIds)
The IDs of the Dedicated Hosts to associate with the event window.
dedicatedHostIds
- The IDs of the Dedicated Hosts to associate with the event window.public InstanceEventWindowAssociationRequest withDedicatedHostIds(String... dedicatedHostIds)
The IDs of the Dedicated Hosts to associate with the event window.
NOTE: This method appends the values to the existing list (if any). Use
setDedicatedHostIds(java.util.Collection)
or withDedicatedHostIds(java.util.Collection)
if you
want to override the existing values.
dedicatedHostIds
- The IDs of the Dedicated Hosts to associate with the event window.public InstanceEventWindowAssociationRequest withDedicatedHostIds(Collection<String> dedicatedHostIds)
The IDs of the Dedicated Hosts to associate with the event window.
dedicatedHostIds
- The IDs of the Dedicated Hosts to associate with the event window.public String toString()
toString
in class Object
Object.toString()
public InstanceEventWindowAssociationRequest clone()