Package com.vmware.nsx_policy.model
Class NsxRole.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NsxRole.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NsxRole
build()
NsxRole.Builder
setPermissions(java.util.List<java.lang.String> permissions)
Possible values are:NsxRole.PERMISSIONS_READ_API
NsxRole.PERMISSIONS_READ_WRITE_API
NsxRole.PERMISSIONS_CRUD
NsxRole.PERMISSIONS_READ
NsxRole.PERMISSIONS_EXECUTE
NsxRole.PERMISSIONS_NONE
Please use the /user-info/permissions api to get the permission that the user has on each feature.NsxRole.Builder
setRole(java.lang.String role)
This field represents the identifier of the role.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofNsxRole
.
-
-
Method Detail
-
setPermissions
public NsxRole.Builder setPermissions(java.util.List<java.lang.String> permissions)
Possible values are: Please use the /user-info/permissions api to get the permission that the user has on each feature.- Parameters:
permissions
- New value for the property.
-
setRole
public NsxRole.Builder setRole(java.lang.String role)
This field represents the identifier of the role. With the introduction of custom roles, this field is no longer an enum.- Parameters:
role
- New value for the property.
-
build
public NsxRole build()
-
-