Interface GetGuardrailResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockResponse.Builder
,Buildable
,CopyableBuilder<GetGuardrailResponse.Builder,
,GetGuardrailResponse> SdkBuilder<GetGuardrailResponse.Builder,
,GetGuardrailResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetGuardrailResponse
-
Method Summary
Modifier and TypeMethodDescriptionblockedInputMessaging
(String blockedInputMessaging) The message that the guardrail returns when it blocks a prompt.blockedOutputsMessaging
(String blockedOutputsMessaging) The message that the guardrail returns when it blocks a model response.default GetGuardrailResponse.Builder
contentPolicy
(Consumer<GuardrailContentPolicy.Builder> contentPolicy) The content policy that was configured for the guardrail.contentPolicy
(GuardrailContentPolicy contentPolicy) The content policy that was configured for the guardrail.default GetGuardrailResponse.Builder
contextualGroundingPolicy
(Consumer<GuardrailContextualGroundingPolicy.Builder> contextualGroundingPolicy) The contextual grounding policy used in the guardrail.contextualGroundingPolicy
(GuardrailContextualGroundingPolicy contextualGroundingPolicy) The contextual grounding policy used in the guardrail.The date and time at which the guardrail was created.default GetGuardrailResponse.Builder
crossRegionDetails
(Consumer<GuardrailCrossRegionDetails.Builder> crossRegionDetails) Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).crossRegionDetails
(GuardrailCrossRegionDetails crossRegionDetails) Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).description
(String description) The description of the guardrail.failureRecommendations
(String... failureRecommendations) Appears if thestatus
of the guardrail isFAILED
.failureRecommendations
(Collection<String> failureRecommendations) Appears if thestatus
of the guardrail isFAILED
.guardrailArn
(String guardrailArn) The ARN of the guardrail.guardrailId
(String guardrailId) The unique identifier of the guardrail.The ARN of the KMS key that encrypts the guardrail.The name of the guardrail.default GetGuardrailResponse.Builder
sensitiveInformationPolicy
(Consumer<GuardrailSensitiveInformationPolicy.Builder> sensitiveInformationPolicy) The sensitive information policy that was configured for the guardrail.sensitiveInformationPolicy
(GuardrailSensitiveInformationPolicy sensitiveInformationPolicy) The sensitive information policy that was configured for the guardrail.The status of the guardrail.status
(GuardrailStatus status) The status of the guardrail.statusReasons
(String... statusReasons) Appears if thestatus
isFAILED
.statusReasons
(Collection<String> statusReasons) Appears if thestatus
isFAILED
.default GetGuardrailResponse.Builder
topicPolicy
(Consumer<GuardrailTopicPolicy.Builder> topicPolicy) The topic policy that was configured for the guardrail.topicPolicy
(GuardrailTopicPolicy topicPolicy) The topic policy that was configured for the guardrail.The date and time at which the guardrail was updated.The version of the guardrail.default GetGuardrailResponse.Builder
wordPolicy
(Consumer<GuardrailWordPolicy.Builder> wordPolicy) The word policy that was configured for the guardrail.wordPolicy
(GuardrailWordPolicy wordPolicy) The word policy that was configured for the guardrail.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
-
name
The name of the guardrail.
- Parameters:
name
- The name of the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the guardrail.
- Parameters:
description
- The description of the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailId
The unique identifier of the guardrail.
- Parameters:
guardrailId
- The unique identifier of the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailArn
The ARN of the guardrail.
- Parameters:
guardrailArn
- The ARN of the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The version of the guardrail.
- Parameters:
version
- The version of the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the guardrail.
- Parameters:
status
- The status of the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the guardrail.
- Parameters:
status
- The status of the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
topicPolicy
The topic policy that was configured for the guardrail.
- Parameters:
topicPolicy
- The topic policy that was configured for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPolicy
default GetGuardrailResponse.Builder topicPolicy(Consumer<GuardrailTopicPolicy.Builder> topicPolicy) The topic policy that was configured for the guardrail.
This is a convenience method that creates an instance of theGuardrailTopicPolicy.Builder
avoiding the need to create one manually viaGuardrailTopicPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totopicPolicy(GuardrailTopicPolicy)
.- Parameters:
topicPolicy
- a consumer that will call methods onGuardrailTopicPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentPolicy
The content policy that was configured for the guardrail.
- Parameters:
contentPolicy
- The content policy that was configured for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentPolicy
default GetGuardrailResponse.Builder contentPolicy(Consumer<GuardrailContentPolicy.Builder> contentPolicy) The content policy that was configured for the guardrail.
This is a convenience method that creates an instance of theGuardrailContentPolicy.Builder
avoiding the need to create one manually viaGuardrailContentPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentPolicy(GuardrailContentPolicy)
.- Parameters:
contentPolicy
- a consumer that will call methods onGuardrailContentPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
wordPolicy
The word policy that was configured for the guardrail.
- Parameters:
wordPolicy
- The word policy that was configured for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordPolicy
The word policy that was configured for the guardrail.
This is a convenience method that creates an instance of theGuardrailWordPolicy.Builder
avoiding the need to create one manually viaGuardrailWordPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towordPolicy(GuardrailWordPolicy)
.- Parameters:
wordPolicy
- a consumer that will call methods onGuardrailWordPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sensitiveInformationPolicy
GetGuardrailResponse.Builder sensitiveInformationPolicy(GuardrailSensitiveInformationPolicy sensitiveInformationPolicy) The sensitive information policy that was configured for the guardrail.
- Parameters:
sensitiveInformationPolicy
- The sensitive information policy that was configured for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sensitiveInformationPolicy
default GetGuardrailResponse.Builder sensitiveInformationPolicy(Consumer<GuardrailSensitiveInformationPolicy.Builder> sensitiveInformationPolicy) The sensitive information policy that was configured for the guardrail.
This is a convenience method that creates an instance of theGuardrailSensitiveInformationPolicy.Builder
avoiding the need to create one manually viaGuardrailSensitiveInformationPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosensitiveInformationPolicy(GuardrailSensitiveInformationPolicy)
.- Parameters:
sensitiveInformationPolicy
- a consumer that will call methods onGuardrailSensitiveInformationPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contextualGroundingPolicy
GetGuardrailResponse.Builder contextualGroundingPolicy(GuardrailContextualGroundingPolicy contextualGroundingPolicy) The contextual grounding policy used in the guardrail.
- Parameters:
contextualGroundingPolicy
- The contextual grounding policy used in the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contextualGroundingPolicy
default GetGuardrailResponse.Builder contextualGroundingPolicy(Consumer<GuardrailContextualGroundingPolicy.Builder> contextualGroundingPolicy) The contextual grounding policy used in the guardrail.
This is a convenience method that creates an instance of theGuardrailContextualGroundingPolicy.Builder
avoiding the need to create one manually viaGuardrailContextualGroundingPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontextualGroundingPolicy(GuardrailContextualGroundingPolicy)
.- Parameters:
contextualGroundingPolicy
- a consumer that will call methods onGuardrailContextualGroundingPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
crossRegionDetails
Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).
- Parameters:
crossRegionDetails
- Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crossRegionDetails
default GetGuardrailResponse.Builder crossRegionDetails(Consumer<GuardrailCrossRegionDetails.Builder> crossRegionDetails) Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).
This is a convenience method that creates an instance of theGuardrailCrossRegionDetails.Builder
avoiding the need to create one manually viaGuardrailCrossRegionDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocrossRegionDetails(GuardrailCrossRegionDetails)
.- Parameters:
crossRegionDetails
- a consumer that will call methods onGuardrailCrossRegionDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The date and time at which the guardrail was created.
- Parameters:
createdAt
- The date and time at which the guardrail was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time at which the guardrail was updated.
- Parameters:
updatedAt
- The date and time at which the guardrail was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReasons
Appears if the
status
isFAILED
. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.- Parameters:
statusReasons
- Appears if thestatus
isFAILED
. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReasons
Appears if the
status
isFAILED
. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.- Parameters:
statusReasons
- Appears if thestatus
isFAILED
. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureRecommendations
Appears if the
status
of the guardrail isFAILED
. A list of recommendations to carry out before retrying the request.- Parameters:
failureRecommendations
- Appears if thestatus
of the guardrail isFAILED
. A list of recommendations to carry out before retrying the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureRecommendations
Appears if the
status
of the guardrail isFAILED
. A list of recommendations to carry out before retrying the request.- Parameters:
failureRecommendations
- Appears if thestatus
of the guardrail isFAILED
. A list of recommendations to carry out before retrying the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockedInputMessaging
The message that the guardrail returns when it blocks a prompt.
- Parameters:
blockedInputMessaging
- The message that the guardrail returns when it blocks a prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockedOutputsMessaging
The message that the guardrail returns when it blocks a model response.
- Parameters:
blockedOutputsMessaging
- The message that the guardrail returns when it blocks a model response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyArn
The ARN of the KMS key that encrypts the guardrail.
- Parameters:
kmsKeyArn
- The ARN of the KMS key that encrypts the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-