Interface BedrockGuardrails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BedrockGuardrails.Builder,,BedrockGuardrails> SdkBuilder<BedrockGuardrails.Builder,,BedrockGuardrails> SdkPojo
- Enclosing class:
BedrockGuardrails
-
Method Summary
Modifier and TypeMethodDescriptiondefault BedrockGuardrails.Builderdisable(Consumer<DisableBedrockGuardrails.Builder> disable) Turns off the use of Amazon Bedrock Guardrails.disable(DisableBedrockGuardrails disable) Turns off the use of Amazon Bedrock Guardrails.default BedrockGuardrails.BuilderprotectRequestAndResponse(Consumer<BedrockGuardrailsRequestAndResponse.Builder> protectRequestAndResponse) Uses Amazon Bedrock Guardrails to inspect web requests and the responses to them.protectRequestAndResponse(BedrockGuardrailsRequestAndResponse protectRequestAndResponse) Uses Amazon Bedrock Guardrails to inspect web requests and the responses to them.default BedrockGuardrails.BuilderprotectRequestOnly(Consumer<BedrockGuardrailsRequestOnly.Builder> protectRequestOnly) Uses Amazon Bedrock Guardrails to inspect web requests.protectRequestOnly(BedrockGuardrailsRequestOnly protectRequestOnly) Uses Amazon Bedrock Guardrails to inspect web requests.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
-
disable
Turns off the use of Amazon Bedrock Guardrails. The rule group continues to run its own inspections.
JSON specification:
"Disable": {}- Parameters:
disable- Turns off the use of Amazon Bedrock Guardrails. The rule group continues to run its own inspections.JSON specification:
"Disable": {}- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disable
Turns off the use of Amazon Bedrock Guardrails. The rule group continues to run its own inspections.
JSON specification:
This is a convenience method that creates an instance of the"Disable": {}DisableBedrockGuardrails.Builderavoiding the need to create one manually viaDisableBedrockGuardrails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todisable(DisableBedrockGuardrails).- Parameters:
disable- a consumer that will call methods onDisableBedrockGuardrails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protectRequestOnly
Uses Amazon Bedrock Guardrails to inspect web requests.
- Parameters:
protectRequestOnly- Uses Amazon Bedrock Guardrails to inspect web requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectRequestOnly
default BedrockGuardrails.Builder protectRequestOnly(Consumer<BedrockGuardrailsRequestOnly.Builder> protectRequestOnly) Uses Amazon Bedrock Guardrails to inspect web requests.
This is a convenience method that creates an instance of theBedrockGuardrailsRequestOnly.Builderavoiding the need to create one manually viaBedrockGuardrailsRequestOnly.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprotectRequestOnly(BedrockGuardrailsRequestOnly).- Parameters:
protectRequestOnly- a consumer that will call methods onBedrockGuardrailsRequestOnly.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protectRequestAndResponse
BedrockGuardrails.Builder protectRequestAndResponse(BedrockGuardrailsRequestAndResponse protectRequestAndResponse) Uses Amazon Bedrock Guardrails to inspect web requests and the responses to them.
- Parameters:
protectRequestAndResponse- Uses Amazon Bedrock Guardrails to inspect web requests and the responses to them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectRequestAndResponse
default BedrockGuardrails.Builder protectRequestAndResponse(Consumer<BedrockGuardrailsRequestAndResponse.Builder> protectRequestAndResponse) Uses Amazon Bedrock Guardrails to inspect web requests and the responses to them.
This is a convenience method that creates an instance of theBedrockGuardrailsRequestAndResponse.Builderavoiding the need to create one manually viaBedrockGuardrailsRequestAndResponse.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprotectRequestAndResponse(BedrockGuardrailsRequestAndResponse).- Parameters:
protectRequestAndResponse- a consumer that will call methods onBedrockGuardrailsRequestAndResponse.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-