Interface GetAiGuardrailResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAiGuardrailResponse.Builder,
,GetAiGuardrailResponse> QConnectResponse.Builder
,SdkBuilder<GetAiGuardrailResponse.Builder,
,GetAiGuardrailResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAiGuardrailResponse
@Mutable
@NotThreadSafe
public static interface GetAiGuardrailResponse.Builder
extends QConnectResponse.Builder, SdkPojo, CopyableBuilder<GetAiGuardrailResponse.Builder,GetAiGuardrailResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetAiGuardrailResponse.Builder
aiGuardrail
(Consumer<AIGuardrailData.Builder> aiGuardrail) The data of the AI Guardrail.aiGuardrail
(AIGuardrailData aiGuardrail) The data of the AI Guardrail.versionNumber
(Long versionNumber) The version number of the AI Guardrail version (returned if an AI Guardrail version was specified via use of a qualifier for theaiGuardrailId
on the request).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectResponse.Builder
build, responseMetadata, responseMetadata
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
-
aiGuardrail
The data of the AI Guardrail.
- Parameters:
aiGuardrail
- The data of the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aiGuardrail
The data of the AI Guardrail.
This is a convenience method that creates an instance of theAIGuardrailData.Builder
avoiding the need to create one manually viaAIGuardrailData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaiGuardrail(AIGuardrailData)
.- Parameters:
aiGuardrail
- a consumer that will call methods onAIGuardrailData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
versionNumber
The version number of the AI Guardrail version (returned if an AI Guardrail version was specified via use of a qualifier for the
aiGuardrailId
on the request).- Parameters:
versionNumber
- The version number of the AI Guardrail version (returned if an AI Guardrail version was specified via use of a qualifier for theaiGuardrailId
on the request).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-