Interface PutRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutRuleRequest.Builder,
,PutRuleRequest> EventBridgeRequest.Builder
,SdkBuilder<PutRuleRequest.Builder,
,PutRuleRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) A description of the rule.eventBusName
(String eventBusName) The name or ARN of the event bus to associate with this rule.eventPattern
(String eventPattern) The event pattern.The name of the rule that you are creating or updating.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of the IAM role associated with the rule.scheduleExpression
(String scheduleExpression) The scheduling expression.Indicates whether the rule is enabled or disabled.Indicates whether the rule is enabled or disabled.tags
(Collection<Tag> tags) The list of key-value pairs to associate with the rule.tags
(Consumer<Tag.Builder>... tags) The list of key-value pairs to associate with the rule.The list of key-value pairs to associate with the rule.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eventbridge.model.EventBridgeRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the rule that you are creating or updating.
- Parameters:
name
- The name of the rule that you are creating or updating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleExpression
The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
- Parameters:
scheduleExpression
- The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventPattern
The event pattern. For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide.
- Parameters:
eventPattern
- The event pattern. For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Indicates whether the rule is enabled or disabled.
- Parameters:
state
- Indicates whether the rule is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
Indicates whether the rule is enabled or disabled.
- Parameters:
state
- Indicates whether the rule is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description of the rule.
- Parameters:
description
- A description of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a
RoleArn
with proper permissions in theTarget
structure, instead of here in this parameter.- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the rule.If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a
RoleArn
with proper permissions in theTarget
structure, instead of here in this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of key-value pairs to associate with the rule.
- Parameters:
tags
- The list of key-value pairs to associate with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of key-value pairs to associate with the rule.
- Parameters:
tags
- The list of key-value pairs to associate with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of key-value pairs to associate with the rule.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventBusName
The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus is used.
- Parameters:
eventBusName
- The name or ARN of the event bus to associate with this 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.
-
overrideConfiguration
Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-