Class PromptAnalyzerCreateResponse.Policy.Builder
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse.Policy.BuilderA builder for Policy.
-
-
Method Summary
-
-
Method Detail
-
blockGuardrailDetection
final PromptAnalyzerCreateResponse.Policy.Builder blockGuardrailDetection(Boolean blockGuardrailDetection)
Block guardrail detection
-
blockGuardrailDetection
final PromptAnalyzerCreateResponse.Policy.Builder blockGuardrailDetection(JsonField<Boolean> blockGuardrailDetection)
Sets Builder.blockGuardrailDetection to an arbitrary JSON value.
You should usually call Builder.blockGuardrailDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockInputCodeDetection
final PromptAnalyzerCreateResponse.Policy.Builder blockInputCodeDetection(Boolean blockInputCodeDetection)
Block input code detection
-
blockInputCodeDetection
final PromptAnalyzerCreateResponse.Policy.Builder blockInputCodeDetection(JsonField<Boolean> blockInputCodeDetection)
Sets Builder.blockInputCodeDetection to an arbitrary JSON value.
You should usually call Builder.blockInputCodeDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockInputDosDetection
final PromptAnalyzerCreateResponse.Policy.Builder blockInputDosDetection(Boolean blockInputDosDetection)
Block input denial of service detection
-
blockInputDosDetection
final PromptAnalyzerCreateResponse.Policy.Builder blockInputDosDetection(JsonField<Boolean> blockInputDosDetection)
Sets Builder.blockInputDosDetection to an arbitrary JSON value.
You should usually call Builder.blockInputDosDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockInputPii
final PromptAnalyzerCreateResponse.Policy.Builder blockInputPii(Boolean blockInputPii)
Block input personally identifiable information
-
blockInputPii
final PromptAnalyzerCreateResponse.Policy.Builder blockInputPii(JsonField<Boolean> blockInputPii)
Sets Builder.blockInputPii to an arbitrary JSON value.
You should usually call Builder.blockInputPii with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockOutputCodeDetection
final PromptAnalyzerCreateResponse.Policy.Builder blockOutputCodeDetection(Boolean blockOutputCodeDetection)
Block output code detection
-
blockOutputCodeDetection
final PromptAnalyzerCreateResponse.Policy.Builder blockOutputCodeDetection(JsonField<Boolean> blockOutputCodeDetection)
Sets Builder.blockOutputCodeDetection to an arbitrary JSON value.
You should usually call Builder.blockOutputCodeDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockOutputPii
final PromptAnalyzerCreateResponse.Policy.Builder blockOutputPii(Boolean blockOutputPii)
Block output personally identifiable information
-
blockOutputPii
final PromptAnalyzerCreateResponse.Policy.Builder blockOutputPii(JsonField<Boolean> blockOutputPii)
Sets Builder.blockOutputPii to an arbitrary JSON value.
You should usually call Builder.blockOutputPii with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockPromptInjection
final PromptAnalyzerCreateResponse.Policy.Builder blockPromptInjection(Boolean blockPromptInjection)
Block prompt injection
-
blockPromptInjection
final PromptAnalyzerCreateResponse.Policy.Builder blockPromptInjection(JsonField<Boolean> blockPromptInjection)
Sets Builder.blockPromptInjection to an arbitrary JSON value.
You should usually call Builder.blockPromptInjection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockUnsafe
final PromptAnalyzerCreateResponse.Policy.Builder blockUnsafe(Boolean blockUnsafe)
Block unsafe input and output
-
blockUnsafe
final PromptAnalyzerCreateResponse.Policy.Builder blockUnsafe(JsonField<Boolean> blockUnsafe)
Sets Builder.blockUnsafe to an arbitrary JSON value.
You should usually call Builder.blockUnsafe with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockUnsafeInput
final PromptAnalyzerCreateResponse.Policy.Builder blockUnsafeInput(Boolean blockUnsafeInput)
Block unsafe input
-
blockUnsafeInput
final PromptAnalyzerCreateResponse.Policy.Builder blockUnsafeInput(JsonField<Boolean> blockUnsafeInput)
Sets Builder.blockUnsafeInput to an arbitrary JSON value.
You should usually call Builder.blockUnsafeInput with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockUnsafeOutput
final PromptAnalyzerCreateResponse.Policy.Builder blockUnsafeOutput(Boolean blockUnsafeOutput)
Block unsafe output
-
blockUnsafeOutput
final PromptAnalyzerCreateResponse.Policy.Builder blockUnsafeOutput(JsonField<Boolean> blockUnsafeOutput)
Sets Builder.blockUnsafeOutput to an arbitrary JSON value.
You should usually call Builder.blockUnsafeOutput with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
entityType
final PromptAnalyzerCreateResponse.Policy.Builder entityType(PromptAnalyzerCreateResponse.Policy.EntityType entityType)
The type of entity to redact
-
entityType
final PromptAnalyzerCreateResponse.Policy.Builder entityType(JsonField<PromptAnalyzerCreateResponse.Policy.EntityType> entityType)
Sets Builder.entityType to an arbitrary JSON value.
You should usually call Builder.entityType with a well-typed EntityType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputDosDetectionThreshold
final PromptAnalyzerCreateResponse.Policy.Builder inputDosDetectionThreshold(Double inputDosDetectionThreshold)
The threshold for input denial of service detection
-
inputDosDetectionThreshold
final PromptAnalyzerCreateResponse.Policy.Builder inputDosDetectionThreshold(JsonField<Double> inputDosDetectionThreshold)
Sets Builder.inputDosDetectionThreshold to an arbitrary JSON value.
You should usually call Builder.inputDosDetectionThreshold with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptInjectionScanType
final PromptAnalyzerCreateResponse.Policy.Builder promptInjectionScanType(PromptAnalyzerCreateResponse.Policy.PromptInjectionScanType promptInjectionScanType)
The type of prompt injection scan to use
-
promptInjectionScanType
final PromptAnalyzerCreateResponse.Policy.Builder promptInjectionScanType(JsonField<PromptAnalyzerCreateResponse.Policy.PromptInjectionScanType> promptInjectionScanType)
Sets Builder.promptInjectionScanType to an arbitrary JSON value.
You should usually call Builder.promptInjectionScanType with a well-typed PromptInjectionScanType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
redactInputPii
final PromptAnalyzerCreateResponse.Policy.Builder redactInputPii(Boolean redactInputPii)
Redact input personally identifiable information
-
redactInputPii
final PromptAnalyzerCreateResponse.Policy.Builder redactInputPii(JsonField<Boolean> redactInputPii)
Sets Builder.redactInputPii to an arbitrary JSON value.
You should usually call Builder.redactInputPii with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
redactOutputPii
final PromptAnalyzerCreateResponse.Policy.Builder redactOutputPii(Boolean redactOutputPii)
Redact output personally identifiable information
-
redactOutputPii
final PromptAnalyzerCreateResponse.Policy.Builder redactOutputPii(JsonField<Boolean> redactOutputPii)
Sets Builder.redactOutputPii to an arbitrary JSON value.
You should usually call Builder.redactOutputPii with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
redactType
final PromptAnalyzerCreateResponse.Policy.Builder redactType(PromptAnalyzerCreateResponse.Policy.RedactType redactType)
The type of redaction to use
-
redactType
final PromptAnalyzerCreateResponse.Policy.Builder redactType(JsonField<PromptAnalyzerCreateResponse.Policy.RedactType> redactType)
Sets Builder.redactType to an arbitrary JSON value.
You should usually call Builder.redactType with a well-typed RedactType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipGuardrailDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipGuardrailDetection(Boolean skipGuardrailDetection)
Skip guardrail detection
-
skipGuardrailDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipGuardrailDetection(JsonField<Boolean> skipGuardrailDetection)
Sets Builder.skipGuardrailDetection to an arbitrary JSON value.
You should usually call Builder.skipGuardrailDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipInputCodeDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipInputCodeDetection(Boolean skipInputCodeDetection)
Skip input code detection
-
skipInputCodeDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipInputCodeDetection(JsonField<Boolean> skipInputCodeDetection)
Sets Builder.skipInputCodeDetection to an arbitrary JSON value.
You should usually call Builder.skipInputCodeDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipInputDosDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipInputDosDetection(Boolean skipInputDosDetection)
Skip input denial of service detection
-
skipInputDosDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipInputDosDetection(JsonField<Boolean> skipInputDosDetection)
Sets Builder.skipInputDosDetection to an arbitrary JSON value.
You should usually call Builder.skipInputDosDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipInputPiiDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipInputPiiDetection(Boolean skipInputPiiDetection)
Skip input personally identifiable information detection
-
skipInputPiiDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipInputPiiDetection(JsonField<Boolean> skipInputPiiDetection)
Sets Builder.skipInputPiiDetection to an arbitrary JSON value.
You should usually call Builder.skipInputPiiDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipInputUrlDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipInputUrlDetection(Boolean skipInputUrlDetection)
Skip input URL detection
-
skipInputUrlDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipInputUrlDetection(JsonField<Boolean> skipInputUrlDetection)
Sets Builder.skipInputUrlDetection to an arbitrary JSON value.
You should usually call Builder.skipInputUrlDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipOutputCodeDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipOutputCodeDetection(Boolean skipOutputCodeDetection)
Skip output code detection
-
skipOutputCodeDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipOutputCodeDetection(JsonField<Boolean> skipOutputCodeDetection)
Sets Builder.skipOutputCodeDetection to an arbitrary JSON value.
You should usually call Builder.skipOutputCodeDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipOutputPiiDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipOutputPiiDetection(Boolean skipOutputPiiDetection)
Skip output personally identifiable information detection
-
skipOutputPiiDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipOutputPiiDetection(JsonField<Boolean> skipOutputPiiDetection)
Sets Builder.skipOutputPiiDetection to an arbitrary JSON value.
You should usually call Builder.skipOutputPiiDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipOutputUrlDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipOutputUrlDetection(Boolean skipOutputUrlDetection)
Skip output URL detection
-
skipOutputUrlDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipOutputUrlDetection(JsonField<Boolean> skipOutputUrlDetection)
Sets Builder.skipOutputUrlDetection to an arbitrary JSON value.
You should usually call Builder.skipOutputUrlDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skipPromptInjectionDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipPromptInjectionDetection(Boolean skipPromptInjectionDetection)
Skip prompt injection detection
-
skipPromptInjectionDetection
final PromptAnalyzerCreateResponse.Policy.Builder skipPromptInjectionDetection(JsonField<Boolean> skipPromptInjectionDetection)
Sets Builder.skipPromptInjectionDetection to an arbitrary JSON value.
You should usually call Builder.skipPromptInjectionDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PromptAnalyzerCreateResponse.Policy.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptAnalyzerCreateResponse.Policy.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptAnalyzerCreateResponse.Policy.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptAnalyzerCreateResponse.Policy.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptAnalyzerCreateResponse.Policy.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptAnalyzerCreateResponse.Policy build()
Returns an immutable instance of Policy.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-