Interface ApplyGuardrailResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockRuntimeResponse.Builder,Buildable,CopyableBuilder<ApplyGuardrailResponse.Builder,ApplyGuardrailResponse>,SdkBuilder<ApplyGuardrailResponse.Builder,ApplyGuardrailResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ApplyGuardrailResponse
public static interface ApplyGuardrailResponse.Builder extends BedrockRuntimeResponse.Builder, SdkPojo, CopyableBuilder<ApplyGuardrailResponse.Builder,ApplyGuardrailResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ApplyGuardrailResponse.Builderaction(String action)The action taken in the response from the guardrail.ApplyGuardrailResponse.Builderaction(GuardrailAction action)The action taken in the response from the guardrail.ApplyGuardrailResponse.Builderassessments(Collection<GuardrailAssessment> assessments)The assessment details in the response from the guardrail.ApplyGuardrailResponse.Builderassessments(Consumer<GuardrailAssessment.Builder>... assessments)The assessment details in the response from the guardrail.ApplyGuardrailResponse.Builderassessments(GuardrailAssessment... assessments)The assessment details in the response from the guardrail.ApplyGuardrailResponse.Builderoutputs(Collection<GuardrailOutputContent> outputs)The output details in the response from the guardrail.ApplyGuardrailResponse.Builderoutputs(Consumer<GuardrailOutputContent.Builder>... outputs)The output details in the response from the guardrail.ApplyGuardrailResponse.Builderoutputs(GuardrailOutputContent... outputs)The output details in the response from the guardrail.default ApplyGuardrailResponse.Builderusage(Consumer<GuardrailUsage.Builder> usage)The usage details in the response from the guardrail.ApplyGuardrailResponse.Builderusage(GuardrailUsage usage)The usage details in the response from the guardrail.-
Methods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeResponse.Builder
build, responseMetadata, responseMetadata
-
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
usage
ApplyGuardrailResponse.Builder usage(GuardrailUsage usage)
The usage details in the response from the guardrail.
- Parameters:
usage- The usage details in the response from the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
default ApplyGuardrailResponse.Builder usage(Consumer<GuardrailUsage.Builder> usage)
The usage details in the response from the guardrail.
This is a convenience method that creates an instance of theGuardrailUsage.Builderavoiding the need to create one manually viaGuardrailUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousage(GuardrailUsage).- Parameters:
usage- a consumer that will call methods onGuardrailUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
usage(GuardrailUsage)
-
action
ApplyGuardrailResponse.Builder action(String action)
The action taken in the response from the guardrail.
- Parameters:
action- The action taken in the response from the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailAction,GuardrailAction
-
action
ApplyGuardrailResponse.Builder action(GuardrailAction action)
The action taken in the response from the guardrail.
- Parameters:
action- The action taken in the response from the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailAction,GuardrailAction
-
outputs
ApplyGuardrailResponse.Builder outputs(Collection<GuardrailOutputContent> outputs)
The output details in the response from the guardrail.
- Parameters:
outputs- The output details in the response from the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputs
ApplyGuardrailResponse.Builder outputs(GuardrailOutputContent... outputs)
The output details in the response from the guardrail.
- Parameters:
outputs- The output details in the response from the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputs
ApplyGuardrailResponse.Builder outputs(Consumer<GuardrailOutputContent.Builder>... outputs)
The output details in the response from the guardrail.
This is a convenience method that creates an instance of theGuardrailOutputContent.Builderavoiding the need to create one manually viaGuardrailOutputContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#outputs(List.) - Parameters:
outputs- a consumer that will call methods onGuardrailOutputContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#outputs(java.util.Collection)
-
assessments
ApplyGuardrailResponse.Builder assessments(Collection<GuardrailAssessment> assessments)
The assessment details in the response from the guardrail.
- Parameters:
assessments- The assessment details in the response from the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessments
ApplyGuardrailResponse.Builder assessments(GuardrailAssessment... assessments)
The assessment details in the response from the guardrail.
- Parameters:
assessments- The assessment details in the response from the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessments
ApplyGuardrailResponse.Builder assessments(Consumer<GuardrailAssessment.Builder>... assessments)
The assessment details in the response from the guardrail.
This is a convenience method that creates an instance of theGuardrailAssessment.Builderavoiding the need to create one manually viaGuardrailAssessment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#assessments(List.) - Parameters:
assessments- a consumer that will call methods onGuardrailAssessment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#assessments(java.util.Collection)
-
-