Interface GetGuardrailResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockResponse.Builder,Buildable,CopyableBuilder<GetGuardrailResponse.Builder,GetGuardrailResponse>,SdkBuilder<GetGuardrailResponse.Builder,GetGuardrailResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetGuardrailResponse
@Mutable @NotThreadSafe public static interface GetGuardrailResponse.Builder extends BedrockResponse.Builder, SdkPojo, CopyableBuilder<GetGuardrailResponse.Builder,GetGuardrailResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetGuardrailResponse.BuilderblockedInputMessaging(String blockedInputMessaging)The message that the guardrail returns when it blocks a prompt.GetGuardrailResponse.BuilderblockedOutputsMessaging(String blockedOutputsMessaging)The message that the guardrail returns when it blocks a model response.default GetGuardrailResponse.BuildercontentPolicy(Consumer<GuardrailContentPolicy.Builder> contentPolicy)The content policy that was configured for the guardrail.GetGuardrailResponse.BuildercontentPolicy(GuardrailContentPolicy contentPolicy)The content policy that was configured for the guardrail.default GetGuardrailResponse.BuildercontextualGroundingPolicy(Consumer<GuardrailContextualGroundingPolicy.Builder> contextualGroundingPolicy)The contextual grounding policy used in the guardrail.GetGuardrailResponse.BuildercontextualGroundingPolicy(GuardrailContextualGroundingPolicy contextualGroundingPolicy)The contextual grounding policy used in the guardrail.GetGuardrailResponse.BuildercreatedAt(Instant createdAt)The date and time at which the guardrail was created.default GetGuardrailResponse.BuildercrossRegionDetails(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).GetGuardrailResponse.BuildercrossRegionDetails(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).GetGuardrailResponse.Builderdescription(String description)The description of the guardrail.GetGuardrailResponse.BuilderfailureRecommendations(String... failureRecommendations)Appears if thestatusof the guardrail isFAILED.GetGuardrailResponse.BuilderfailureRecommendations(Collection<String> failureRecommendations)Appears if thestatusof the guardrail isFAILED.GetGuardrailResponse.BuilderguardrailArn(String guardrailArn)The ARN of the guardrail.GetGuardrailResponse.BuilderguardrailId(String guardrailId)The unique identifier of the guardrail.GetGuardrailResponse.BuilderkmsKeyArn(String kmsKeyArn)The ARN of the KMS key that encrypts the guardrail.GetGuardrailResponse.Buildername(String name)The name of the guardrail.default GetGuardrailResponse.BuildersensitiveInformationPolicy(Consumer<GuardrailSensitiveInformationPolicy.Builder> sensitiveInformationPolicy)The sensitive information policy that was configured for the guardrail.GetGuardrailResponse.BuildersensitiveInformationPolicy(GuardrailSensitiveInformationPolicy sensitiveInformationPolicy)The sensitive information policy that was configured for the guardrail.GetGuardrailResponse.Builderstatus(String status)The status of the guardrail.GetGuardrailResponse.Builderstatus(GuardrailStatus status)The status of the guardrail.GetGuardrailResponse.BuilderstatusReasons(String... statusReasons)Appears if thestatusisFAILED.GetGuardrailResponse.BuilderstatusReasons(Collection<String> statusReasons)Appears if thestatusisFAILED.default GetGuardrailResponse.BuildertopicPolicy(Consumer<GuardrailTopicPolicy.Builder> topicPolicy)The topic policy that was configured for the guardrail.GetGuardrailResponse.BuildertopicPolicy(GuardrailTopicPolicy topicPolicy)The topic policy that was configured for the guardrail.GetGuardrailResponse.BuilderupdatedAt(Instant updatedAt)The date and time at which the guardrail was updated.GetGuardrailResponse.Builderversion(String version)The version of the guardrail.default GetGuardrailResponse.BuilderwordPolicy(Consumer<GuardrailWordPolicy.Builder> wordPolicy)The word policy that was configured for the guardrail.GetGuardrailResponse.BuilderwordPolicy(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 Detail
-
name
GetGuardrailResponse.Builder name(String 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
GetGuardrailResponse.Builder description(String 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
GetGuardrailResponse.Builder guardrailId(String 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
GetGuardrailResponse.Builder guardrailArn(String 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
GetGuardrailResponse.Builder version(String 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
GetGuardrailResponse.Builder status(String 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:
GuardrailStatus,GuardrailStatus
-
status
GetGuardrailResponse.Builder status(GuardrailStatus 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:
GuardrailStatus,GuardrailStatus
-
topicPolicy
GetGuardrailResponse.Builder topicPolicy(GuardrailTopicPolicy 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.Builderavoiding the need to create one manually viaGuardrailTopicPolicy.builder().When the
Consumercompletes,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:
topicPolicy(GuardrailTopicPolicy)
-
contentPolicy
GetGuardrailResponse.Builder contentPolicy(GuardrailContentPolicy 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.Builderavoiding the need to create one manually viaGuardrailContentPolicy.builder().When the
Consumercompletes,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:
contentPolicy(GuardrailContentPolicy)
-
wordPolicy
GetGuardrailResponse.Builder wordPolicy(GuardrailWordPolicy 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
default GetGuardrailResponse.Builder wordPolicy(Consumer<GuardrailWordPolicy.Builder> wordPolicy)
The word policy that was configured for the guardrail.
This is a convenience method that creates an instance of theGuardrailWordPolicy.Builderavoiding the need to create one manually viaGuardrailWordPolicy.builder().When the
Consumercompletes,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:
wordPolicy(GuardrailWordPolicy)
-
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.Builderavoiding the need to create one manually viaGuardrailSensitiveInformationPolicy.builder().When the
Consumercompletes,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:
sensitiveInformationPolicy(GuardrailSensitiveInformationPolicy)
-
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.Builderavoiding the need to create one manually viaGuardrailContextualGroundingPolicy.builder().When the
Consumercompletes,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:
contextualGroundingPolicy(GuardrailContextualGroundingPolicy)
-
crossRegionDetails
GetGuardrailResponse.Builder 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).
- 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.Builderavoiding the need to create one manually viaGuardrailCrossRegionDetails.builder().When the
Consumercompletes,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:
crossRegionDetails(GuardrailCrossRegionDetails)
-
createdAt
GetGuardrailResponse.Builder createdAt(Instant 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
GetGuardrailResponse.Builder updatedAt(Instant 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
GetGuardrailResponse.Builder statusReasons(Collection<String> statusReasons)
Appears if the
statusisFAILED. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.- Parameters:
statusReasons- Appears if thestatusisFAILED. 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
GetGuardrailResponse.Builder statusReasons(String... statusReasons)
Appears if the
statusisFAILED. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.- Parameters:
statusReasons- Appears if thestatusisFAILED. 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
GetGuardrailResponse.Builder failureRecommendations(Collection<String> failureRecommendations)
Appears if the
statusof the guardrail isFAILED. A list of recommendations to carry out before retrying the request.- Parameters:
failureRecommendations- Appears if thestatusof 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
GetGuardrailResponse.Builder failureRecommendations(String... failureRecommendations)
Appears if the
statusof the guardrail isFAILED. A list of recommendations to carry out before retrying the request.- Parameters:
failureRecommendations- Appears if thestatusof 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
GetGuardrailResponse.Builder blockedInputMessaging(String 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
GetGuardrailResponse.Builder blockedOutputsMessaging(String 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
GetGuardrailResponse.Builder kmsKeyArn(String 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.
-
-