Class PromptAnalyzerCreateResponse.Policy
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse.PolicyThe policy used during analysis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptAnalyzerCreateResponse.Policy.BuilderA builder for Policy.
public final classPromptAnalyzerCreateResponse.Policy.EntityTypeThe type of entity to redact
public final classPromptAnalyzerCreateResponse.Policy.PromptInjectionScanTypeThe type of prompt injection scan to use
public final classPromptAnalyzerCreateResponse.Policy.RedactTypeThe type of redaction to use
-
Method Summary
-
-
Method Detail
-
blockGuardrailDetection
final Optional<Boolean> blockGuardrailDetection()
Block guardrail detection
-
blockInputCodeDetection
final Optional<Boolean> blockInputCodeDetection()
Block input code detection
-
blockInputDosDetection
final Optional<Boolean> blockInputDosDetection()
Block input denial of service detection
-
blockInputPii
final Optional<Boolean> blockInputPii()
Block input personally identifiable information
-
blockOutputCodeDetection
final Optional<Boolean> blockOutputCodeDetection()
Block output code detection
-
blockOutputPii
final Optional<Boolean> blockOutputPii()
Block output personally identifiable information
-
blockPromptInjection
final Optional<Boolean> blockPromptInjection()
Block prompt injection
-
blockUnsafe
final Optional<Boolean> blockUnsafe()
Block unsafe input and output
-
blockUnsafeInput
final Optional<Boolean> blockUnsafeInput()
Block unsafe input
-
blockUnsafeOutput
final Optional<Boolean> blockUnsafeOutput()
Block unsafe output
-
entityType
final Optional<PromptAnalyzerCreateResponse.Policy.EntityType> entityType()
The type of entity to redact
-
inputDosDetectionThreshold
final Optional<Double> inputDosDetectionThreshold()
The threshold for input denial of service detection
-
promptInjectionScanType
final Optional<PromptAnalyzerCreateResponse.Policy.PromptInjectionScanType> promptInjectionScanType()
The type of prompt injection scan to use
-
redactInputPii
final Optional<Boolean> redactInputPii()
Redact input personally identifiable information
-
redactOutputPii
final Optional<Boolean> redactOutputPii()
Redact output personally identifiable information
-
redactType
final Optional<PromptAnalyzerCreateResponse.Policy.RedactType> redactType()
The type of redaction to use
-
skipGuardrailDetection
final Optional<Boolean> skipGuardrailDetection()
Skip guardrail detection
-
skipInputCodeDetection
final Optional<Boolean> skipInputCodeDetection()
Skip input code detection
-
skipInputDosDetection
final Optional<Boolean> skipInputDosDetection()
Skip input denial of service detection
-
skipInputPiiDetection
final Optional<Boolean> skipInputPiiDetection()
Skip input personally identifiable information detection
-
skipInputUrlDetection
final Optional<Boolean> skipInputUrlDetection()
Skip input URL detection
-
skipOutputCodeDetection
final Optional<Boolean> skipOutputCodeDetection()
Skip output code detection
-
skipOutputPiiDetection
final Optional<Boolean> skipOutputPiiDetection()
Skip output personally identifiable information detection
-
skipOutputUrlDetection
final Optional<Boolean> skipOutputUrlDetection()
Skip output URL detection
-
skipPromptInjectionDetection
final Optional<Boolean> skipPromptInjectionDetection()
Skip prompt injection detection
-
_blockGuardrailDetection
final JsonField<Boolean> _blockGuardrailDetection()
Returns the raw JSON value of blockGuardrailDetection.
Unlike blockGuardrailDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_blockInputCodeDetection
final JsonField<Boolean> _blockInputCodeDetection()
Returns the raw JSON value of blockInputCodeDetection.
Unlike blockInputCodeDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_blockInputDosDetection
final JsonField<Boolean> _blockInputDosDetection()
Returns the raw JSON value of blockInputDosDetection.
Unlike blockInputDosDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_blockInputPii
final JsonField<Boolean> _blockInputPii()
Returns the raw JSON value of blockInputPii.
Unlike blockInputPii, this method doesn't throw if the JSON field has an unexpected type.
-
_blockOutputCodeDetection
final JsonField<Boolean> _blockOutputCodeDetection()
Returns the raw JSON value of blockOutputCodeDetection.
Unlike blockOutputCodeDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_blockOutputPii
final JsonField<Boolean> _blockOutputPii()
Returns the raw JSON value of blockOutputPii.
Unlike blockOutputPii, this method doesn't throw if the JSON field has an unexpected type.
-
_blockPromptInjection
final JsonField<Boolean> _blockPromptInjection()
Returns the raw JSON value of blockPromptInjection.
Unlike blockPromptInjection, this method doesn't throw if the JSON field has an unexpected type.
-
_blockUnsafe
final JsonField<Boolean> _blockUnsafe()
Returns the raw JSON value of blockUnsafe.
Unlike blockUnsafe, this method doesn't throw if the JSON field has an unexpected type.
-
_blockUnsafeInput
final JsonField<Boolean> _blockUnsafeInput()
Returns the raw JSON value of blockUnsafeInput.
Unlike blockUnsafeInput, this method doesn't throw if the JSON field has an unexpected type.
-
_blockUnsafeOutput
final JsonField<Boolean> _blockUnsafeOutput()
Returns the raw JSON value of blockUnsafeOutput.
Unlike blockUnsafeOutput, this method doesn't throw if the JSON field has an unexpected type.
-
_entityType
final JsonField<PromptAnalyzerCreateResponse.Policy.EntityType> _entityType()
Returns the raw JSON value of entityType.
Unlike entityType, this method doesn't throw if the JSON field has an unexpected type.
-
_inputDosDetectionThreshold
final JsonField<Double> _inputDosDetectionThreshold()
Returns the raw JSON value of inputDosDetectionThreshold.
Unlike inputDosDetectionThreshold, this method doesn't throw if the JSON field has an unexpected type.
-
_promptInjectionScanType
final JsonField<PromptAnalyzerCreateResponse.Policy.PromptInjectionScanType> _promptInjectionScanType()
Returns the raw JSON value of promptInjectionScanType.
Unlike promptInjectionScanType, this method doesn't throw if the JSON field has an unexpected type.
-
_redactInputPii
final JsonField<Boolean> _redactInputPii()
Returns the raw JSON value of redactInputPii.
Unlike redactInputPii, this method doesn't throw if the JSON field has an unexpected type.
-
_redactOutputPii
final JsonField<Boolean> _redactOutputPii()
Returns the raw JSON value of redactOutputPii.
Unlike redactOutputPii, this method doesn't throw if the JSON field has an unexpected type.
-
_redactType
final JsonField<PromptAnalyzerCreateResponse.Policy.RedactType> _redactType()
Returns the raw JSON value of redactType.
Unlike redactType, this method doesn't throw if the JSON field has an unexpected type.
-
_skipGuardrailDetection
final JsonField<Boolean> _skipGuardrailDetection()
Returns the raw JSON value of skipGuardrailDetection.
Unlike skipGuardrailDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_skipInputCodeDetection
final JsonField<Boolean> _skipInputCodeDetection()
Returns the raw JSON value of skipInputCodeDetection.
Unlike skipInputCodeDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_skipInputDosDetection
final JsonField<Boolean> _skipInputDosDetection()
Returns the raw JSON value of skipInputDosDetection.
Unlike skipInputDosDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_skipInputPiiDetection
final JsonField<Boolean> _skipInputPiiDetection()
Returns the raw JSON value of skipInputPiiDetection.
Unlike skipInputPiiDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_skipInputUrlDetection
final JsonField<Boolean> _skipInputUrlDetection()
Returns the raw JSON value of skipInputUrlDetection.
Unlike skipInputUrlDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_skipOutputCodeDetection
final JsonField<Boolean> _skipOutputCodeDetection()
Returns the raw JSON value of skipOutputCodeDetection.
Unlike skipOutputCodeDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_skipOutputPiiDetection
final JsonField<Boolean> _skipOutputPiiDetection()
Returns the raw JSON value of skipOutputPiiDetection.
Unlike skipOutputPiiDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_skipOutputUrlDetection
final JsonField<Boolean> _skipOutputUrlDetection()
Returns the raw JSON value of skipOutputUrlDetection.
Unlike skipOutputUrlDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_skipPromptInjectionDetection
final JsonField<Boolean> _skipPromptInjectionDetection()
Returns the raw JSON value of skipPromptInjectionDetection.
Unlike skipPromptInjectionDetection, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PromptAnalyzerCreateResponse.Policy.Builder toBuilder()
-
validate
final PromptAnalyzerCreateResponse.Policy validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static PromptAnalyzerCreateResponse.Policy.Builder builder()
Returns a mutable builder for constructing an instance of Policy.
-
-
-
-