@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RemoveTargetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RemoveTargetsRequest() |
Modifier and Type | Method and Description |
---|---|
RemoveTargetsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getEventBusName()
The name or ARN of the event bus associated with the rule.
|
Boolean |
getForce()
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force as True to remove targets. |
List<String> |
getIds()
The IDs of the targets to remove from the rule.
|
String |
getRule()
The name of the rule.
|
int |
hashCode() |
Boolean |
isForce()
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force as True to remove targets. |
void |
setEventBusName(String eventBusName)
The name or ARN of the event bus associated with the rule.
|
void |
setForce(Boolean force)
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force as True to remove targets. |
void |
setIds(Collection<String> ids)
The IDs of the targets to remove from the rule.
|
void |
setRule(String rule)
The name of the rule.
|
String |
toString()
Returns a string representation of this object.
|
RemoveTargetsRequest |
withEventBusName(String eventBusName)
The name or ARN of the event bus associated with the rule.
|
RemoveTargetsRequest |
withForce(Boolean force)
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force as True to remove targets. |
RemoveTargetsRequest |
withIds(Collection<String> ids)
The IDs of the targets to remove from the rule.
|
RemoveTargetsRequest |
withIds(String... ids)
The IDs of the targets to remove from the rule.
|
RemoveTargetsRequest |
withRule(String rule)
The name of 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 RemoveTargetsRequest withRule(String rule)
The name of the rule.
rule
- The name of the rule.public void setEventBusName(String eventBusName)
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
eventBusName
- The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is
used.public String getEventBusName()
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
public RemoveTargetsRequest withEventBusName(String eventBusName)
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
eventBusName
- The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is
used.public List<String> getIds()
The IDs of the targets to remove from the rule.
public void setIds(Collection<String> ids)
The IDs of the targets to remove from the rule.
ids
- The IDs of the targets to remove from the rule.public RemoveTargetsRequest withIds(String... ids)
The IDs of the targets 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 IDs of the targets to remove from the rule.public RemoveTargetsRequest withIds(Collection<String> ids)
The IDs of the targets to remove from the rule.
ids
- The IDs of the targets to remove from the rule.public void setForce(Boolean force)
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force
as True
to remove targets. This parameter is ignored for rules that are not
managed rules. You can check whether a rule is a managed rule by using DescribeRule
or
ListRules
and checking the ManagedBy
field of the response.
force
- If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force
as True
to remove targets. This parameter is ignored for rules that are
not managed rules. You can check whether a rule is a managed rule by using DescribeRule
or
ListRules
and checking the ManagedBy
field of the response.public Boolean getForce()
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force
as True
to remove targets. This parameter is ignored for rules that are not
managed rules. You can check whether a rule is a managed rule by using DescribeRule
or
ListRules
and checking the ManagedBy
field of the response.
Force
as True
to remove targets. This parameter is ignored for rules that are
not managed rules. You can check whether a rule is a managed rule by using DescribeRule
or
ListRules
and checking the ManagedBy
field of the response.public RemoveTargetsRequest withForce(Boolean force)
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force
as True
to remove targets. This parameter is ignored for rules that are not
managed rules. You can check whether a rule is a managed rule by using DescribeRule
or
ListRules
and checking the ManagedBy
field of the response.
force
- If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force
as True
to remove targets. This parameter is ignored for rules that are
not managed rules. You can check whether a rule is a managed rule by using DescribeRule
or
ListRules
and checking the ManagedBy
field of the response.public Boolean isForce()
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
Force
as True
to remove targets. This parameter is ignored for rules that are not
managed rules. You can check whether a rule is a managed rule by using DescribeRule
or
ListRules
and checking the ManagedBy
field of the response.
Force
as True
to remove targets. This parameter is ignored for rules that are
not managed rules. You can check whether a rule is a managed rule by using DescribeRule
or
ListRules
and checking the ManagedBy
field of the response.public String toString()
toString
in class Object
Object.toString()
public RemoveTargetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()