Interface ListGuardrailsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockResponse.Builder,Buildable,CopyableBuilder<ListGuardrailsResponse.Builder,,ListGuardrailsResponse> SdkBuilder<ListGuardrailsResponse.Builder,,ListGuardrailsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListGuardrailsResponse
public static interface ListGuardrailsResponse.Builder
extends BedrockResponse.Builder, SdkPojo, CopyableBuilder<ListGuardrailsResponse.Builder,ListGuardrailsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionguardrails(Collection<GuardrailSummary> guardrails) A list of objects, each of which contains details about a guardrail.guardrails(Consumer<GuardrailSummary.Builder>... guardrails) A list of objects, each of which contains details about a guardrail.guardrails(GuardrailSummary... guardrails) A list of objects, each of which contains details about a guardrail.If there are more results than were returned in the response, the response returns anextTokenthat you can send in anotherListGuardrailsrequest to see the next batch of results.Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
guardrails
A list of objects, each of which contains details about a guardrail.
- Parameters:
guardrails- A list of objects, each of which contains details about a guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrails
A list of objects, each of which contains details about a guardrail.
- Parameters:
guardrails- A list of objects, each of which contains details about a guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrails
A list of objects, each of which contains details about a guardrail.
This is a convenience method that creates an instance of theGuardrailSummary.Builderavoiding the need to create one manually viaGuardrailSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrails(List<GuardrailSummary>).- Parameters:
guardrails- a consumer that will call methods onGuardrailSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If there are more results than were returned in the response, the response returns a
nextTokenthat you can send in anotherListGuardrailsrequest to see the next batch of results.- Parameters:
nextToken- If there are more results than were returned in the response, the response returns anextTokenthat you can send in anotherListGuardrailsrequest to see the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-