Class AIGuardrailVersionReference.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.AIGuardrailVersionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AIGuardrailVersionReference>
- Enclosing interface:
AIGuardrailVersionReference
@Stability(Stable)
public static final class AIGuardrailVersionReference.Builder
extends Object
implements software.amazon.jsii.Builder<AIGuardrailVersionReference>
A builder for
AIGuardrailVersionReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaiGuardrailId
(String aiGuardrailId) Sets the value ofAIGuardrailVersionReference.getAiGuardrailId()
assistantId
(String assistantId) Sets the value ofAIGuardrailVersionReference.getAssistantId()
build()
Builds the configured instance.versionNumber
(String versionNumber) Sets the value ofAIGuardrailVersionReference.getVersionNumber()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aiGuardrailId
Sets the value ofAIGuardrailVersionReference.getAiGuardrailId()
- Parameters:
aiGuardrailId
- The AIGuardrailId of the AIGuardrailVersion resource. This parameter is required.- Returns:
this
-
assistantId
Sets the value ofAIGuardrailVersionReference.getAssistantId()
- Parameters:
assistantId
- The AssistantId of the AIGuardrailVersion resource. This parameter is required.- Returns:
this
-
versionNumber
Sets the value ofAIGuardrailVersionReference.getVersionNumber()
- Parameters:
versionNumber
- The VersionNumber of the AIGuardrailVersion resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AIGuardrailVersionReference>
- Returns:
- a new instance of
AIGuardrailVersionReference
- Throws:
NullPointerException
- if any required attribute was not provided
-