Class ComplianceSettingUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class ComplianceSettingUpdateParams implements Params
Update your organization's Compliance Settings.
Setting
statetoenabledturns on the Compliance API and begins capturing organization activity events. Setting it todisabledturns both off. Access Transparency events are an exception: they are still captured while the Compliance API is disabled, and the Compliance API activity feed returns them once it is enabled again.statereflects whether the Compliance API is enabled.A request that sets
stateto its current value succeeds and leaves the resource unchanged. Adisabledrequest stays in effect until a laterenabledrequest or the organization's next provisioning action that enables Access Transparency: enabling Access Transparency also enables the Compliance API, which serves its activity events, so such provisioning (including re-runs) re-enables the Compliance API even after adisabledrequest. Automated provisioning never disables compliance settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classComplianceSettingUpdateParams.BuilderA builder for ComplianceSettingUpdateParams.
public final classComplianceSettingUpdateParams.Body
-
Method Summary
Modifier and Type Method Description final ComplianceSettingsStateParamstate()Desired state. final JsonField<ComplianceSettingsStateParam>_state()Returns the raw JSON value of state. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final ComplianceSettingUpdateParams.BuildertoBuilder()final ComplianceSettingUpdateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static ComplianceSettingUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of ComplianceSettingUpdateParams. -
-
Method Detail
-
state
final ComplianceSettingsStateParam state()
Desired state. Accepts the string shorthand "enabled" or "disabled" in place of the object form; the response always returns the canonical object form.
-
_state
final JsonField<ComplianceSettingsStateParam> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final ComplianceSettingUpdateParams.Builder toBuilder()
-
_body
final ComplianceSettingUpdateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static ComplianceSettingUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of ComplianceSettingUpdateParams.
The following fields are required:
.state()
-
-
-
-