Class BetaRbacRole

  • All Implemented Interfaces:

    
    public final class BetaRbacRole
    
                        
    • Constructor Detail

    • Method Detail

      • id

         final String id()

        ID of the RBAC Role.

      • 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 type may be added, so do not treat every role that is not built_in as custom.

      • 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.

      • 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()