Class UserProfileEnforcementActionRestriction
-
- All Implemented Interfaces:
public final class UserProfileEnforcementActionRestrictionAnthropic has limited how it serves the end user until the action is resolved. The end user may still be served in part.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserProfileEnforcementActionRestriction.BuilderA builder for UserProfileEnforcementActionRestriction.
-
Method Summary
Modifier and Type Method Description final Stringid()The action's ID ( enac_...), stable while the action is open.final Optional<UserProfileEnforcementActionNextStep>action()The next step on the action: verifyornull.final Optional<OffsetDateTime>expiresAt()When the action ends on its own, in RFC 3339 format; it stops showing once this time has passed. final OffsetDateTimeopenedAt()When Anthropic opened the action, in RFC 3339 format. final UserProfileEnforcementActionReasonreason()Why Anthropic placed the limit: unsupported_region,fraud_or_abuse,high_harm,usage_policy_violation,account_compromiseorunspecified.final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("restriction")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<UserProfileEnforcementActionNextStep>_action()Returns the raw JSON value of action. final JsonField<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<OffsetDateTime>_openedAt()Returns the raw JSON value of openedAt. final JsonField<UserProfileEnforcementActionReason>_reason()Returns the raw JSON value of reason. final Map<String, JsonValue>_additionalProperties()final UserProfileEnforcementActionRestriction.BuildertoBuilder()final UserProfileEnforcementActionRestrictionvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserProfileEnforcementActionRestriction.Builderbuilder()Returns a mutable builder for constructing an instance of UserProfileEnforcementActionRestriction. -
-
Method Detail
-
action
final Optional<UserProfileEnforcementActionNextStep> action()
The next step on the action:
verifyornull.verify: the end user can clear it now by passing an identity check.null: there is nothing the end user can do now to clear it, including while Anthropic reviews an identity check the end user submitted.
-
expiresAt
final Optional<OffsetDateTime> expiresAt()
When the action ends on its own, in RFC 3339 format; it stops showing once this time has passed.
nullwhen it has no end date, and alwaysnullwhenreasonisaccount_compromise.
-
openedAt
final OffsetDateTime openedAt()
When Anthropic opened the action, in RFC 3339 format.
-
reason
final UserProfileEnforcementActionReason reason()
Why Anthropic placed the limit:
unsupported_region,fraud_or_abuse,high_harm,usage_policy_violation,account_compromiseorunspecified.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("restriction")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_action
final JsonField<UserProfileEnforcementActionNextStep> _action()
Returns the raw JSON value of action.
Unlike action, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAt
final JsonField<OffsetDateTime> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_openedAt
final JsonField<OffsetDateTime> _openedAt()
Returns the raw JSON value of openedAt.
Unlike openedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_reason
final JsonField<UserProfileEnforcementActionReason> _reason()
Returns the raw JSON value of reason.
Unlike reason, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UserProfileEnforcementActionRestriction.Builder toBuilder()
-
validate
final UserProfileEnforcementActionRestriction 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 UserProfileEnforcementActionRestriction.Builder builder()
Returns a mutable builder for constructing an instance of UserProfileEnforcementActionRestriction.
The following fields are required:
.id() .action() .expiresAt() .openedAt() .reason()
-
-
-
-