Class RoleReplaceParams.Body.Builder
-
- All Implemented Interfaces:
public final class RoleReplaceParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
name
final RoleReplaceParams.Body.Builder name(String name)
Name of the role
-
name
final RoleReplaceParams.Body.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.
-
description
final RoleReplaceParams.Body.Builder description(String description)
Textual description of the role
-
description
final RoleReplaceParams.Body.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final RoleReplaceParams.Body.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.
-
memberPermissions
final RoleReplaceParams.Body.Builder memberPermissions(List<RoleReplaceParams.MemberPermission> memberPermissions)
(permission, restrict_object_type) tuples which belong to this role
-
memberPermissions
final RoleReplaceParams.Body.Builder memberPermissions(Optional<List<RoleReplaceParams.MemberPermission>> memberPermissions)
Alias for calling Builder.memberPermissions with
memberPermissions.orElse(null).
-
memberPermissions
final RoleReplaceParams.Body.Builder memberPermissions(JsonField<List<RoleReplaceParams.MemberPermission>> memberPermissions)
Sets Builder.memberPermissions to an arbitrary JSON value.
You should usually call Builder.memberPermissions with a well-typed
List<MemberPermission>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMemberPermission
final RoleReplaceParams.Body.Builder addMemberPermission(RoleReplaceParams.MemberPermission memberPermission)
Adds a single MemberPermission to memberPermissions.
-
memberRoles
final RoleReplaceParams.Body.Builder memberRoles(List<String> memberRoles)
Ids of the roles this role inherits from
An inheriting role has all the permissions contained in its member roles, as well as all of their inherited permissions
-
memberRoles
final RoleReplaceParams.Body.Builder memberRoles(Optional<List<String>> memberRoles)
Alias for calling Builder.memberRoles with
memberRoles.orElse(null).
-
memberRoles
final RoleReplaceParams.Body.Builder memberRoles(JsonField<List<String>> memberRoles)
Sets Builder.memberRoles to an arbitrary JSON value.
You should usually call Builder.memberRoles with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMemberRole
final RoleReplaceParams.Body.Builder addMemberRole(String memberRole)
Adds a single String to memberRoles.
-
orgName
final RoleReplaceParams.Body.Builder orgName(String orgName)
For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the role belongs in.
-
orgName
final RoleReplaceParams.Body.Builder orgName(Optional<String> orgName)
Alias for calling Builder.orgName with
orgName.orElse(null).
-
orgName
final RoleReplaceParams.Body.Builder orgName(JsonField<String> orgName)
Sets Builder.orgName to an arbitrary JSON value.
You should usually call Builder.orgName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RoleReplaceParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RoleReplaceParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RoleReplaceParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RoleReplaceParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RoleReplaceParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RoleReplaceParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-