Class ComplianceSettingUpdateParams.Body
-
- All Implemented Interfaces:
public final class ComplianceSettingUpdateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classComplianceSettingUpdateParams.Body.BuilderA builder for 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>_additionalProperties()final ComplianceSettingUpdateParams.Body.BuildertoBuilder()final ComplianceSettingUpdateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ComplianceSettingUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. final static ComplianceSettingUpdateParams.Bodyof(ComplianceSettingsStateParam state)Returns an immutable instance of Body with the required state set to the given value. final static ComplianceSettingUpdateParams.Bodyof(ComplianceSettingsStateEnabledParam enabled)Alias for calling of with ComplianceSettingsStateParam.ofEnabled(enabled).final static ComplianceSettingUpdateParams.Bodyof(ComplianceSettingsStateDisabledParam disabled)Alias for calling of with ComplianceSettingsStateParam.ofDisabled(disabled).-
-
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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ComplianceSettingUpdateParams.Body.Builder toBuilder()
-
validate
final ComplianceSettingUpdateParams.Body 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 ComplianceSettingUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.state()
-
of
final static ComplianceSettingUpdateParams.Body of(ComplianceSettingsStateParam state)
-
of
final static ComplianceSettingUpdateParams.Body of(ComplianceSettingsStateEnabledParam enabled)
Alias for calling of with
ComplianceSettingsStateParam.ofEnabled(enabled).
-
of
final static ComplianceSettingUpdateParams.Body of(ComplianceSettingsStateDisabledParam disabled)
Alias for calling of with
ComplianceSettingsStateParam.ofDisabled(disabled).
-
-
-
-