Interface GuardrailWordPolicyAssessment.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailWordPolicyAssessment.Builder,GuardrailWordPolicyAssessment>,SdkBuilder<GuardrailWordPolicyAssessment.Builder,GuardrailWordPolicyAssessment>,SdkPojo
- Enclosing class:
- GuardrailWordPolicyAssessment
@Mutable @NotThreadSafe public static interface GuardrailWordPolicyAssessment.Builder extends SdkPojo, CopyableBuilder<GuardrailWordPolicyAssessment.Builder,GuardrailWordPolicyAssessment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GuardrailWordPolicyAssessment.BuildercustomWords(Collection<GuardrailCustomWord> customWords)The custom word details for words defined in the Guardrail filter.GuardrailWordPolicyAssessment.BuildercustomWords(Consumer<GuardrailCustomWord.Builder>... customWords)The custom word details for words defined in the Guardrail filter.GuardrailWordPolicyAssessment.BuildercustomWords(GuardrailCustomWord... customWords)The custom word details for words defined in the Guardrail filter.GuardrailWordPolicyAssessment.BuildermanagedWordLists(Collection<GuardrailManagedWord> managedWordLists)The managed word lists for words defined in the Guardrail filter.GuardrailWordPolicyAssessment.BuildermanagedWordLists(Consumer<GuardrailManagedWord.Builder>... managedWordLists)The managed word lists for words defined in the Guardrail filter.GuardrailWordPolicyAssessment.BuildermanagedWordLists(GuardrailManagedWord... managedWordLists)The managed word lists for words defined in the Guardrail filter.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
customWords
GuardrailWordPolicyAssessment.Builder customWords(Collection<GuardrailCustomWord> customWords)
The custom word details for words defined in the Guardrail filter.
- Parameters:
customWords- The custom word details for words defined in the Guardrail filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customWords
GuardrailWordPolicyAssessment.Builder customWords(GuardrailCustomWord... customWords)
The custom word details for words defined in the Guardrail filter.
- Parameters:
customWords- The custom word details for words defined in the Guardrail filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customWords
GuardrailWordPolicyAssessment.Builder customWords(Consumer<GuardrailCustomWord.Builder>... customWords)
The custom word details for words defined in the Guardrail filter.
This is a convenience method that creates an instance of theGuardrailCustomWord.Builderavoiding the need to create one manually viaGuardrailCustomWord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#customWords(List.) - Parameters:
customWords- a consumer that will call methods onGuardrailCustomWord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#customWords(java.util.Collection)
-
managedWordLists
GuardrailWordPolicyAssessment.Builder managedWordLists(Collection<GuardrailManagedWord> managedWordLists)
The managed word lists for words defined in the Guardrail filter.
- Parameters:
managedWordLists- The managed word lists for words defined in the Guardrail filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordLists
GuardrailWordPolicyAssessment.Builder managedWordLists(GuardrailManagedWord... managedWordLists)
The managed word lists for words defined in the Guardrail filter.
- Parameters:
managedWordLists- The managed word lists for words defined in the Guardrail filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordLists
GuardrailWordPolicyAssessment.Builder managedWordLists(Consumer<GuardrailManagedWord.Builder>... managedWordLists)
The managed word lists for words defined in the Guardrail filter.
This is a convenience method that creates an instance of theGuardrailManagedWord.Builderavoiding the need to create one manually viaGuardrailManagedWord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#managedWordLists(List.) - Parameters:
managedWordLists- a consumer that will call methods onGuardrailManagedWord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#managedWordLists(java.util.Collection)
-
-