Class UsersMetadata.Builder

  • Enclosing class:
    UsersMetadata

    public static class UsersMetadata.Builder
    extends java.lang.Object
    Builder.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()
      Instantiates a new builder.
      Builder​(java.lang.String permission, java.lang.String userName)
      Instantiates a new builder with required properties.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String permission,
                       java.lang.String userName)
        Instantiates a new builder with required properties.
        Parameters:
        permission - the permission
        userName - the userName
    • Method Detail

      • build

        public UsersMetadata build()
        Builds a UsersMetadata.
        Returns:
        the new UsersMetadata instance
      • permission

        public UsersMetadata.Builder permission​(java.lang.String permission)
        Set the permission.
        Parameters:
        permission - the permission
        Returns:
        the UsersMetadata builder
      • userName

        public UsersMetadata.Builder userName​(java.lang.String userName)
        Set the userName.
        Parameters:
        userName - the userName
        Returns:
        the UsersMetadata builder