Interface GuardrailChecksUsageResults.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailChecksUsageResults.Builder,,GuardrailChecksUsageResults> SdkBuilder<GuardrailChecksUsageResults.Builder,,GuardrailChecksUsageResults> SdkPojo
- Enclosing class:
GuardrailChecksUsageResults
-
Method Summary
Modifier and TypeMethodDescriptioncontentFilter(Consumer<GuardrailChecksContentFilterUsage.Builder> contentFilter) The text unit usage for the content filter check.contentFilter(GuardrailChecksContentFilterUsage contentFilter) The text unit usage for the content filter check.promptAttack(Consumer<GuardrailChecksPromptAttackUsage.Builder> promptAttack) The text unit usage for the prompt attack check.promptAttack(GuardrailChecksPromptAttackUsage promptAttack) The text unit usage for the prompt attack check.sensitiveInformation(Consumer<GuardrailChecksSensitiveInformationUsage.Builder> sensitiveInformation) The text unit usage for the sensitive information check.sensitiveInformation(GuardrailChecksSensitiveInformationUsage sensitiveInformation) The text unit usage for the sensitive information check.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
-
contentFilter
The text unit usage for the content filter check.
- Parameters:
contentFilter- The text unit usage for the content filter check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentFilter
default GuardrailChecksUsageResults.Builder contentFilter(Consumer<GuardrailChecksContentFilterUsage.Builder> contentFilter) The text unit usage for the content filter check.
This is a convenience method that creates an instance of theGuardrailChecksContentFilterUsage.Builderavoiding the need to create one manually viaGuardrailChecksContentFilterUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentFilter(GuardrailChecksContentFilterUsage).- Parameters:
contentFilter- a consumer that will call methods onGuardrailChecksContentFilterUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
promptAttack
The text unit usage for the prompt attack check.
- Parameters:
promptAttack- The text unit usage for the prompt attack check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptAttack
default GuardrailChecksUsageResults.Builder promptAttack(Consumer<GuardrailChecksPromptAttackUsage.Builder> promptAttack) The text unit usage for the prompt attack check.
This is a convenience method that creates an instance of theGuardrailChecksPromptAttackUsage.Builderavoiding the need to create one manually viaGuardrailChecksPromptAttackUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topromptAttack(GuardrailChecksPromptAttackUsage).- Parameters:
promptAttack- a consumer that will call methods onGuardrailChecksPromptAttackUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sensitiveInformation
GuardrailChecksUsageResults.Builder sensitiveInformation(GuardrailChecksSensitiveInformationUsage sensitiveInformation) The text unit usage for the sensitive information check.
- Parameters:
sensitiveInformation- The text unit usage for the sensitive information check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sensitiveInformation
default GuardrailChecksUsageResults.Builder sensitiveInformation(Consumer<GuardrailChecksSensitiveInformationUsage.Builder> sensitiveInformation) The text unit usage for the sensitive information check.
This is a convenience method that creates an instance of theGuardrailChecksSensitiveInformationUsage.Builderavoiding the need to create one manually viaGuardrailChecksSensitiveInformationUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosensitiveInformation(GuardrailChecksSensitiveInformationUsage).- Parameters:
sensitiveInformation- a consumer that will call methods onGuardrailChecksSensitiveInformationUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-