Class RoleRetrieveResponse.Builder
-
- All Implemented Interfaces:
public final class RoleRetrieveResponse.BuilderA builder for RoleRetrieveResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final RoleRetrieveResponse.Builder id(String id)
Identifier for the role.
-
id
final RoleRetrieveResponse.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.
-
assignmentSources
final RoleRetrieveResponse.Builder assignmentSources(List<RoleRetrieveResponse.AssignmentSource> assignmentSources)
Principals from which the role assignment is inherited, when available.
-
assignmentSources
final RoleRetrieveResponse.Builder assignmentSources(Optional<List<RoleRetrieveResponse.AssignmentSource>> assignmentSources)
Alias for calling Builder.assignmentSources with
assignmentSources.orElse(null).
-
assignmentSources
final RoleRetrieveResponse.Builder assignmentSources(JsonField<List<RoleRetrieveResponse.AssignmentSource>> assignmentSources)
Sets Builder.assignmentSources to an arbitrary JSON value.
You should usually call Builder.assignmentSources with a well-typed
List<AssignmentSource>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAssignmentSource
final RoleRetrieveResponse.Builder addAssignmentSource(RoleRetrieveResponse.AssignmentSource assignmentSource)
Adds a single AssignmentSource to assignmentSources.
-
createdAt
final RoleRetrieveResponse.Builder createdAt(Long createdAt)
When the role was created.
-
createdAt
final RoleRetrieveResponse.Builder createdAt(Long createdAt)
Alias for Builder.createdAt.
This unboxed primitive overload exists for backwards compatibility.
-
createdAt
final RoleRetrieveResponse.Builder createdAt(Optional<Long> createdAt)
Alias for calling Builder.createdAt with
createdAt.orElse(null).
-
createdAt
final RoleRetrieveResponse.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdBy
final RoleRetrieveResponse.Builder createdBy(String createdBy)
Identifier of the actor who created the role.
-
createdBy
final RoleRetrieveResponse.Builder createdBy(Optional<String> createdBy)
Alias for calling Builder.createdBy with
createdBy.orElse(null).
-
createdBy
final RoleRetrieveResponse.Builder createdBy(JsonField<String> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdByUserObj
final RoleRetrieveResponse.Builder createdByUserObj(RoleRetrieveResponse.CreatedByUserObj createdByUserObj)
User details for the actor that created the role, when available.
-
createdByUserObj
final RoleRetrieveResponse.Builder createdByUserObj(Optional<RoleRetrieveResponse.CreatedByUserObj> createdByUserObj)
Alias for calling Builder.createdByUserObj with
createdByUserObj.orElse(null).
-
createdByUserObj
final RoleRetrieveResponse.Builder createdByUserObj(JsonField<RoleRetrieveResponse.CreatedByUserObj> createdByUserObj)
Sets Builder.createdByUserObj to an arbitrary JSON value.
You should usually call Builder.createdByUserObj with a well-typed CreatedByUserObj value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final RoleRetrieveResponse.Builder description(String description)
Description of the role.
-
description
final RoleRetrieveResponse.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final RoleRetrieveResponse.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final RoleRetrieveResponse.Builder metadata(RoleRetrieveResponse.Metadata metadata)
Arbitrary metadata stored on the role.
-
metadata
final RoleRetrieveResponse.Builder metadata(Optional<RoleRetrieveResponse.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final RoleRetrieveResponse.Builder metadata(JsonField<RoleRetrieveResponse.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final RoleRetrieveResponse.Builder name(String name)
Name of the role.
-
name
final RoleRetrieveResponse.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
permissions
final RoleRetrieveResponse.Builder permissions(List<String> permissions)
Permissions associated with the role.
-
permissions
final RoleRetrieveResponse.Builder permissions(JsonField<List<String>> permissions)
Sets Builder.permissions to an arbitrary JSON value.
You should usually call Builder.permissions with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addPermission
final RoleRetrieveResponse.Builder addPermission(String permission)
Adds a single String to permissions.
-
predefinedRole
final RoleRetrieveResponse.Builder predefinedRole(Boolean predefinedRole)
Whether the role is predefined by OpenAI.
-
predefinedRole
final RoleRetrieveResponse.Builder predefinedRole(JsonField<Boolean> predefinedRole)
Sets Builder.predefinedRole to an arbitrary JSON value.
You should usually call Builder.predefinedRole with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
resourceType
final RoleRetrieveResponse.Builder resourceType(String resourceType)
Resource type the role applies to.
-
resourceType
final RoleRetrieveResponse.Builder resourceType(JsonField<String> resourceType)
Sets Builder.resourceType to an arbitrary JSON value.
You should usually call Builder.resourceType with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final RoleRetrieveResponse.Builder updatedAt(Long updatedAt)
When the role was last updated.
-
updatedAt
final RoleRetrieveResponse.Builder updatedAt(Long updatedAt)
Alias for Builder.updatedAt.
This unboxed primitive overload exists for backwards compatibility.
-
updatedAt
final RoleRetrieveResponse.Builder updatedAt(Optional<Long> updatedAt)
Alias for calling Builder.updatedAt with
updatedAt.orElse(null).
-
updatedAt
final RoleRetrieveResponse.Builder updatedAt(JsonField<Long> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RoleRetrieveResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RoleRetrieveResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RoleRetrieveResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RoleRetrieveResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RoleRetrieveResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RoleRetrieveResponse build()
Returns an immutable instance of RoleRetrieveResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .assignmentSources() .createdAt() .createdBy() .createdByUserObj() .description() .metadata() .name() .permissions() .predefinedRole() .resourceType() .updatedAt()
-
-
-
-