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 inConditionis met.Provides the rules to redirect the request if the condition inConditionis met.Methods 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
-
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.Builderavoiding the need to create one manually viaAwsS3BucketWebsiteConfigurationRoutingRuleCondition.builder().When the
Consumercompletes,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
Conditionis met.- Parameters:
redirect- Provides the rules to redirect the request if the condition inConditionis 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 theConditionis met.AwsS3BucketWebsiteConfigurationRoutingRuleRedirect.Builderavoiding the need to create one manually viaAwsS3BucketWebsiteConfigurationRoutingRuleRedirect.builder().When the
Consumercompletes,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:
-