Class CfnGuardrailVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrailVersionProps>
- Enclosing interface:
CfnGuardrailVersionProps
@Stability(Stable)
public static final class CfnGuardrailVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrailVersionProps>
A builder for
CfnGuardrailVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnGuardrailVersionProps.getDescription()
guardrailIdentifier
(String guardrailIdentifier) Sets the value ofCfnGuardrailVersionProps.getGuardrailIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
guardrailIdentifier
@Stability(Stable) public CfnGuardrailVersionProps.Builder guardrailIdentifier(String guardrailIdentifier) Sets the value ofCfnGuardrailVersionProps.getGuardrailIdentifier()
- Parameters:
guardrailIdentifier
- The unique identifier of the guardrail. This parameter is required. This can be an ID or the ARN.- Returns:
this
-
description
Sets the value ofCfnGuardrailVersionProps.getDescription()
- Parameters:
description
- A description of the guardrail version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGuardrailVersionProps>
- Returns:
- a new instance of
CfnGuardrailVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-