public class RemoveTargetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Container for the parameters to the RemoveTargets operation.
NOOP
Constructor and Description |
---|
RemoveTargetsRequest() |
Modifier and Type | Method and Description |
---|---|
RemoveTargetsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<String> |
getIds()
The list of target IDs to remove from the rule.
|
String |
getRule()
The name of the rule you want to remove targets from.
|
int |
hashCode() |
void |
setIds(Collection<String> ids)
The list of target IDs to remove from the rule.
|
void |
setRule(String rule)
The name of the rule you want to remove targets from.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RemoveTargetsRequest |
withIds(Collection<String> ids)
The list of target IDs to remove from the rule.
|
RemoveTargetsRequest |
withIds(String... ids)
The list of target IDs to remove from the rule.
|
RemoveTargetsRequest |
withRule(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
public void setRule(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 String getRule()
The name of the rule you want to remove targets from.
public RemoveTargetsRequest withRule(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 List<String> getIds()
The list of target IDs to remove from the rule.
public void setIds(Collection<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(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(Collection<String> ids)
The list of target IDs to remove from the rule.
ids
- The list of target IDs to remove from the rule.public String toString()
toString
in class Object
Object.toString()
public RemoveTargetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2018. All rights reserved.