Class WorkspacePolicyViolationErrorDetails
-
- All Implemented Interfaces:
public final class WorkspacePolicyViolationErrorDetailsThe request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkspacePolicyViolationErrorDetails.BuilderA builder for WorkspacePolicyViolationErrorDetails.
-
Method Summary
Modifier and Type Method Description final WorkspacePolicyFieldfield()The request field the broken rule applies to. final JsonValue_errorCode()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("workspace_policy_violation")final JsonField<WorkspacePolicyField>_field()Returns the raw JSON value of field. final Map<String, JsonValue>_additionalProperties()final WorkspacePolicyViolationErrorDetails.BuildertoBuilder()final WorkspacePolicyViolationErrorDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WorkspacePolicyViolationErrorDetails.Builderbuilder()Returns a mutable builder for constructing an instance of WorkspacePolicyViolationErrorDetails. final static WorkspacePolicyViolationErrorDetailsof(WorkspacePolicyField field)Returns an immutable instance of WorkspacePolicyViolationErrorDetails with the required field set to the given value. -
-
Method Detail
-
field
final WorkspacePolicyField field()
The request field the broken rule applies to.
-
_errorCode
final JsonValue _errorCode()
Expected to always return the following:
JsonValue.from("workspace_policy_violation")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_field
final JsonField<WorkspacePolicyField> _field()
Returns the raw JSON value of field.
Unlike field, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WorkspacePolicyViolationErrorDetails.Builder toBuilder()
-
validate
final WorkspacePolicyViolationErrorDetails 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 WorkspacePolicyViolationErrorDetails.Builder builder()
Returns a mutable builder for constructing an instance of WorkspacePolicyViolationErrorDetails.
The following fields are required:
.field()
-
of
final static WorkspacePolicyViolationErrorDetails of(WorkspacePolicyField field)
Returns an immutable instance of WorkspacePolicyViolationErrorDetails with the required field set to the given value.
-
-
-
-