Interface AIGuardrailSensitiveInformationPolicyConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AIGuardrailSensitiveInformationPolicyConfig.Builder,
,AIGuardrailSensitiveInformationPolicyConfig> SdkBuilder<AIGuardrailSensitiveInformationPolicyConfig.Builder,
,AIGuardrailSensitiveInformationPolicyConfig> SdkPojo
- Enclosing class:
AIGuardrailSensitiveInformationPolicyConfig
@Mutable
@NotThreadSafe
public static interface AIGuardrailSensitiveInformationPolicyConfig.Builder
extends SdkPojo, CopyableBuilder<AIGuardrailSensitiveInformationPolicyConfig.Builder,AIGuardrailSensitiveInformationPolicyConfig>
-
Method Summary
Modifier and TypeMethodDescriptionpiiEntitiesConfig
(Collection<GuardrailPiiEntityConfig> piiEntitiesConfig) A list of PII entities to configure to the AI Guardrail.piiEntitiesConfig
(Consumer<GuardrailPiiEntityConfig.Builder>... piiEntitiesConfig) A list of PII entities to configure to the AI Guardrail.piiEntitiesConfig
(GuardrailPiiEntityConfig... piiEntitiesConfig) A list of PII entities to configure to the AI Guardrail.regexesConfig
(Collection<GuardrailRegexConfig> regexesConfig) A list of regular expressions to configure to the AI Guardrail.regexesConfig
(Consumer<GuardrailRegexConfig.Builder>... regexesConfig) A list of regular expressions to configure to the AI Guardrail.regexesConfig
(GuardrailRegexConfig... regexesConfig) A list of regular expressions to configure to the AI Guardrail.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 Details
-
piiEntitiesConfig
AIGuardrailSensitiveInformationPolicyConfig.Builder piiEntitiesConfig(Collection<GuardrailPiiEntityConfig> piiEntitiesConfig) A list of PII entities to configure to the AI Guardrail.
- Parameters:
piiEntitiesConfig
- A list of PII entities to configure to the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
piiEntitiesConfig
AIGuardrailSensitiveInformationPolicyConfig.Builder piiEntitiesConfig(GuardrailPiiEntityConfig... piiEntitiesConfig) A list of PII entities to configure to the AI Guardrail.
- Parameters:
piiEntitiesConfig
- A list of PII entities to configure to the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
piiEntitiesConfig
AIGuardrailSensitiveInformationPolicyConfig.Builder piiEntitiesConfig(Consumer<GuardrailPiiEntityConfig.Builder>... piiEntitiesConfig) A list of PII entities to configure to the AI Guardrail.
This is a convenience method that creates an instance of theGuardrailPiiEntityConfig.Builder
avoiding the need to create one manually viaGuardrailPiiEntityConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topiiEntitiesConfig(List<GuardrailPiiEntityConfig>)
.- Parameters:
piiEntitiesConfig
- a consumer that will call methods onGuardrailPiiEntityConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
regexesConfig
AIGuardrailSensitiveInformationPolicyConfig.Builder regexesConfig(Collection<GuardrailRegexConfig> regexesConfig) A list of regular expressions to configure to the AI Guardrail.
- Parameters:
regexesConfig
- A list of regular expressions to configure to the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regexesConfig
AIGuardrailSensitiveInformationPolicyConfig.Builder regexesConfig(GuardrailRegexConfig... regexesConfig) A list of regular expressions to configure to the AI Guardrail.
- Parameters:
regexesConfig
- A list of regular expressions to configure to the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regexesConfig
AIGuardrailSensitiveInformationPolicyConfig.Builder regexesConfig(Consumer<GuardrailRegexConfig.Builder>... regexesConfig) A list of regular expressions to configure to the AI Guardrail.
This is a convenience method that creates an instance of theGuardrailRegexConfig.Builder
avoiding the need to create one manually viaGuardrailRegexConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toregexesConfig(List<GuardrailRegexConfig>)
.- Parameters:
regexesConfig
- a consumer that will call methods onGuardrailRegexConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-