Package com.vmware.nsx_policy.model
Class UserInfo.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.UserInfo.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInfo
build()
UserInfo.Builder
setRoles(java.util.List<NsxRole> roles)
Permissions This property may be present in responses from the server, but if it is present in a request to server it will be ignored.UserInfo.Builder
setRolesForPaths(java.util.List<RolesForPath> rolesForPaths)
The roles that are associated with the user, limiting them to a path.UserInfo.Builder
setUserName(java.lang.String userName)
User Name This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofUserInfo
.
-
-
Method Detail
-
setRoles
public UserInfo.Builder setRoles(java.util.List<NsxRole> roles)
Permissions This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
roles
- New value for the property.
-
setRolesForPaths
public UserInfo.Builder setRolesForPaths(java.util.List<RolesForPath> rolesForPaths)
The roles that are associated with the user, limiting them to a path. In case the path is null, the roles apply everywhere i.e. it is same as the deprecated property roles.- Parameters:
rolesForPaths
- New value for the property.
-
setUserName
public UserInfo.Builder setUserName(java.lang.String userName)
User Name This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
userName
- New value for the property.
-
build
public UserInfo build()
-
-