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
Modifier and TypeMethodDescriptioncustomWords(Collection<GuardrailCustomWord> customWords) Custom words in the assessment.customWords(Consumer<GuardrailCustomWord.Builder>... customWords) Custom words in the assessment.customWords(GuardrailCustomWord... customWords) Custom words in the assessment.managedWordLists(Collection<GuardrailManagedWord> managedWordLists) Managed word lists in the assessment.managedWordLists(Consumer<GuardrailManagedWord.Builder>... managedWordLists) Managed word lists in the assessment.managedWordLists(GuardrailManagedWord... managedWordLists) Managed word lists in the assessment.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
Custom words in the assessment.
- Parameters:
customWords- Custom words in the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customWords
Custom words in the assessment.
- Parameters:
customWords- Custom words in the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customWords
GuardrailWordPolicyAssessment.Builder customWords(Consumer<GuardrailCustomWord.Builder>... customWords) Custom words in the assessment.
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) Managed word lists in the assessment.
- Parameters:
managedWordLists- Managed word lists in the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordLists
Managed word lists in the assessment.
- Parameters:
managedWordLists- Managed word lists in the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordLists
GuardrailWordPolicyAssessment.Builder managedWordLists(Consumer<GuardrailManagedWord.Builder>... managedWordLists) Managed word lists in the assessment.
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:
-