Class StreamDeliveryContentConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.StreamDeliveryContentConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StreamDeliveryContentConfiguration>
- Enclosing interface:
StreamDeliveryContentConfiguration
@Stability(Stable)
public static final class StreamDeliveryContentConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<StreamDeliveryContentConfiguration>
A builder for
StreamDeliveryContentConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.level(StreamDeliveryContentLevel level) Sets the value ofStreamDeliveryContentConfiguration.getLevel()Sets the value ofStreamDeliveryContentConfiguration.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
level
@Stability(Stable) public StreamDeliveryContentConfiguration.Builder level(StreamDeliveryContentLevel level) Sets the value ofStreamDeliveryContentConfiguration.getLevel()- Parameters:
level- The level of content detail to deliver. This parameter is required. There is no default: the level must be chosen explicitly becauseFULL_CONTENTdelivers complete memory record bodies, which can contain personally identifiable information and other sensitive conversation content. UseMETADATA_ONLYunless the record body is required downstream.- Returns:
this
-
type
@Stability(Stable) public StreamDeliveryContentConfiguration.Builder type(StreamDeliveryContentType type) Sets the value ofStreamDeliveryContentConfiguration.getType()- Parameters:
type- The type of content to deliver. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StreamDeliveryContentConfiguration>- Returns:
- a new instance of
StreamDeliveryContentConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-