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 BetaComplianceSettingsStateParamstate()Desired state. final JsonField<BetaComplianceSettingsStateParam>_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(BetaComplianceSettingsStateParam state)Returns an immutable instance of Body with the required state set to the given value. final static ComplianceSettingUpdateParams.Bodyof(BetaComplianceSettingsStateEnabledParam enabled)Alias for calling of with BetaComplianceSettingsStateParam.ofEnabled(enabled).final static ComplianceSettingUpdateParams.Bodyof(BetaComplianceSettingsStateDisabledParam disabled)Alias for calling of with BetaComplianceSettingsStateParam.ofDisabled(disabled).-
-
Method Detail
-
state
final BetaComplianceSettingsStateParam 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<BetaComplianceSettingsStateParam> _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(BetaComplianceSettingsStateParam state)
-
of
final static ComplianceSettingUpdateParams.Body of(BetaComplianceSettingsStateEnabledParam enabled)
Alias for calling of with
BetaComplianceSettingsStateParam.ofEnabled(enabled).
-
of
final static ComplianceSettingUpdateParams.Body of(BetaComplianceSettingsStateDisabledParam disabled)
Alias for calling of with
BetaComplianceSettingsStateParam.ofDisabled(disabled).
-
-
-
-