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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListGuardrailsResponse.Builderguardrails(Collection<GuardrailSummary> guardrails)A list of objects, each of which contains details about a guardrail.ListGuardrailsResponse.Builderguardrails(Consumer<GuardrailSummary.Builder>... guardrails)A list of objects, each of which contains details about a guardrail.ListGuardrailsResponse.Builderguardrails(GuardrailSummary... guardrails)A list of objects, each of which contains details about a guardrail.ListGuardrailsResponse.BuildernextToken(String 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.-
Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockResponse.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
-
guardrails
ListGuardrailsResponse.Builder guardrails(Collection<GuardrailSummary> 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
ListGuardrailsResponse.Builder guardrails(GuardrailSummary... 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
ListGuardrailsResponse.Builder guardrails(Consumer<GuardrailSummary.Builder>... 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 to#guardrails(List.) - 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:
#guardrails(java.util.Collection)
-
nextToken
ListGuardrailsResponse.Builder nextToken(String 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.
-
-