Class AclCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class AclCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
objectId
final AclCreateParams.Body.Builder objectId(String objectId)
The id of the object the ACL applies to
-
objectId
final AclCreateParams.Body.Builder objectId(JsonField<String> objectId)
Sets Builder.objectId to an arbitrary JSON value.
You should usually call Builder.objectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
objectType
final AclCreateParams.Body.Builder objectType(AclObjectType objectType)
The object type that the ACL applies to
-
objectType
final AclCreateParams.Body.Builder objectType(JsonField<AclObjectType> objectType)
Sets Builder.objectType to an arbitrary JSON value.
You should usually call Builder.objectType with a well-typed AclObjectType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
groupId
final AclCreateParams.Body.Builder groupId(String groupId)
Id of the group the ACL applies to. Exactly one of
user_idandgroup_idwill be provided
-
groupId
final AclCreateParams.Body.Builder groupId(Optional<String> groupId)
Alias for calling Builder.groupId with
groupId.orElse(null).
-
groupId
final AclCreateParams.Body.Builder groupId(JsonField<String> groupId)
Sets Builder.groupId to an arbitrary JSON value.
You should usually call Builder.groupId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
permission
final AclCreateParams.Body.Builder permission(Permission permission)
Permission the ACL grants. Exactly one of
permissionandrole_idwill be provided
-
permission
final AclCreateParams.Body.Builder permission(Optional<Permission> permission)
Alias for calling Builder.permission with
permission.orElse(null).
-
permission
final AclCreateParams.Body.Builder permission(JsonField<Permission> permission)
Sets Builder.permission to an arbitrary JSON value.
You should usually call Builder.permission with a well-typed Permission value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
restrictObjectType
final AclCreateParams.Body.Builder restrictObjectType(AclObjectType restrictObjectType)
When setting a permission directly, optionally restricts the permission grant to just the specified object type. Cannot be set alongside a
role_id.
-
restrictObjectType
final AclCreateParams.Body.Builder restrictObjectType(Optional<AclObjectType> restrictObjectType)
Alias for calling Builder.restrictObjectType with
restrictObjectType.orElse(null).
-
restrictObjectType
final AclCreateParams.Body.Builder restrictObjectType(JsonField<AclObjectType> restrictObjectType)
Sets Builder.restrictObjectType to an arbitrary JSON value.
You should usually call Builder.restrictObjectType with a well-typed AclObjectType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
roleId
final AclCreateParams.Body.Builder roleId(String roleId)
Id of the role the ACL grants. Exactly one of
permissionandrole_idwill be provided
-
roleId
final AclCreateParams.Body.Builder roleId(Optional<String> roleId)
Alias for calling Builder.roleId with
roleId.orElse(null).
-
roleId
final AclCreateParams.Body.Builder roleId(JsonField<String> roleId)
Sets Builder.roleId to an arbitrary JSON value.
You should usually call Builder.roleId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final AclCreateParams.Body.Builder userId(String userId)
Id of the user the ACL applies to. Exactly one of
user_idandgroup_idwill be provided
-
userId
final AclCreateParams.Body.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final AclCreateParams.Body.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId 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 AclCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final AclCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final AclCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final AclCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final AclCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final AclCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.objectId() .objectType()
-
-
-
-