All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.box.boxjavalibv2.requests.requestobjects.BoxSharedLinkRequestObject Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package com.box.boxjavalibv2.requests.requestobjects;

import com.box.boxjavalibv2.dao.BoxFile;
import com.box.boxjavalibv2.jsonentities.BoxSharedLinkRequestEntity;
import com.box.restclientv2.requestsbase.BoxDefaultRequestObject;

public class BoxSharedLinkRequestObject extends BoxDefaultRequestObject {

    protected BoxSharedLinkRequestObject() {
    }

    protected BoxSharedLinkRequestObject(BoxSharedLinkRequestEntity sharedLink) {
        setSharedLink(sharedLink);
    }

    public static BoxSharedLinkRequestObject deleteSharedLinkRequestObject() {
        return new BoxSharedLinkRequestObject(null);
    }

    public static BoxSharedLinkRequestObject createSharedLinkRequestObject(BoxSharedLinkRequestEntity sharedLink) {
        return new BoxSharedLinkRequestObject(sharedLink);
    }

    /**
     * Set shared link. You can set this to null in a update file/folder info request in order to delete shared link in the file object.
     * 
     * @param sharedLink
     * @return
     */
    protected BoxSharedLinkRequestObject setSharedLink(BoxSharedLinkRequestEntity sharedLink) {
        put(BoxFile.FIELD_SHARED_LINK, sharedLink);
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy