Interface WebsiteConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WebsiteConfiguration.Builder,
,WebsiteConfiguration> SdkBuilder<WebsiteConfiguration.Builder,
,WebsiteConfiguration> SdkPojo
- Enclosing class:
WebsiteConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault WebsiteConfiguration.Builder
errorDocument
(Consumer<ErrorDocument.Builder> errorDocument) The name of the error document for the website.errorDocument
(ErrorDocument errorDocument) The name of the error document for the website.default WebsiteConfiguration.Builder
indexDocument
(Consumer<IndexDocument.Builder> indexDocument) The name of the index document for the website.indexDocument
(IndexDocument indexDocument) The name of the index document for the website.default WebsiteConfiguration.Builder
redirectAllRequestsTo
(Consumer<RedirectAllRequestsTo.Builder> redirectAllRequestsTo) The redirect behavior for every request to this bucket's website endpoint.redirectAllRequestsTo
(RedirectAllRequestsTo redirectAllRequestsTo) The redirect behavior for every request to this bucket's website endpoint.routingRules
(Collection<RoutingRule> routingRules) Rules that define when a redirect is applied and the redirect behavior.routingRules
(Consumer<RoutingRule.Builder>... routingRules) Rules that define when a redirect is applied and the redirect behavior.routingRules
(RoutingRule... routingRules) Rules that define when a redirect is applied and the redirect behavior.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, 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.
-
errorDocument
The name of the error document for the website.
This is a convenience method that creates an instance of theErrorDocument.Builder
avoiding the need to create one manually viaErrorDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrorDocument(ErrorDocument)
.- Parameters:
errorDocument
- a consumer that will call methods onErrorDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
indexDocument
The name of the index document for the website.
- Parameters:
indexDocument
- The name of the index document for the website.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexDocument
The name of the index document for the website.
This is a convenience method that creates an instance of theIndexDocument.Builder
avoiding the need to create one manually viaIndexDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toindexDocument(IndexDocument)
.- Parameters:
indexDocument
- a consumer that will call methods onIndexDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
redirectAllRequestsTo
The redirect behavior for every request to this bucket's website endpoint.
If you specify this property, you can't specify any other property.
- Parameters:
redirectAllRequestsTo
- The redirect behavior for every request to this bucket's website endpoint.If you specify this property, you can't specify any other property.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirectAllRequestsTo
default WebsiteConfiguration.Builder redirectAllRequestsTo(Consumer<RedirectAllRequestsTo.Builder> redirectAllRequestsTo) The redirect behavior for every request to this bucket's website endpoint.
If you specify this property, you can't specify any other property.
RedirectAllRequestsTo.Builder
avoiding the need to create one manually viaRedirectAllRequestsTo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toredirectAllRequestsTo(RedirectAllRequestsTo)
.- Parameters:
redirectAllRequestsTo
- a consumer that will call methods onRedirectAllRequestsTo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
routingRules
Rules that define when a redirect is applied and the redirect behavior.
- Parameters:
routingRules
- Rules that define when a redirect is applied and the redirect behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingRules
Rules that define when a redirect is applied and the redirect behavior.
- Parameters:
routingRules
- Rules that define when a redirect is applied and the redirect behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingRules
Rules that define when a redirect is applied and the redirect behavior.
This is a convenience method that creates an instance of theRoutingRule.Builder
avoiding the need to create one manually viaRoutingRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroutingRules(List<RoutingRule>)
.- Parameters:
routingRules
- a consumer that will call methods onRoutingRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-