com.box.boxjavalibv2.requests.UpdateGroupMembershipRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxjavalibv2 Show documentation
Show all versions of boxjavalibv2 Show documentation
The Java SDK for the Box API.
package com.box.boxjavalibv2.requests;
import com.box.boxjavalibv2.IBoxConfig;
import com.box.boxjavalibv2.jsonparsing.IBoxJSONParser;
import com.box.boxjavalibv2.requests.requestobjects.BoxGroupMembershipRequestObject;
import com.box.restclientv2.RestMethod;
import com.box.restclientv2.exceptions.BoxRestException;
import com.box.restclientv2.requestsbase.DefaultBoxRequest;
public class UpdateGroupMembershipRequest extends DefaultBoxRequest {
private static final String URI = "/group_memberships/%s";
public UpdateGroupMembershipRequest(final IBoxConfig config, final IBoxJSONParser parser, final String membershipId,
final BoxGroupMembershipRequestObject requestObject) throws BoxRestException {
super(config, parser, getUri(membershipId), RestMethod.PUT, requestObject);
}
public static String getUri(final String membershipId) {
return String.format(URI, membershipId);
}
}