@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateGuardrailRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateGuardrailRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateGuardrailRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBlockedInputMessaging()
The message to return when the guardrail blocks a prompt.
|
String |
getBlockedOutputsMessaging()
The message to return when the guardrail blocks a model response.
|
GuardrailContentPolicyConfig |
getContentPolicyConfig()
The content policy to configure for the guardrail.
|
GuardrailContextualGroundingPolicyConfig |
getContextualGroundingPolicyConfig()
The contextual grounding policy configuration used to update a guardrail.
|
String |
getDescription()
A description of the guardrail.
|
String |
getGuardrailIdentifier()
The unique identifier of the guardrail.
|
String |
getKmsKeyId()
The ARN of the KMS key with which to encrypt the guardrail.
|
String |
getName()
A name for the guardrail.
|
GuardrailSensitiveInformationPolicyConfig |
getSensitiveInformationPolicyConfig()
The sensitive information policy to configure for the guardrail.
|
GuardrailTopicPolicyConfig |
getTopicPolicyConfig()
The topic policy to configure for the guardrail.
|
GuardrailWordPolicyConfig |
getWordPolicyConfig()
The word policy to configure for the guardrail.
|
int |
hashCode() |
void |
setBlockedInputMessaging(String blockedInputMessaging)
The message to return when the guardrail blocks a prompt.
|
void |
setBlockedOutputsMessaging(String blockedOutputsMessaging)
The message to return when the guardrail blocks a model response.
|
void |
setContentPolicyConfig(GuardrailContentPolicyConfig contentPolicyConfig)
The content policy to configure for the guardrail.
|
void |
setContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig)
The contextual grounding policy configuration used to update a guardrail.
|
void |
setDescription(String description)
A description of the guardrail.
|
void |
setGuardrailIdentifier(String guardrailIdentifier)
The unique identifier of the guardrail.
|
void |
setKmsKeyId(String kmsKeyId)
The ARN of the KMS key with which to encrypt the guardrail.
|
void |
setName(String name)
A name for the guardrail.
|
void |
setSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig)
The sensitive information policy to configure for the guardrail.
|
void |
setTopicPolicyConfig(GuardrailTopicPolicyConfig topicPolicyConfig)
The topic policy to configure for the guardrail.
|
void |
setWordPolicyConfig(GuardrailWordPolicyConfig wordPolicyConfig)
The word policy to configure for the guardrail.
|
String |
toString()
Returns a string representation of this object.
|
UpdateGuardrailRequest |
withBlockedInputMessaging(String blockedInputMessaging)
The message to return when the guardrail blocks a prompt.
|
UpdateGuardrailRequest |
withBlockedOutputsMessaging(String blockedOutputsMessaging)
The message to return when the guardrail blocks a model response.
|
UpdateGuardrailRequest |
withContentPolicyConfig(GuardrailContentPolicyConfig contentPolicyConfig)
The content policy to configure for the guardrail.
|
UpdateGuardrailRequest |
withContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig)
The contextual grounding policy configuration used to update a guardrail.
|
UpdateGuardrailRequest |
withDescription(String description)
A description of the guardrail.
|
UpdateGuardrailRequest |
withGuardrailIdentifier(String guardrailIdentifier)
The unique identifier of the guardrail.
|
UpdateGuardrailRequest |
withKmsKeyId(String kmsKeyId)
The ARN of the KMS key with which to encrypt the guardrail.
|
UpdateGuardrailRequest |
withName(String name)
A name for the guardrail.
|
UpdateGuardrailRequest |
withSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig)
The sensitive information policy to configure for the guardrail.
|
UpdateGuardrailRequest |
withTopicPolicyConfig(GuardrailTopicPolicyConfig topicPolicyConfig)
The topic policy to configure for the guardrail.
|
UpdateGuardrailRequest |
withWordPolicyConfig(GuardrailWordPolicyConfig wordPolicyConfig)
The word policy to configure for the guardrail.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setGuardrailIdentifier(String guardrailIdentifier)
The unique identifier of the guardrail. This can be an ID or the ARN.
guardrailIdentifier
- The unique identifier of the guardrail. This can be an ID or the ARN.public String getGuardrailIdentifier()
The unique identifier of the guardrail. This can be an ID or the ARN.
public UpdateGuardrailRequest withGuardrailIdentifier(String guardrailIdentifier)
The unique identifier of the guardrail. This can be an ID or the ARN.
guardrailIdentifier
- The unique identifier of the guardrail. This can be an ID or the ARN.public void setName(String name)
A name for the guardrail.
name
- A name for the guardrail.public String getName()
A name for the guardrail.
public UpdateGuardrailRequest withName(String name)
A name for the guardrail.
name
- A name for the guardrail.public void setDescription(String description)
A description of the guardrail.
description
- A description of the guardrail.public String getDescription()
A description of the guardrail.
public UpdateGuardrailRequest withDescription(String description)
A description of the guardrail.
description
- A description of the guardrail.public void setTopicPolicyConfig(GuardrailTopicPolicyConfig topicPolicyConfig)
The topic policy to configure for the guardrail.
topicPolicyConfig
- The topic policy to configure for the guardrail.public GuardrailTopicPolicyConfig getTopicPolicyConfig()
The topic policy to configure for the guardrail.
public UpdateGuardrailRequest withTopicPolicyConfig(GuardrailTopicPolicyConfig topicPolicyConfig)
The topic policy to configure for the guardrail.
topicPolicyConfig
- The topic policy to configure for the guardrail.public void setContentPolicyConfig(GuardrailContentPolicyConfig contentPolicyConfig)
The content policy to configure for the guardrail.
contentPolicyConfig
- The content policy to configure for the guardrail.public GuardrailContentPolicyConfig getContentPolicyConfig()
The content policy to configure for the guardrail.
public UpdateGuardrailRequest withContentPolicyConfig(GuardrailContentPolicyConfig contentPolicyConfig)
The content policy to configure for the guardrail.
contentPolicyConfig
- The content policy to configure for the guardrail.public void setWordPolicyConfig(GuardrailWordPolicyConfig wordPolicyConfig)
The word policy to configure for the guardrail.
wordPolicyConfig
- The word policy to configure for the guardrail.public GuardrailWordPolicyConfig getWordPolicyConfig()
The word policy to configure for the guardrail.
public UpdateGuardrailRequest withWordPolicyConfig(GuardrailWordPolicyConfig wordPolicyConfig)
The word policy to configure for the guardrail.
wordPolicyConfig
- The word policy to configure for the guardrail.public void setSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig)
The sensitive information policy to configure for the guardrail.
sensitiveInformationPolicyConfig
- The sensitive information policy to configure for the guardrail.public GuardrailSensitiveInformationPolicyConfig getSensitiveInformationPolicyConfig()
The sensitive information policy to configure for the guardrail.
public UpdateGuardrailRequest withSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig)
The sensitive information policy to configure for the guardrail.
sensitiveInformationPolicyConfig
- The sensitive information policy to configure for the guardrail.public void setContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig)
The contextual grounding policy configuration used to update a guardrail.
contextualGroundingPolicyConfig
- The contextual grounding policy configuration used to update a guardrail.public GuardrailContextualGroundingPolicyConfig getContextualGroundingPolicyConfig()
The contextual grounding policy configuration used to update a guardrail.
public UpdateGuardrailRequest withContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig)
The contextual grounding policy configuration used to update a guardrail.
contextualGroundingPolicyConfig
- The contextual grounding policy configuration used to update a guardrail.public void setBlockedInputMessaging(String blockedInputMessaging)
The message to return when the guardrail blocks a prompt.
blockedInputMessaging
- The message to return when the guardrail blocks a prompt.public String getBlockedInputMessaging()
The message to return when the guardrail blocks a prompt.
public UpdateGuardrailRequest withBlockedInputMessaging(String blockedInputMessaging)
The message to return when the guardrail blocks a prompt.
blockedInputMessaging
- The message to return when the guardrail blocks a prompt.public void setBlockedOutputsMessaging(String blockedOutputsMessaging)
The message to return when the guardrail blocks a model response.
blockedOutputsMessaging
- The message to return when the guardrail blocks a model response.public String getBlockedOutputsMessaging()
The message to return when the guardrail blocks a model response.
public UpdateGuardrailRequest withBlockedOutputsMessaging(String blockedOutputsMessaging)
The message to return when the guardrail blocks a model response.
blockedOutputsMessaging
- The message to return when the guardrail blocks a model response.public void setKmsKeyId(String kmsKeyId)
The ARN of the KMS key with which to encrypt the guardrail.
kmsKeyId
- The ARN of the KMS key with which to encrypt the guardrail.public String getKmsKeyId()
The ARN of the KMS key with which to encrypt the guardrail.
public UpdateGuardrailRequest withKmsKeyId(String kmsKeyId)
The ARN of the KMS key with which to encrypt the guardrail.
kmsKeyId
- The ARN of the KMS key with which to encrypt the guardrail.public String toString()
toString
in class Object
Object.toString()
public UpdateGuardrailRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()