Interface GetBucketWebsiteResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetBucketWebsiteResponse.Builder,
,GetBucketWebsiteResponse> S3Response.Builder
,SdkBuilder<GetBucketWebsiteResponse.Builder,
,GetBucketWebsiteResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetBucketWebsiteResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetBucketWebsiteResponse.Builder
errorDocument
(Consumer<ErrorDocument.Builder> errorDocument) The object key name of the website error document to use for 4XX class errors.errorDocument
(ErrorDocument errorDocument) The object key name of the website error document to use for 4XX class errors.default GetBucketWebsiteResponse.Builder
indexDocument
(Consumer<IndexDocument.Builder> indexDocument) The name of the index document for the website (for exampleindex.html
).indexDocument
(IndexDocument indexDocument) The name of the index document for the website (for exampleindex.html
).default GetBucketWebsiteResponse.Builder
redirectAllRequestsTo
(Consumer<RedirectAllRequestsTo.Builder> redirectAllRequestsTo) Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.redirectAllRequestsTo
(RedirectAllRequestsTo redirectAllRequestsTo) Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.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.services.s3.model.S3Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
redirectAllRequestsTo
Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.
- Parameters:
redirectAllRequestsTo
- Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirectAllRequestsTo
default GetBucketWebsiteResponse.Builder redirectAllRequestsTo(Consumer<RedirectAllRequestsTo.Builder> redirectAllRequestsTo) Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.
This is a convenience method that creates an instance of theRedirectAllRequestsTo.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:
-
indexDocument
The name of the index document for the website (for example
index.html
).- Parameters:
indexDocument
- The name of the index document for the website (for exampleindex.html
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexDocument
default GetBucketWebsiteResponse.Builder indexDocument(Consumer<IndexDocument.Builder> indexDocument) The name of the index document for the website (for example
This is a convenience method that creates an instance of theindex.html
).IndexDocument.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:
-
errorDocument
The object key name of the website error document to use for 4XX class errors.
- Parameters:
errorDocument
- The object key name of the website error document to use for 4XX class errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDocument
default GetBucketWebsiteResponse.Builder errorDocument(Consumer<ErrorDocument.Builder> errorDocument) The object key name of the website error document to use for 4XX class errors.
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:
-
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:
-