Class UserInfo.Builder

  • Enclosing class:
    UserInfo

    public static final class UserInfo.Builder
    extends java.lang.Object
    Builder class for UserInfo.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()
      Constructor with parameters for the required properties of UserInfo.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of UserInfo.
    • 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.