Interface GetBucketWebsiteResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetBucketWebsiteResponse.Builder,GetBucketWebsiteResponse>,S3Response.Builder,SdkBuilder<GetBucketWebsiteResponse.Builder,GetBucketWebsiteResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetBucketWebsiteResponse
@Mutable @NotThreadSafe 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.BuildererrorDocument(Consumer<ErrorDocument.Builder> errorDocument)The object key name of the website error document to use for 4XX class errors.GetBucketWebsiteResponse.BuildererrorDocument(ErrorDocument errorDocument)The object key name of the website error document to use for 4XX class errors.default GetBucketWebsiteResponse.BuilderindexDocument(Consumer<IndexDocument.Builder> indexDocument)The name of the index document for the website (for exampleindex.html).GetBucketWebsiteResponse.BuilderindexDocument(IndexDocument indexDocument)The name of the index document for the website (for exampleindex.html).default GetBucketWebsiteResponse.BuilderredirectAllRequestsTo(Consumer<RedirectAllRequestsTo.Builder> redirectAllRequestsTo)Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.GetBucketWebsiteResponse.BuilderredirectAllRequestsTo(RedirectAllRequestsTo redirectAllRequestsTo)Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.GetBucketWebsiteResponse.BuilderroutingRules(Collection<RoutingRule> routingRules)Rules that define when a redirect is applied and the redirect behavior.GetBucketWebsiteResponse.BuilderroutingRules(Consumer<RoutingRule.Builder>... routingRules)Rules that define when a redirect is applied and the redirect behavior.GetBucketWebsiteResponse.BuilderroutingRules(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, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaRedirectAllRequestsTo.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaIndexDocument.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaErrorDocument.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaRoutingRule.builder().When the
Consumercompletes,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)
-
-