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 NsxRolebuild()NsxRole.BuildersetPermissions(java.util.List<java.lang.String> permissions)Possible values are:NsxRole.PERMISSIONS_READ_APINsxRole.PERMISSIONS_READ_WRITE_APINsxRole.PERMISSIONS_CRUDNsxRole.PERMISSIONS_READNsxRole.PERMISSIONS_EXECUTENsxRole.PERMISSIONS_NONEPlease use the /user-info/permissions api to get the permission that the user has on each feature.NsxRole.BuildersetRole(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()
-
-