Class UserProfileEnforcementActionBan
-
- All Implemented Interfaces:
public final class UserProfileEnforcementActionBanAnthropic has stopped serving the end user where the ban applies and does not plan to serve them there again.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserProfileEnforcementActionBan.BuilderA builder for UserProfileEnforcementActionBan.
-
Method Summary
Modifier and Type Method Description final Stringid()The action's ID ( enac_...), stable while the action is open.final Optional<UserProfileEnforcementActionNextStep>action()Always null: the end user cannot clear a ban.final Optional<OffsetDateTime>expiresAt()Always null: a ban has no end date.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("ban")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 UserProfileEnforcementActionBan.BuildertoBuilder()final UserProfileEnforcementActionBanvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserProfileEnforcementActionBan.Builderbuilder()Returns a mutable builder for constructing an instance of UserProfileEnforcementActionBan. -
-
Method Detail
-
action
final Optional<UserProfileEnforcementActionNextStep> action()
Always
null: the end user cannot clear a ban.
-
expiresAt
final Optional<OffsetDateTime> expiresAt()
Always
null: a ban has no end date.
-
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("ban")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 UserProfileEnforcementActionBan.Builder toBuilder()
-
validate
final UserProfileEnforcementActionBan 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 UserProfileEnforcementActionBan.Builder builder()
Returns a mutable builder for constructing an instance of UserProfileEnforcementActionBan.
The following fields are required:
.id() .action() .expiresAt() .openedAt() .reason()
-
-
-
-