Class BetaPluginContentScan.Builder
-
- All Implemented Interfaces:
public final class BetaPluginContentScan.BuilderA builder for BetaPluginContentScan.
-
-
Method Summary
-
-
Method Detail
-
assessment
final BetaPluginContentScan.Builder assessment(BetaPluginContentScan.Assessment assessment)
The scan's verdict; set only when
statusiscompleted. Awarncan mean afailthat was allowed in claude.ai.
-
assessment
final BetaPluginContentScan.Builder assessment(Optional<BetaPluginContentScan.Assessment> assessment)
Alias for calling Builder.assessment with
assessment.orElse(null).
-
assessment
final BetaPluginContentScan.Builder assessment(JsonField<BetaPluginContentScan.Assessment> assessment)
Sets Builder.assessment to an arbitrary JSON value.
You should usually call Builder.assessment with a well-typed Assessment value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
reason
final BetaPluginContentScan.Builder reason(String reason)
The primary mechanism behind a
warnorfail, such ascredential-exposureorguardrail-tampering; a mechanism this API does not yet name reads asother. Readstatusfirst: on anerroredscan it is not a finding but why there is no verdict:scan-invalid-archive, the scan refused the version's archive, or could not process it, before checking what its files say, and running it again will not help, so change the files and store a new version;scan-did-not-finish, the scan did not finish or its result is no longer available, so retry the scan in claude.ai if it offers a retry;scan-unavailable, the scan could not run or its result cannot be read right now, so read the version again later, then retry the scan in claude.ai if it offers a retry. If these steps do not help, contact support. Null on apass, while a scan runs, and when no mechanism is reported for the verdict. On an errored scan, null means that a compliance configuration ruled out the scan.
-
reason
final BetaPluginContentScan.Builder reason(Optional<String> reason)
Alias for calling Builder.reason with
reason.orElse(null).
-
reason
final BetaPluginContentScan.Builder reason(JsonField<String> reason)
Sets Builder.reason to an arbitrary JSON value.
You should usually call Builder.reason with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final BetaPluginContentScan.Builder status(BetaPluginContentScan.Status status)
processingwhile a scan runs,completedwhen it ran to completion,erroredwhen it could not run. Once a scan of the version has completed,content_scandescribes the newest completed scan, even while a later scan runs. While the scan outcome cannot be read,statusiserroredinstead.
-
status
final BetaPluginContentScan.Builder status(JsonField<BetaPluginContentScan.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaPluginContentScan.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaPluginContentScan.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaPluginContentScan.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaPluginContentScan.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaPluginContentScan.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaPluginContentScan build()
Returns an immutable instance of BetaPluginContentScan.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.assessment() .reason() .status()
-
-
-
-