Class GuardrailVersionReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.bedrock.GuardrailVersionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardrailVersionReference>
- Enclosing interface:
GuardrailVersionReference
@Stability(Stable)
public static final class GuardrailVersionReference.Builder
extends Object
implements software.amazon.jsii.Builder<GuardrailVersionReference>
A builder for
GuardrailVersionReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.guardrailId(String guardrailId) Sets the value ofGuardrailVersionReference.getGuardrailId()Sets the value ofGuardrailVersionReference.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
guardrailId
Sets the value ofGuardrailVersionReference.getGuardrailId()- Parameters:
guardrailId- The GuardrailId of the GuardrailVersion resource. This parameter is required.- Returns:
this
-
version
Sets the value ofGuardrailVersionReference.getVersion()- Parameters:
version- The Version of the GuardrailVersion resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GuardrailVersionReference>- Returns:
- a new instance of
GuardrailVersionReference - Throws:
NullPointerException- if any required attribute was not provided
-