Interface PutRuleRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutRuleRequest.Builder,PutRuleRequest>,EventBridgeRequest.Builder,SdkBuilder<PutRuleRequest.Builder,PutRuleRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutRuleRequest
public static interface PutRuleRequest.Builder extends EventBridgeRequest.Builder, SdkPojo, CopyableBuilder<PutRuleRequest.Builder,PutRuleRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutRuleRequest.Builderdescription(String description)A description of the rule.PutRuleRequest.BuildereventBusName(String eventBusName)The name or ARN of the event bus to associate with this rule.PutRuleRequest.BuildereventPattern(String eventPattern)The event pattern.PutRuleRequest.Buildername(String name)The name of the rule that you are creating or updating.PutRuleRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutRuleRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutRuleRequest.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of the IAM role associated with the rule.PutRuleRequest.BuilderscheduleExpression(String scheduleExpression)The scheduling expression.PutRuleRequest.Builderstate(String state)Indicates whether the rule is enabled or disabled.PutRuleRequest.Builderstate(RuleState state)Indicates whether the rule is enabled or disabled.PutRuleRequest.Buildertags(Collection<Tag> tags)The list of key-value pairs to associate with the rule.PutRuleRequest.Buildertags(Consumer<Tag.Builder>... tags)The list of key-value pairs to associate with the rule.PutRuleRequest.Buildertags(Tag... tags)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 Detail
-
name
PutRuleRequest.Builder name(String 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
PutRuleRequest.Builder scheduleExpression(String 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
PutRuleRequest.Builder eventPattern(String 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
PutRuleRequest.Builder state(String state)
Indicates whether the rule is enabled or disabled.
-
state
PutRuleRequest.Builder state(RuleState state)
Indicates whether the rule is enabled or disabled.
-
description
PutRuleRequest.Builder description(String 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
PutRuleRequest.Builder roleArn(String 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
RoleArnwith proper permissions in theTargetstructure, 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
RoleArnwith proper permissions in theTargetstructure, instead of here in this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
PutRuleRequest.Builder tags(Collection<Tag> 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
PutRuleRequest.Builder tags(Tag... 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
PutRuleRequest.Builder tags(Consumer<Tag.Builder>... tags)
The list of key-value pairs to associate with the rule.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
eventBusName
PutRuleRequest.Builder eventBusName(String 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
PutRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-