Class UpdateGuardrailRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.bedrock.model.BedrockRequest
-
- software.amazon.awssdk.services.bedrock.model.UpdateGuardrailRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateGuardrailRequest.Builder,UpdateGuardrailRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateGuardrailRequest extends BedrockRequest implements ToCopyableBuilder<UpdateGuardrailRequest.Builder,UpdateGuardrailRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateGuardrailRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringblockedInputMessaging()The message to return when the guardrail blocks a prompt.StringblockedOutputsMessaging()The message to return when the guardrail blocks a model response.static UpdateGuardrailRequest.Builderbuilder()GuardrailContentPolicyConfigcontentPolicyConfig()The content policy to configure for the guardrail.GuardrailContextualGroundingPolicyConfigcontextualGroundingPolicyConfig()The contextual grounding policy configuration used to update a guardrail.Stringdescription()A description of the guardrail.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringguardrailIdentifier()The unique identifier of the guardrail.inthashCode()StringkmsKeyId()The ARN of the KMS key with which to encrypt the guardrail.Stringname()A name for the guardrail.List<SdkField<?>>sdkFields()GuardrailSensitiveInformationPolicyConfigsensitiveInformationPolicyConfig()The sensitive information policy to configure for the guardrail.static Class<? extends UpdateGuardrailRequest.Builder>serializableBuilderClass()UpdateGuardrailRequest.BuildertoBuilder()GuardrailTopicPolicyConfigtopicPolicyConfig()The topic policy to configure for the guardrail.StringtoString()Returns a string representation of this object.GuardrailWordPolicyConfigwordPolicyConfig()The word policy to configure for the guardrail.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
guardrailIdentifier
public final String guardrailIdentifier()
The unique identifier of the guardrail. This can be an ID or the ARN.
- Returns:
- The unique identifier of the guardrail. This can be an ID or the ARN.
-
name
public final String name()
A name for the guardrail.
- Returns:
- A name for the guardrail.
-
description
public final String description()
A description of the guardrail.
- Returns:
- A description of the guardrail.
-
topicPolicyConfig
public final GuardrailTopicPolicyConfig topicPolicyConfig()
The topic policy to configure for the guardrail.
- Returns:
- The topic policy to configure for the guardrail.
-
contentPolicyConfig
public final GuardrailContentPolicyConfig contentPolicyConfig()
The content policy to configure for the guardrail.
- Returns:
- The content policy to configure for the guardrail.
-
wordPolicyConfig
public final GuardrailWordPolicyConfig wordPolicyConfig()
The word policy to configure for the guardrail.
- Returns:
- The word policy to configure for the guardrail.
-
sensitiveInformationPolicyConfig
public final GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig()
The sensitive information policy to configure for the guardrail.
- Returns:
- The sensitive information policy to configure for the guardrail.
-
contextualGroundingPolicyConfig
public final GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig()
The contextual grounding policy configuration used to update a guardrail.
- Returns:
- The contextual grounding policy configuration used to update a guardrail.
-
blockedInputMessaging
public final String blockedInputMessaging()
The message to return when the guardrail blocks a prompt.
- Returns:
- The message to return when the guardrail blocks a prompt.
-
blockedOutputsMessaging
public final String blockedOutputsMessaging()
The message to return when the guardrail blocks a model response.
- Returns:
- The message to return when the guardrail blocks a model response.
-
kmsKeyId
public final String kmsKeyId()
The ARN of the KMS key with which to encrypt the guardrail.
- Returns:
- The ARN of the KMS key with which to encrypt the guardrail.
-
toBuilder
public UpdateGuardrailRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateGuardrailRequest.Builder,UpdateGuardrailRequest>- Specified by:
toBuilderin classBedrockRequest
-
builder
public static UpdateGuardrailRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateGuardrailRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-