Interface GetBucketWebsiteResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetBucketWebsiteResponse.Builder,GetBucketWebsiteResponse>
,S3Response.Builder
,SdkBuilder<GetBucketWebsiteResponse.Builder,GetBucketWebsiteResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetBucketWebsiteResponse
public static interface GetBucketWebsiteResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<GetBucketWebsiteResponse.Builder,GetBucketWebsiteResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetBucketWebsiteResponse.Builder
errorDocument(Consumer<ErrorDocument.Builder> errorDocument)
The object key name of the website error document to use for 4XX class errors.GetBucketWebsiteResponse.Builder
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
).GetBucketWebsiteResponse.Builder
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.GetBucketWebsiteResponse.Builder
redirectAllRequestsTo(RedirectAllRequestsTo redirectAllRequestsTo)
Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.GetBucketWebsiteResponse.Builder
routingRules(Collection<RoutingRule> routingRules)
Rules that define when a redirect is applied and the redirect behavior.GetBucketWebsiteResponse.Builder
routingRules(Consumer<RoutingRule.Builder>... routingRules)
Rules that define when a redirect is applied and the redirect behavior.GetBucketWebsiteResponse.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.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 Detail
-
redirectAllRequestsTo
GetBucketWebsiteResponse.Builder redirectAllRequestsTo(RedirectAllRequestsTo 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:
redirectAllRequestsTo(RedirectAllRequestsTo)
-
indexDocument
GetBucketWebsiteResponse.Builder indexDocument(IndexDocument 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:
indexDocument(IndexDocument)
-
errorDocument
GetBucketWebsiteResponse.Builder errorDocument(ErrorDocument 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:
errorDocument(ErrorDocument)
-
routingRules
GetBucketWebsiteResponse.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
GetBucketWebsiteResponse.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
GetBucketWebsiteResponse.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
)
-
-