Interface AwsS3BucketWebsiteConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsS3BucketWebsiteConfiguration.Builder,
,AwsS3BucketWebsiteConfiguration> SdkBuilder<AwsS3BucketWebsiteConfiguration.Builder,
,AwsS3BucketWebsiteConfiguration> SdkPojo
- Enclosing class:
AwsS3BucketWebsiteConfiguration
@Mutable
@NotThreadSafe
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
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
-
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.Builder
avoiding the need to create one manually viaAwsS3BucketWebsiteConfigurationRedirectTo.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaAwsS3BucketWebsiteConfigurationRoutingRule.builder()
.When the
Consumer
completes,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:
-