Interface AwsS3BucketWebsiteConfigurationRoutingRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsS3BucketWebsiteConfigurationRoutingRule.Builder,
,AwsS3BucketWebsiteConfigurationRoutingRule> SdkBuilder<AwsS3BucketWebsiteConfigurationRoutingRule.Builder,
,AwsS3BucketWebsiteConfigurationRoutingRule> SdkPojo
- Enclosing class:
AwsS3BucketWebsiteConfigurationRoutingRule
@Mutable
@NotThreadSafe
public static interface AwsS3BucketWebsiteConfigurationRoutingRule.Builder
extends SdkPojo, CopyableBuilder<AwsS3BucketWebsiteConfigurationRoutingRule.Builder,AwsS3BucketWebsiteConfigurationRoutingRule>
-
Method Summary
Modifier and TypeMethodDescriptionProvides the condition that must be met in order to apply the routing rule.Provides the condition that must be met in order to apply the routing rule.Provides the rules to redirect the request if the condition inCondition
is met.Provides the rules to redirect the request if the condition inCondition
is met.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
condition
AwsS3BucketWebsiteConfigurationRoutingRule.Builder condition(AwsS3BucketWebsiteConfigurationRoutingRuleCondition condition) Provides the condition that must be met in order to apply the routing rule.
- Parameters:
condition
- Provides the condition that must be met in order to apply the routing rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
default AwsS3BucketWebsiteConfigurationRoutingRule.Builder condition(Consumer<AwsS3BucketWebsiteConfigurationRoutingRuleCondition.Builder> condition) Provides the condition that must be met in order to apply the routing rule.
This is a convenience method that creates an instance of theAwsS3BucketWebsiteConfigurationRoutingRuleCondition.Builder
avoiding the need to create one manually viaAwsS3BucketWebsiteConfigurationRoutingRuleCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocondition(AwsS3BucketWebsiteConfigurationRoutingRuleCondition)
.- Parameters:
condition
- a consumer that will call methods onAwsS3BucketWebsiteConfigurationRoutingRuleCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
redirect
AwsS3BucketWebsiteConfigurationRoutingRule.Builder redirect(AwsS3BucketWebsiteConfigurationRoutingRuleRedirect redirect) Provides the rules to redirect the request if the condition in
Condition
is met.- Parameters:
redirect
- Provides the rules to redirect the request if the condition inCondition
is met.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirect
default AwsS3BucketWebsiteConfigurationRoutingRule.Builder redirect(Consumer<AwsS3BucketWebsiteConfigurationRoutingRuleRedirect.Builder> redirect) Provides the rules to redirect the request if the condition in
This is a convenience method that creates an instance of theCondition
is met.AwsS3BucketWebsiteConfigurationRoutingRuleRedirect.Builder
avoiding the need to create one manually viaAwsS3BucketWebsiteConfigurationRoutingRuleRedirect.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toredirect(AwsS3BucketWebsiteConfigurationRoutingRuleRedirect)
.- Parameters:
redirect
- a consumer that will call methods onAwsS3BucketWebsiteConfigurationRoutingRuleRedirect.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-