Interface BedrockGuardrailDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BedrockGuardrailDetails.Builder,,BedrockGuardrailDetails> SdkBuilder<BedrockGuardrailDetails.Builder,,BedrockGuardrailDetails> SdkPojo
- Enclosing class:
BedrockGuardrailDetails
-
Method Summary
Modifier and TypeMethodDescriptioncontentPolicyFilters(Collection<ContentPolicyFilter> contentPolicyFilters) The list of content policy filters that matched during the guardrail evaluation.contentPolicyFilters(Consumer<ContentPolicyFilter.Builder>... contentPolicyFilters) The list of content policy filters that matched during the guardrail evaluation.contentPolicyFilters(ContentPolicyFilter... contentPolicyFilters) The list of content policy filters that matched during the guardrail evaluation.guardrailAction(String guardrailAction) Indicates whether the guardrail intervened or not.guardrailAction(GuardrailAction guardrailAction) Indicates whether the guardrail intervened or not.guardrailArn(String guardrailArn) Deprecated.Use guardrails list insteadguardrails(Collection<BedrockGuardrail> guardrails) The list of Bedrock guardrails associated with the finding.guardrails(Consumer<BedrockGuardrail.Builder>... guardrails) The list of Bedrock guardrails associated with the finding.guardrails(BedrockGuardrail... guardrails) The list of Bedrock guardrails associated with the finding.guardrailSource(String guardrailSource) Indicates whether the guardrail was applied on the input or output of the model invocation.guardrailSource(GuardrailSource guardrailSource) Indicates whether the guardrail was applied on the input or output of the model invocation.guardrailVersion(String guardrailVersion) Deprecated.Use guardrails list insteadMethods 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
-
guardrailArn
Deprecated.Use guardrails list insteadThe ARN of the Bedrock guardrail. This field is deprecated. Use the
guardrailslist instead.- Parameters:
guardrailArn- The ARN of the Bedrock guardrail. This field is deprecated. Use theguardrailslist instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailVersion
Deprecated.Use guardrails list insteadThe version of the Bedrock guardrail. This field is deprecated. Use the
guardrailslist instead.- Parameters:
guardrailVersion- The version of the Bedrock guardrail. This field is deprecated. Use theguardrailslist instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrails
The list of Bedrock guardrails associated with the finding.
- Parameters:
guardrails- The list of Bedrock guardrails associated with the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrails
The list of Bedrock guardrails associated with the finding.
- Parameters:
guardrails- The list of Bedrock guardrails associated with the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrails
The list of Bedrock guardrails associated with the finding.
This is a convenience method that creates an instance of theBedrockGuardrail.Builderavoiding the need to create one manually viaBedrockGuardrail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrails(List<BedrockGuardrail>).- Parameters:
guardrails- a consumer that will call methods onBedrockGuardrail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
guardrailAction
Indicates whether the guardrail intervened or not.
- Parameters:
guardrailAction- Indicates whether the guardrail intervened or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
guardrailAction
Indicates whether the guardrail intervened or not.
- Parameters:
guardrailAction- Indicates whether the guardrail intervened or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
guardrailSource
Indicates whether the guardrail was applied on the input or output of the model invocation.
- Parameters:
guardrailSource- Indicates whether the guardrail was applied on the input or output of the model invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
guardrailSource
Indicates whether the guardrail was applied on the input or output of the model invocation.
- Parameters:
guardrailSource- Indicates whether the guardrail was applied on the input or output of the model invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentPolicyFilters
BedrockGuardrailDetails.Builder contentPolicyFilters(Collection<ContentPolicyFilter> contentPolicyFilters) The list of content policy filters that matched during the guardrail evaluation.
- Parameters:
contentPolicyFilters- The list of content policy filters that matched during the guardrail evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentPolicyFilters
The list of content policy filters that matched during the guardrail evaluation.
- Parameters:
contentPolicyFilters- The list of content policy filters that matched during the guardrail evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentPolicyFilters
BedrockGuardrailDetails.Builder contentPolicyFilters(Consumer<ContentPolicyFilter.Builder>... contentPolicyFilters) The list of content policy filters that matched during the guardrail evaluation.
This is a convenience method that creates an instance of theContentPolicyFilter.Builderavoiding the need to create one manually viaContentPolicyFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentPolicyFilters(List<ContentPolicyFilter>).- Parameters:
contentPolicyFilters- a consumer that will call methods onContentPolicyFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-