@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutTargetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutTargetsRequest() |
Modifier and Type | Method and Description |
---|---|
PutTargetsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getRule()
The name of the rule.
|
List<Target> |
getTargets()
The targets to update or add to the rule.
|
int |
hashCode() |
void |
setRule(String rule)
The name of the rule.
|
void |
setTargets(Collection<Target> targets)
The targets 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.
|
PutTargetsRequest |
withTargets(Collection<Target> targets)
The targets to update or add to the rule.
|
PutTargetsRequest |
withTargets(Target... targets)
The targets to update or add to the rule.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRule(String rule)
The name of the rule.
rule
- The name of the rule.public String getRule()
The name of the rule.
public PutTargetsRequest withRule(String rule)
The name of the rule.
rule
- The name of the rule.public List<Target> getTargets()
The targets to update or add to the rule.
public void setTargets(Collection<Target> targets)
The targets to update or add to the rule.
targets
- The targets to update or add to the rule.public PutTargetsRequest withTargets(Target... targets)
The targets 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
- The targets to update or add to the rule.public PutTargetsRequest withTargets(Collection<Target> targets)
The targets to update or add to the rule.
targets
- The targets to update or add to the rule.public String toString()
toString
in class Object
Object.toString()
public PutTargetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.