Interface ListGuardrailsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockResponse.Builder
,Buildable
,CopyableBuilder<ListGuardrailsResponse.Builder,
,ListGuardrailsResponse> SdkBuilder<ListGuardrailsResponse.Builder,
,ListGuardrailsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListGuardrailsResponse
@Mutable
@NotThreadSafe
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 anextToken
that you can send in anotherListGuardrails
request 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, sdkFieldNameToField, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaGuardrailSummary.builder()
.When the
Consumer
completes,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
nextToken
that you can send in anotherListGuardrails
request to see the next batch of results.- Parameters:
nextToken
- If there are more results than were returned in the response, the response returns anextToken
that you can send in anotherListGuardrails
request to see the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-