code: public void setPermissions(Permissions permissions) {
          if (this.permissions == permissions) {
              return;
          }
  
          this.removeChildObject("permissions");
          this.permissions = permissions;
          this.addChildObject("permissions", permissions);
      }
docs: Sets the permissions associated with this shared link.
  @param permissions the new permissions for this shared link.