Interface GuardrailWordPolicyAssessment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailWordPolicyAssessment.Builder,,GuardrailWordPolicyAssessment> SdkBuilder<GuardrailWordPolicyAssessment.Builder,,GuardrailWordPolicyAssessment> SdkPojo
- Enclosing class:
GuardrailWordPolicyAssessment
public static interface GuardrailWordPolicyAssessment.Builder
extends SdkPojo, CopyableBuilder<GuardrailWordPolicyAssessment.Builder,GuardrailWordPolicyAssessment>
-
Method Summary
Modifier and TypeMethodDescriptioncustomWords(Collection<GuardrailCustomWord> customWords) The custom word details for words defined in the Guardrail filter.customWords(Consumer<GuardrailCustomWord.Builder>... customWords) The custom word details for words defined in the Guardrail filter.customWords(GuardrailCustomWord... customWords) The custom word details for words defined in the Guardrail filter.managedWordLists(Collection<GuardrailManagedWord> managedWordLists) The managed word lists for words defined in the Guardrail filter.managedWordLists(Consumer<GuardrailManagedWord.Builder>... managedWordLists) The managed word lists for words defined in the Guardrail filter.managedWordLists(GuardrailManagedWord... managedWordLists) The managed word lists for words defined in the Guardrail filter.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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 tocustomWords(List<GuardrailCustomWord>).- 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:
-
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
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 tomanagedWordLists(List<GuardrailManagedWord>).- 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:
-