Interface AccountEnforcedGuardrailInferenceInputConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AccountEnforcedGuardrailInferenceInputConfiguration.Builder,,AccountEnforcedGuardrailInferenceInputConfiguration> SdkBuilder<AccountEnforcedGuardrailInferenceInputConfiguration.Builder,,AccountEnforcedGuardrailInferenceInputConfiguration> SdkPojo
- Enclosing class:
AccountEnforcedGuardrailInferenceInputConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionguardrailIdentifier(String guardrailIdentifier) Identifier for the guardrail, could be the ID or the ARN.guardrailVersion(String guardrailVersion) Numerical guardrail version.modelEnforcement(Consumer<ModelEnforcement.Builder> modelEnforcement) Model-specific information for the enforced guardrail configuration.modelEnforcement(ModelEnforcement modelEnforcement) Model-specific information for the enforced guardrail configuration.selectiveContentGuarding(Consumer<SelectiveContentGuarding.Builder> selectiveContentGuarding) Selective content guarding controls for enforced guardrails.selectiveContentGuarding(SelectiveContentGuarding selectiveContentGuarding) Selective content guarding controls for enforced guardrails.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
-
guardrailIdentifier
AccountEnforcedGuardrailInferenceInputConfiguration.Builder guardrailIdentifier(String guardrailIdentifier) Identifier for the guardrail, could be the ID or the ARN.
- Parameters:
guardrailIdentifier- Identifier for the guardrail, could be the ID or the ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailVersion
AccountEnforcedGuardrailInferenceInputConfiguration.Builder guardrailVersion(String guardrailVersion) Numerical guardrail version.
- Parameters:
guardrailVersion- Numerical guardrail version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectiveContentGuarding
AccountEnforcedGuardrailInferenceInputConfiguration.Builder selectiveContentGuarding(SelectiveContentGuarding selectiveContentGuarding) Selective content guarding controls for enforced guardrails.
- Parameters:
selectiveContentGuarding- Selective content guarding controls for enforced guardrails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectiveContentGuarding
default AccountEnforcedGuardrailInferenceInputConfiguration.Builder selectiveContentGuarding(Consumer<SelectiveContentGuarding.Builder> selectiveContentGuarding) Selective content guarding controls for enforced guardrails.
This is a convenience method that creates an instance of theSelectiveContentGuarding.Builderavoiding the need to create one manually viaSelectiveContentGuarding.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toselectiveContentGuarding(SelectiveContentGuarding).- Parameters:
selectiveContentGuarding- a consumer that will call methods onSelectiveContentGuarding.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelEnforcement
AccountEnforcedGuardrailInferenceInputConfiguration.Builder modelEnforcement(ModelEnforcement modelEnforcement) Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models
- Parameters:
modelEnforcement- Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelEnforcement
default AccountEnforcedGuardrailInferenceInputConfiguration.Builder modelEnforcement(Consumer<ModelEnforcement.Builder> modelEnforcement) Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models
This is a convenience method that creates an instance of theModelEnforcement.Builderavoiding the need to create one manually viaModelEnforcement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelEnforcement(ModelEnforcement).- Parameters:
modelEnforcement- a consumer that will call methods onModelEnforcement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-