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