public class PutTargetsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Container for the parameters to the PutTargets operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
rule
The name of the rule you want to add targets to.
|
private java.util.List<Target> |
targets
List of targets you want to update or add to the rule.
|
NOOP
Constructor and Description |
---|
PutTargetsRequest() |
Modifier and Type | Method and Description |
---|---|
PutTargetsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getRule()
The name of the rule you want to add targets to.
|
java.util.List<Target> |
getTargets()
List of targets you want to update or add to the rule.
|
int |
hashCode() |
void |
setRule(java.lang.String rule)
The name of the rule you want to add targets to.
|
void |
setTargets(java.util.Collection<Target> targets)
List of targets you want to update or add to the rule.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutTargetsRequest |
withRule(java.lang.String rule)
The name of the rule you want to add targets to.
|
PutTargetsRequest |
withTargets(java.util.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, withSdkRequestTimeout
private java.lang.String rule
The name of the rule you want to add targets to.
private java.util.List<Target> targets
List of targets you want to update or add to the rule.
public void setRule(java.lang.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 java.lang.String getRule()
The name of the rule you want to add targets to.
public PutTargetsRequest withRule(java.lang.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 java.util.List<Target> getTargets()
List of targets you want to update or add to the rule.
public void setTargets(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutTargetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()