Interface UrlRewriteConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UrlRewriteConfig.Builder,
,UrlRewriteConfig> SdkBuilder<UrlRewriteConfig.Builder,
,UrlRewriteConfig> SdkPojo
- Enclosing class:
UrlRewriteConfig
@Mutable
@NotThreadSafe
public static interface UrlRewriteConfig.Builder
extends SdkPojo, CopyableBuilder<UrlRewriteConfig.Builder,UrlRewriteConfig>
-
Method Summary
Modifier and TypeMethodDescriptionrewrites
(Collection<RewriteConfig> rewrites) The URL rewrite transform to apply to the request.rewrites
(Consumer<RewriteConfig.Builder>... rewrites) The URL rewrite transform to apply to the request.rewrites
(RewriteConfig... rewrites) The URL rewrite transform to apply to the request.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, sdkFieldNameToField, sdkFields
-
Method Details
-
rewrites
The URL rewrite transform to apply to the request. The transform consists of a regular expression to match and a replacement string.
- Parameters:
rewrites
- The URL rewrite transform to apply to the request. The transform consists of a regular expression to match and a replacement string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rewrites
The URL rewrite transform to apply to the request. The transform consists of a regular expression to match and a replacement string.
- Parameters:
rewrites
- The URL rewrite transform to apply to the request. The transform consists of a regular expression to match and a replacement string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rewrites
The URL rewrite transform to apply to the request. The transform consists of a regular expression to match and a replacement string.
This is a convenience method that creates an instance of theRewriteConfig.Builder
avoiding the need to create one manually viaRewriteConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torewrites(List<RewriteConfig>)
.- Parameters:
rewrites
- a consumer that will call methods onRewriteConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-