@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MaintenanceWindowTarget extends Object implements Serializable, Cloneable, StructuredPojo
The target registered with the maintenance window.
Constructor and Description |
---|
MaintenanceWindowTarget() |
Modifier and Type | Method and Description |
---|---|
MaintenanceWindowTarget |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description for the target.
|
String |
getName()
The name for the maintenance window target.
|
String |
getOwnerInformation()
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running
tasks for these targets in this maintenance window.
|
String |
getResourceType()
The type of target that is being registered with the maintenance window.
|
List<Target> |
getTargets()
The targets, either managed nodes or tags.
|
String |
getWindowId()
The ID of the maintenance window to register the target with.
|
String |
getWindowTargetId()
The ID of the target.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
A description for the target.
|
void |
setName(String name)
The name for the maintenance window target.
|
void |
setOwnerInformation(String ownerInformation)
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running
tasks for these targets in this maintenance window.
|
void |
setResourceType(MaintenanceWindowResourceType resourceType)
The type of target that is being registered with the maintenance window.
|
void |
setResourceType(String resourceType)
The type of target that is being registered with the maintenance window.
|
void |
setTargets(Collection<Target> targets)
The targets, either managed nodes or tags.
|
void |
setWindowId(String windowId)
The ID of the maintenance window to register the target with.
|
void |
setWindowTargetId(String windowTargetId)
The ID of the target.
|
String |
toString()
Returns a string representation of this object.
|
MaintenanceWindowTarget |
withDescription(String description)
A description for the target.
|
MaintenanceWindowTarget |
withName(String name)
The name for the maintenance window target.
|
MaintenanceWindowTarget |
withOwnerInformation(String ownerInformation)
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running
tasks for these targets in this maintenance window.
|
MaintenanceWindowTarget |
withResourceType(MaintenanceWindowResourceType resourceType)
The type of target that is being registered with the maintenance window.
|
MaintenanceWindowTarget |
withResourceType(String resourceType)
The type of target that is being registered with the maintenance window.
|
MaintenanceWindowTarget |
withTargets(Collection<Target> targets)
The targets, either managed nodes or tags.
|
MaintenanceWindowTarget |
withTargets(Target... targets)
The targets, either managed nodes or tags.
|
MaintenanceWindowTarget |
withWindowId(String windowId)
The ID of the maintenance window to register the target with.
|
MaintenanceWindowTarget |
withWindowTargetId(String windowTargetId)
The ID of the target.
|
public void setWindowId(String windowId)
The ID of the maintenance window to register the target with.
windowId
- The ID of the maintenance window to register the target with.public String getWindowId()
The ID of the maintenance window to register the target with.
public MaintenanceWindowTarget withWindowId(String windowId)
The ID of the maintenance window to register the target with.
windowId
- The ID of the maintenance window to register the target with.public void setWindowTargetId(String windowTargetId)
The ID of the target.
windowTargetId
- The ID of the target.public String getWindowTargetId()
The ID of the target.
public MaintenanceWindowTarget withWindowTargetId(String windowTargetId)
The ID of the target.
windowTargetId
- The ID of the target.public void setResourceType(String resourceType)
The type of target that is being registered with the maintenance window.
resourceType
- The type of target that is being registered with the maintenance window.MaintenanceWindowResourceType
public String getResourceType()
The type of target that is being registered with the maintenance window.
MaintenanceWindowResourceType
public MaintenanceWindowTarget withResourceType(String resourceType)
The type of target that is being registered with the maintenance window.
resourceType
- The type of target that is being registered with the maintenance window.MaintenanceWindowResourceType
public void setResourceType(MaintenanceWindowResourceType resourceType)
The type of target that is being registered with the maintenance window.
resourceType
- The type of target that is being registered with the maintenance window.MaintenanceWindowResourceType
public MaintenanceWindowTarget withResourceType(MaintenanceWindowResourceType resourceType)
The type of target that is being registered with the maintenance window.
resourceType
- The type of target that is being registered with the maintenance window.MaintenanceWindowResourceType
public List<Target> getTargets()
The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.
public void setTargets(Collection<Target> targets)
The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.
targets
- The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.
public MaintenanceWindowTarget withTargets(Target... targets)
The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.
public MaintenanceWindowTarget withTargets(Collection<Target> targets)
The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.
targets
- The targets, either managed nodes or tags.
Specify managed nodes using the following format:
Key=instanceids,Values=<instanceid1>,<instanceid2>
Tags are specified using the following format:
Key=<tag name>,Values=<tag value>
.
public void setOwnerInformation(String ownerInformation)
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.
ownerInformation
- A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while
running tasks for these targets in this maintenance window.public String getOwnerInformation()
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.
public MaintenanceWindowTarget withOwnerInformation(String ownerInformation)
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.
ownerInformation
- A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while
running tasks for these targets in this maintenance window.public void setName(String name)
The name for the maintenance window target.
name
- The name for the maintenance window target.public String getName()
The name for the maintenance window target.
public MaintenanceWindowTarget withName(String name)
The name for the maintenance window target.
name
- The name for the maintenance window target.public void setDescription(String description)
A description for the target.
description
- A description for the target.public String getDescription()
A description for the target.
public MaintenanceWindowTarget withDescription(String description)
A description for the target.
description
- A description for the target.public String toString()
toString
in class Object
Object.toString()
public MaintenanceWindowTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.