Class AddResponsibilityRequest.Builder
- Object
-
- Builder
-
- Enclosing class:
- AddResponsibilityRequest
public static class AddResponsibilityRequest.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddResponsibilityRequest
build()
AddResponsibilityRequest.Builder
but()
Deprecated.This method will be removed in the future.AddResponsibilityRequest.Builder
ownerId(@NotNull UUID ownerId)
Required. The ID of the user who the responsibility is created for.AddResponsibilityRequest.Builder
resourceId(UUID resourceId)
The ID of the resource which the responsibility is created for.AddResponsibilityRequest.Builder
resourceType(ResourceType resourceType)
The type of the resource which the responsibility is created for, i.e.AddResponsibilityRequest.Builder
roleId(@NotNull UUID roleId)
Required. The ID of the role that should be assigned to user.String
toString()
-
-
-
Method Detail
-
but
@Deprecated public AddResponsibilityRequest.Builder but()
Deprecated.This method will be removed in the future. Please, useAddResponsibilityRequest.builder()
Clone method for this Builder.
-
roleId
public AddResponsibilityRequest.Builder roleId(@NotNull @NotNull UUID roleId)
Required. The ID of the role that should be assigned to user.- Returns:
this
.
-
ownerId
public AddResponsibilityRequest.Builder ownerId(@NotNull @NotNull UUID ownerId)
Required. The ID of the user who the responsibility is created for.- Returns:
this
.
-
resourceId
public AddResponsibilityRequest.Builder resourceId(UUID resourceId)
The ID of the resource which the responsibility is created for. NOTE: if null, a global responsibility is created.- Returns:
this
.
-
resourceType
public AddResponsibilityRequest.Builder resourceType(ResourceType resourceType)
The type of the resource which the responsibility is created for, i.e. [Community, Asset, Domain]- Returns:
this
.
-
build
public AddResponsibilityRequest build()
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-