Interface AwsS3BucketWebsiteConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsS3BucketWebsiteConfiguration.Builder,,AwsS3BucketWebsiteConfiguration> SdkBuilder<AwsS3BucketWebsiteConfiguration.Builder,,AwsS3BucketWebsiteConfiguration> SdkPojo
- Enclosing class:
AwsS3BucketWebsiteConfiguration
public static interface AwsS3BucketWebsiteConfiguration.Builder
extends SdkPojo, CopyableBuilder<AwsS3BucketWebsiteConfiguration.Builder,AwsS3BucketWebsiteConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionerrorDocument(String errorDocument) The name of the error document for the website.indexDocumentSuffix(String indexDocumentSuffix) The name of the index document for the website.redirectAllRequestsTo(Consumer<AwsS3BucketWebsiteConfigurationRedirectTo.Builder> redirectAllRequestsTo) The redirect behavior for requests to the website.redirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo redirectAllRequestsTo) The redirect behavior for requests to the website.routingRules(Collection<AwsS3BucketWebsiteConfigurationRoutingRule> routingRules) The rules for applying redirects for requests to the website.routingRules(Consumer<AwsS3BucketWebsiteConfigurationRoutingRule.Builder>... routingRules) The rules for applying redirects for requests to the website.routingRules(AwsS3BucketWebsiteConfigurationRoutingRule... routingRules) The rules for applying redirects for requests to the website.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
-
errorDocument
The name of the error document for the website.
- Parameters:
errorDocument- The name of the error document for the website.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexDocumentSuffix
The name of the index document for the website.
- Parameters:
indexDocumentSuffix- The name of the index document for the website.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirectAllRequestsTo
AwsS3BucketWebsiteConfiguration.Builder redirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo redirectAllRequestsTo) The redirect behavior for requests to the website.
- Parameters:
redirectAllRequestsTo- The redirect behavior for requests to the website.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirectAllRequestsTo
default AwsS3BucketWebsiteConfiguration.Builder redirectAllRequestsTo(Consumer<AwsS3BucketWebsiteConfigurationRedirectTo.Builder> redirectAllRequestsTo) The redirect behavior for requests to the website.
This is a convenience method that creates an instance of theAwsS3BucketWebsiteConfigurationRedirectTo.Builderavoiding the need to create one manually viaAwsS3BucketWebsiteConfigurationRedirectTo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toredirectAllRequestsTo(AwsS3BucketWebsiteConfigurationRedirectTo).- Parameters:
redirectAllRequestsTo- a consumer that will call methods onAwsS3BucketWebsiteConfigurationRedirectTo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
routingRules
AwsS3BucketWebsiteConfiguration.Builder routingRules(Collection<AwsS3BucketWebsiteConfigurationRoutingRule> routingRules) The rules for applying redirects for requests to the website.
- Parameters:
routingRules- The rules for applying redirects for requests to the website.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingRules
AwsS3BucketWebsiteConfiguration.Builder routingRules(AwsS3BucketWebsiteConfigurationRoutingRule... routingRules) The rules for applying redirects for requests to the website.
- Parameters:
routingRules- The rules for applying redirects for requests to the website.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingRules
AwsS3BucketWebsiteConfiguration.Builder routingRules(Consumer<AwsS3BucketWebsiteConfigurationRoutingRule.Builder>... routingRules) The rules for applying redirects for requests to the website.
This is a convenience method that creates an instance of theAwsS3BucketWebsiteConfigurationRoutingRule.Builderavoiding the need to create one manually viaAwsS3BucketWebsiteConfigurationRoutingRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toroutingRules(List<AwsS3BucketWebsiteConfigurationRoutingRule>).- Parameters:
routingRules- a consumer that will call methods onAwsS3BucketWebsiteConfigurationRoutingRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-