Class CrossRegionInferenceProfileProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.CrossRegionInferenceProfileProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CrossRegionInferenceProfileProps>
- Enclosing interface:
CrossRegionInferenceProfileProps
@Stability(Experimental)
public static final class CrossRegionInferenceProfileProps.Builder
extends Object
implements software.amazon.jsii.Builder<CrossRegionInferenceProfileProps>
A builder for
CrossRegionInferenceProfileProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.geoRegion
(CrossRegionInferenceProfileRegion geoRegion) Sets the value ofCrossRegionInferenceProfileProps.getGeoRegion()
model
(BedrockFoundationModel model) Sets the value ofCrossRegionInferenceProfileProps.getModel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
geoRegion
@Stability(Experimental) public CrossRegionInferenceProfileProps.Builder geoRegion(CrossRegionInferenceProfileRegion geoRegion) Sets the value ofCrossRegionInferenceProfileProps.getGeoRegion()
- Parameters:
geoRegion
- The geographic region where the traffic is going to be distributed. This parameter is required. Routing factors in user traffic, demand and utilization of resources.- Returns:
this
-
model
@Stability(Experimental) public CrossRegionInferenceProfileProps.Builder model(BedrockFoundationModel model) Sets the value ofCrossRegionInferenceProfileProps.getModel()
- Parameters:
model
- A foundation model supporting cross-region inference. This parameter is required. The model must have cross-region support enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CrossRegionInferenceProfileProps>
- Returns:
- a new instance of
CrossRegionInferenceProfileProps
- Throws:
NullPointerException
- if any required attribute was not provided
-