Interface CreateLinkRoutingRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateLinkRoutingRuleRequest.Builder,,CreateLinkRoutingRuleRequest> RtbFabricRequest.Builder,SdkBuilder<CreateLinkRoutingRuleRequest.Builder,,CreateLinkRoutingRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateLinkRoutingRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.conditions(Consumer<RuleCondition.Builder> conditions) The conditions for the routing rule.conditions(RuleCondition conditions) The conditions for the routing rule.The unique identifier of the gateway.The unique identifier of the link.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The priority of the routing rule.A map of the key-value pairs of the tag or tags to assign to the resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rtbfabric.model.RtbFabricRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken, but with different parameters, the retry fails with anIdempotentParameterMismatcherror.- Parameters:
clientToken- Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken, but with different parameters, the retry fails with anIdempotentParameterMismatcherror.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatewayId
The unique identifier of the gateway.
- Parameters:
gatewayId- The unique identifier of the gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
linkId
The unique identifier of the link.
- Parameters:
linkId- The unique identifier of the link.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priority
The priority of the routing rule. Lower numbers are evaluated first. Valid values are 1 to 1000. Priority must be unique among non-deleted rules within a link.
- Parameters:
priority- The priority of the routing rule. Lower numbers are evaluated first. Valid values are 1 to 1000. Priority must be unique among non-deleted rules within a link.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions for the routing rule. All specified fields must match for the rule to apply. At least one condition field must be set.
- Parameters:
conditions- The conditions for the routing rule. All specified fields must match for the rule to apply. At least one condition field must be set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions for the routing rule. All specified fields must match for the rule to apply. At least one condition field must be set.
This is a convenience method that creates an instance of theRuleCondition.Builderavoiding the need to create one manually viaRuleCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconditions(RuleCondition).- Parameters:
conditions- a consumer that will call methods onRuleCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A map of the key-value pairs of the tag or tags to assign to the resource.
- Parameters:
tags- A map of the key-value pairs of the tag or tags to assign to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateLinkRoutingRuleRequest.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
CreateLinkRoutingRuleRequest.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.
-