@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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() |
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, 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()
clone in class AmazonWebServiceRequestCopyright © 2017. All rights reserved.