@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 of the target.
|
String |
getName()
The target name.
|
String |
getOwnerInformation()
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets
in this Maintenance Window.
|
String |
getResourceType()
The type of target.
|
List<Target> |
getTargets()
The targets (either instances or tags).
|
String |
getWindowId()
The Maintenance Window ID where the target is registered.
|
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 of the target.
|
void |
setName(String name)
The target name.
|
void |
setOwnerInformation(String ownerInformation)
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets
in this Maintenance Window.
|
void |
setResourceType(MaintenanceWindowResourceType resourceType)
The type of target.
|
void |
setResourceType(String resourceType)
The type of target.
|
void |
setTargets(Collection<Target> targets)
The targets (either instances or tags).
|
void |
setWindowId(String windowId)
The Maintenance Window ID where the target is registered.
|
void |
setWindowTargetId(String windowTargetId)
The ID of the target.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MaintenanceWindowTarget |
withDescription(String description)
A description of the target.
|
MaintenanceWindowTarget |
withName(String name)
The target name.
|
MaintenanceWindowTarget |
withOwnerInformation(String ownerInformation)
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets
in this Maintenance Window.
|
MaintenanceWindowTarget |
withResourceType(MaintenanceWindowResourceType resourceType)
The type of target.
|
MaintenanceWindowTarget |
withResourceType(String resourceType)
The type of target.
|
MaintenanceWindowTarget |
withTargets(Collection<Target> targets)
The targets (either instances or tags).
|
MaintenanceWindowTarget |
withTargets(Target... targets)
The targets (either instances or tags).
|
MaintenanceWindowTarget |
withWindowId(String windowId)
The Maintenance Window ID where the target is registered.
|
MaintenanceWindowTarget |
withWindowTargetId(String windowTargetId)
The ID of the target.
|
public void setWindowId(String windowId)
The Maintenance Window ID where the target is registered.
windowId
- The Maintenance Window ID where the target is registered.public String getWindowId()
The Maintenance Window ID where the target is registered.
public MaintenanceWindowTarget withWindowId(String windowId)
The Maintenance Window ID where the target is registered.
windowId
- The Maintenance Window ID where the target is registered.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.
resourceType
- The type of target.MaintenanceWindowResourceType
public String getResourceType()
The type of target.
MaintenanceWindowResourceType
public MaintenanceWindowTarget withResourceType(String resourceType)
The type of target.
resourceType
- The type of target.MaintenanceWindowResourceType
public void setResourceType(MaintenanceWindowResourceType resourceType)
The type of target.
resourceType
- The type of target.MaintenanceWindowResourceType
public MaintenanceWindowTarget withResourceType(MaintenanceWindowResourceType resourceType)
The type of target.
resourceType
- The type of target.MaintenanceWindowResourceType
public List<Target> getTargets()
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
public void setTargets(Collection<Target> targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
targets
- The targets (either instances or tags). Instances are specified using
Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag
name>,Values=<tag value>.public MaintenanceWindowTarget withTargets(Target... targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using 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 instances or tags). Instances are specified using
Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag
name>,Values=<tag value>.public MaintenanceWindowTarget withTargets(Collection<Target> targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
targets
- The targets (either instances or tags). Instances are specified using
Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag
name>,Values=<tag value>.public void setOwnerInformation(String ownerInformation)
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.
ownerInformation
- User-provided value that will be included in any CloudWatch events raised while running tasks for these
targets in this Maintenance Window.public String getOwnerInformation()
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.
public MaintenanceWindowTarget withOwnerInformation(String ownerInformation)
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.
ownerInformation
- User-provided value that will be included in any CloudWatch events raised while running tasks for these
targets in this Maintenance Window.public void setName(String name)
The target name.
name
- The target name.public String getName()
The target name.
public MaintenanceWindowTarget withName(String name)
The target name.
name
- The target name.public void setDescription(String description)
A description of the target.
description
- A description of the target.public String getDescription()
A description of the target.
public MaintenanceWindowTarget withDescription(String description)
A description of the target.
description
- A description of 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.