Class RoleCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class RoleCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
permissions
final RoleCreateParams.Body.Builder permissions(List<String> permissions)
Permissions to grant to the role.
-
permissions
final RoleCreateParams.Body.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 RoleCreateParams.Body.Builder addPermission(String permission)
Adds a single String to permissions.
-
roleName
final RoleCreateParams.Body.Builder roleName(String roleName)
Unique name for the role.
-
roleName
final RoleCreateParams.Body.Builder roleName(JsonField<String> roleName)
Sets Builder.roleName to an arbitrary JSON value.
You should usually call Builder.roleName 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 RoleCreateParams.Body.Builder description(String description)
Optional description of the role.
-
description
final RoleCreateParams.Body.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final RoleCreateParams.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.
-
additionalProperties
final RoleCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RoleCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RoleCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RoleCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RoleCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RoleCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.permissions() .roleName()
-
-
-
-