public class RemoveTargetsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Container for the parameters to the RemoveTargets operation.
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
ids
The list of target IDs to remove from the rule.
|
private java.lang.String |
rule
The name of the rule you want to remove targets from.
|
NOOP
Constructor and Description |
---|
RemoveTargetsRequest() |
Modifier and Type | Method and Description |
---|---|
RemoveTargetsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getIds()
The list of target IDs to remove from the rule.
|
java.lang.String |
getRule()
The name of the rule you want to remove targets from.
|
int |
hashCode() |
void |
setIds(java.util.Collection<java.lang.String> ids)
The list of target IDs to remove from the rule.
|
void |
setRule(java.lang.String rule)
The name of the rule you want to remove targets from.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RemoveTargetsRequest |
withIds(java.util.Collection<java.lang.String> ids)
The list of target IDs to remove from the rule.
|
RemoveTargetsRequest |
withIds(java.lang.String... ids)
The list of target IDs to remove from the rule.
|
RemoveTargetsRequest |
withRule(java.lang.String rule)
The name of the rule you want to remove targets from.
|
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 remove targets from.
private java.util.List<java.lang.String> ids
The list of target IDs to remove from the rule.
public void setRule(java.lang.String rule)
The name of the rule you want to remove targets from.
rule
- The name of the rule you want to remove targets from.public java.lang.String getRule()
The name of the rule you want to remove targets from.
public RemoveTargetsRequest withRule(java.lang.String rule)
The name of the rule you want to remove targets from.
rule
- The name of the rule you want to remove targets from.public java.util.List<java.lang.String> getIds()
The list of target IDs to remove from the rule.
public void setIds(java.util.Collection<java.lang.String> ids)
The list of target IDs to remove from the rule.
ids
- The list of target IDs to remove from the rule.public RemoveTargetsRequest withIds(java.lang.String... ids)
The list of target IDs to remove from the rule.
NOTE: This method appends the values to the existing list (if
any). Use setIds(java.util.Collection)
or
withIds(java.util.Collection)
if you want to override the
existing values.
ids
- The list of target IDs to remove from the rule.public RemoveTargetsRequest withIds(java.util.Collection<java.lang.String> ids)
The list of target IDs to remove from the rule.
ids
- The list of target IDs to remove from 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 RemoveTargetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()