Interface RemoveTargetsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchEventsRequest.Builder,CopyableBuilder<RemoveTargetsRequest.Builder,,RemoveTargetsRequest> SdkBuilder<RemoveTargetsRequest.Builder,,RemoveTargetsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
RemoveTargetsRequest
@Mutable
@NotThreadSafe
public static interface RemoveTargetsRequest.Builder
extends CloudWatchEventsRequest.Builder, SdkPojo, CopyableBuilder<RemoveTargetsRequest.Builder,RemoveTargetsRequest>
-
Method Summary
Modifier and TypeMethodDescriptioneventBusName(String eventBusName) The name or ARN of the event bus associated with the rule.If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specifyForceasTrueto remove targets.The IDs of the targets to remove from the rule.ids(Collection<String> ids) The IDs of the targets to remove from the rule.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the rule.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchevents.model.CloudWatchEventsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
rule
The name of the rule.
- Parameters:
rule- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
- Parameters:
eventBusName- The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ids
The IDs of the targets to remove from the rule.
- Parameters:
ids- The IDs of the targets to remove from the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ids
The IDs of the targets to remove from the rule.
- Parameters:
ids- The IDs of the targets to remove from the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
force
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
ForceasTrueto remove targets. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by usingDescribeRuleorListRulesand checking theManagedByfield of the response.- Parameters:
force- If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specifyForceasTrueto remove targets. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by usingDescribeRuleorListRulesand checking theManagedByfield of the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RemoveTargetsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
RemoveTargetsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-