Class BetaComplianceSettings
-
- All Implemented Interfaces:
public final class BetaComplianceSettings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaComplianceSettings.BuilderA builder for BetaComplianceSettings.
-
Method Summary
Modifier and Type Method Description final BetaComplianceSettingsStatestate()Whether the Compliance API is enabled for this organization. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("compliance_settings")final JsonField<BetaComplianceSettingsState>_state()Returns the raw JSON value of state. final Map<String, JsonValue>_additionalProperties()final BetaComplianceSettings.BuildertoBuilder()final BetaComplianceSettingsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaComplianceSettings.Builderbuilder()Returns a mutable builder for constructing an instance of BetaComplianceSettings. final static BetaComplianceSettingsof(BetaComplianceSettingsState state)Returns an immutable instance of BetaComplianceSettings with the required state set to the given value. final static BetaComplianceSettingsof(BetaComplianceSettingsStateEnabled enabled)Alias for calling of with BetaComplianceSettingsState.ofEnabled(enabled).final static BetaComplianceSettingsof(BetaComplianceSettingsStateDisabled disabled)Alias for calling of with BetaComplianceSettingsState.ofDisabled(disabled).-
-
Method Detail
-
state
final BetaComplianceSettingsState state()
Whether the Compliance API is enabled for this organization.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("compliance_settings")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_state
final JsonField<BetaComplianceSettingsState> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaComplianceSettings.Builder toBuilder()
-
validate
final BetaComplianceSettings 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 BetaComplianceSettings.Builder builder()
Returns a mutable builder for constructing an instance of BetaComplianceSettings.
The following fields are required:
.state()
-
of
final static BetaComplianceSettings of(BetaComplianceSettingsState state)
Returns an immutable instance of BetaComplianceSettings with the required state set to the given value.
-
of
final static BetaComplianceSettings of(BetaComplianceSettingsStateEnabled enabled)
Alias for calling of with
BetaComplianceSettingsState.ofEnabled(enabled).
-
of
final static BetaComplianceSettings of(BetaComplianceSettingsStateDisabled disabled)
Alias for calling of with
BetaComplianceSettingsState.ofDisabled(disabled).
-
-
-
-