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