Class RbacRole.Builder
-
- All Implemented Interfaces:
public final class RbacRole.BuilderA builder for RbacRole.
-
-
Method Summary
Modifier and Type Method Description final RbacRole.Builderid(String id)ID of the RBAC Role. final RbacRole.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final RbacRole.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string indicating when the RBAC Role was created. final RbacRole.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final RbacRole.BuilderdisplayName(String displayName)Name of the RBAC Role. final RbacRole.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final RbacRole.Buildersource(RbacRoleSource source)Whether the RBAC Role is built-in or custom. final RbacRole.Buildersource(JsonField<RbacRoleSource> source)Sets Builder.source to an arbitrary JSON value. final RbacRole.Buildersource(RbacRoleSourceBuiltIn builtIn)Alias for calling source with RbacRoleSource.ofBuiltIn(builtIn).final RbacRole.Buildersource(RbacRoleSourceCustom custom)Alias for calling source with RbacRoleSource.ofCustom(custom).final RbacRole.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final RbacRole.BuilderupdatedAt(OffsetDateTime updatedAt)RFC 3339 datetime string indicating when the RBAC Role was last updated. final RbacRole.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final RbacRole.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final RbacRole.BuilderputAdditionalProperty(String key, JsonValue value)final RbacRole.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final RbacRole.BuilderremoveAdditionalProperty(String key)final RbacRole.BuilderremoveAllAdditionalProperties(Set<String> keys)final RbacRolebuild()Returns an immutable instance of RbacRole. -
-
Method Detail
-
id
final RbacRole.Builder id(String id)
ID of the RBAC Role.
-
id
final RbacRole.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final RbacRole.Builder createdAt(OffsetDateTime createdAt)
RFC 3339 datetime string indicating when the RBAC Role was created.
-
createdAt
final RbacRole.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayName
final RbacRole.Builder displayName(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.
-
displayName
final RbacRole.Builder displayName(JsonField<String> displayName)
Sets Builder.displayName to an arbitrary JSON value.
You should usually call Builder.displayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final RbacRole.Builder source(RbacRoleSource 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.
-
source
final RbacRole.Builder source(JsonField<RbacRoleSource> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed RbacRoleSource value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final RbacRole.Builder source(RbacRoleSourceBuiltIn builtIn)
Alias for calling source with
RbacRoleSource.ofBuiltIn(builtIn).
-
source
final RbacRole.Builder source(RbacRoleSourceCustom custom)
Alias for calling source with
RbacRoleSource.ofCustom(custom).
-
type
final RbacRole.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("rbac_role")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final RbacRole.Builder updatedAt(OffsetDateTime updatedAt)
RFC 3339 datetime string indicating when the RBAC Role was last updated.
-
updatedAt
final RbacRole.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RbacRole.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RbacRole.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RbacRole.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RbacRole.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RbacRole.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-