Class BetaRbacRole
-
- All Implemented Interfaces:
public final class BetaRbacRole
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaRbacRole.BuilderA builder for BetaRbacRole.
-
Method Summary
Modifier and Type Method Description final Stringid()ID of the RBAC Role. final OffsetDateTimecreatedAt()RFC 3339 datetime string indicating when the RBAC Role was created. final StringdisplayName()Name of the RBAC Role. final BetaRbacRoleSourcesource()Whether the RBAC Role is built-in or custom. final OffsetDateTimeupdatedAt()RFC 3339 datetime string indicating when the RBAC Role was last updated. final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<BetaRbacRoleSource>_source()Returns the raw JSON value of source. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final Map<String, JsonValue>_additionalProperties()final BetaRbacRole.BuildertoBuilder()final BetaRbacRolevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaRbacRole.Builderbuilder()Returns a mutable builder for constructing an instance of BetaRbacRole. -
-
Method Detail
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string indicating when the RBAC Role was created.
-
displayName
final String displayName()
Name of the RBAC Role. For a built-in role, this is Anthropic's name for the access that the role grants. Anthropic may change this name, so to keep a lasting reference to a role, store its
id.
-
source
final BetaRbacRoleSource source()
Whether the RBAC Role is built-in or custom. More values of
typemay be added, so do not treat every role that is notbuilt_inascustom.
-
updatedAt
final OffsetDateTime updatedAt()
RFC 3339 datetime string indicating when the RBAC Role was last updated.
-
_type
final JsonValue _type()
Object type.
For RBAC Roles, this is always
"rbac_role".Expected to always return the following:
JsonValue.from("rbac_role")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.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<BetaRbacRoleSource> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaRbacRole.Builder toBuilder()
-
validate
final BetaRbacRole 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 BetaRbacRole.Builder builder()
Returns a mutable builder for constructing an instance of BetaRbacRole.
The following fields are required:
.id() .createdAt() .displayName() .source() .updatedAt()
-
-
-
-