Interface WebsiteConfiguration.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<WebsiteConfiguration.Builder,WebsiteConfiguration>
,SdkBuilder<WebsiteConfiguration.Builder,WebsiteConfiguration>
,SdkPojo
- Enclosing class:
- WebsiteConfiguration
public static interface WebsiteConfiguration.Builder extends SdkPojo, CopyableBuilder<WebsiteConfiguration.Builder,WebsiteConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default WebsiteConfiguration.Builder
errorDocument(Consumer<ErrorDocument.Builder> errorDocument)
The name of the error document for the website.WebsiteConfiguration.Builder
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.WebsiteConfiguration.Builder
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.WebsiteConfiguration.Builder
redirectAllRequestsTo(RedirectAllRequestsTo redirectAllRequestsTo)
The redirect behavior for every request to this bucket's website endpoint.WebsiteConfiguration.Builder
routingRules(Collection<RoutingRule> routingRules)
Rules that define when a redirect is applied and the redirect behavior.WebsiteConfiguration.Builder
routingRules(Consumer<RoutingRule.Builder>... routingRules)
Rules that define when a redirect is applied and the redirect behavior.WebsiteConfiguration.Builder
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 Detail
-
errorDocument
WebsiteConfiguration.Builder errorDocument(ErrorDocument 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
default WebsiteConfiguration.Builder errorDocument(Consumer<ErrorDocument.Builder> 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:
errorDocument(ErrorDocument)
-
indexDocument
WebsiteConfiguration.Builder indexDocument(IndexDocument 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
default WebsiteConfiguration.Builder indexDocument(Consumer<IndexDocument.Builder> 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:
indexDocument(IndexDocument)
-
redirectAllRequestsTo
WebsiteConfiguration.Builder redirectAllRequestsTo(RedirectAllRequestsTo 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:
redirectAllRequestsTo(RedirectAllRequestsTo)
-
routingRules
WebsiteConfiguration.Builder routingRules(Collection<RoutingRule> 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
WebsiteConfiguration.Builder routingRules(RoutingRule... 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
WebsiteConfiguration.Builder routingRules(Consumer<RoutingRule.Builder>... 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 to#routingRules(List
.) - 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:
#routingRules(java.util.Collection
)
-
-