Class MetadataConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.MetadataConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetadataConfiguration>
- Enclosing interface:
MetadataConfiguration
@Stability(Stable)
public static final class MetadataConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<MetadataConfiguration>
A builder for
MetadataConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedQueryParameters(List<String> allowedQueryParameters) Sets the value ofMetadataConfiguration.getAllowedQueryParameters()allowedRequestHeaders(List<String> allowedRequestHeaders) Sets the value ofMetadataConfiguration.getAllowedRequestHeaders()allowedResponseHeaders(List<String> allowedResponseHeaders) Sets the value ofMetadataConfiguration.getAllowedResponseHeaders()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedQueryParameters
@Stability(Stable) public MetadataConfiguration.Builder allowedQueryParameters(List<String> allowedQueryParameters) Sets the value ofMetadataConfiguration.getAllowedQueryParameters()- Parameters:
allowedQueryParameters- List of query parameter names to pass through to the target. Constraints:- Array must contain 1-10 items
- Each parameter name must be 1-40 characters
- Cannot be an empty array
- Returns:
this
-
allowedRequestHeaders
@Stability(Stable) public MetadataConfiguration.Builder allowedRequestHeaders(List<String> allowedRequestHeaders) Sets the value ofMetadataConfiguration.getAllowedRequestHeaders()- Parameters:
allowedRequestHeaders- List of request header names to pass through to the target. Constraints:- Array must contain 1-10 items
- Each header name must be 1-100 characters
- Cannot be an empty array
- Returns:
this
-
allowedResponseHeaders
@Stability(Stable) public MetadataConfiguration.Builder allowedResponseHeaders(List<String> allowedResponseHeaders) Sets the value ofMetadataConfiguration.getAllowedResponseHeaders()- Parameters:
allowedResponseHeaders- List of response header names to pass through from the target. Constraints:- Array must contain 1-10 items
- Each header name must be 1-100 characters
- Cannot be an empty array
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MetadataConfiguration>- Returns:
- a new instance of
MetadataConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-