Class OrganizationComplianceSettings
-
- All Implemented Interfaces:
public final class OrganizationComplianceSettings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrganizationComplianceSettings.BuilderA builder for OrganizationComplianceSettings.
-
Method Summary
Modifier and Type Method Description final ComplianceSettingsStatestate()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<ComplianceSettingsState>_state()Returns the raw JSON value of state. final Map<String, JsonValue>_additionalProperties()final OrganizationComplianceSettings.BuildertoBuilder()final OrganizationComplianceSettingsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrganizationComplianceSettings.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationComplianceSettings. final static OrganizationComplianceSettingsof(ComplianceSettingsState state)Returns an immutable instance of OrganizationComplianceSettings with the required state set to the given value. final static OrganizationComplianceSettingsof(ComplianceSettingsStateEnabled enabled)Alias for calling of with ComplianceSettingsState.ofEnabled(enabled).final static OrganizationComplianceSettingsof(ComplianceSettingsStateDisabled disabled)Alias for calling of with ComplianceSettingsState.ofDisabled(disabled).-
-
Method Detail
-
state
final ComplianceSettingsState 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<ComplianceSettingsState> _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 OrganizationComplianceSettings.Builder toBuilder()
-
validate
final OrganizationComplianceSettings 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 OrganizationComplianceSettings.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationComplianceSettings.
The following fields are required:
.state()
-
of
final static OrganizationComplianceSettings of(ComplianceSettingsState state)
Returns an immutable instance of OrganizationComplianceSettings with the required state set to the given value.
-
of
final static OrganizationComplianceSettings of(ComplianceSettingsStateEnabled enabled)
Alias for calling of with
ComplianceSettingsState.ofEnabled(enabled).
-
of
final static OrganizationComplianceSettings of(ComplianceSettingsStateDisabled disabled)
Alias for calling of with
ComplianceSettingsState.ofDisabled(disabled).
-
-
-
-