public class PutTargetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Container for the parameters to the PutTargets operation.
NOOP| Constructor and Description |
|---|
PutTargetsRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutTargetsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getRule()
The name of the rule you want to add targets to.
|
List<Target> |
getTargets()
List of targets you want to update or add to the rule.
|
int |
hashCode() |
void |
setRule(String rule)
The name of the rule you want to add targets to.
|
void |
setTargets(Collection<Target> targets)
List of targets you want to update or add to the rule.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutTargetsRequest |
withRule(String rule)
The name of the rule you want to add targets to.
|
PutTargetsRequest |
withTargets(Collection<Target> targets)
List of targets you want to update or add to the rule.
|
PutTargetsRequest |
withTargets(Target... targets)
List of targets you want to update or add to the rule.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setRule(String rule)
The name of the rule you want to add targets to.
rule - The name of the rule you want to add targets to.public String getRule()
The name of the rule you want to add targets to.
public PutTargetsRequest withRule(String rule)
The name of the rule you want to add targets to.
rule - The name of the rule you want to add targets to.public List<Target> getTargets()
List of targets you want to update or add to the rule.
public void setTargets(Collection<Target> targets)
List of targets you want to update or add to the rule.
targets - List of targets you want to update or add to the rule.public PutTargetsRequest withTargets(Target... targets)
List of targets you want to update or add to the rule.
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 - List of targets you want to update or add to the rule.public PutTargetsRequest withTargets(Collection<Target> targets)
List of targets you want to update or add to the rule.
targets - List of targets you want to update or add to the rule.public String toString()
toString in class ObjectObject.toString()public PutTargetsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.