com.sendsafely.dto.request.CreateDirectoryRequest Maven / Gradle / Ivy
package com.sendsafely.dto.request;
import com.sendsafely.enums.GetParam;
import com.sendsafely.enums.HTTPMethod;
import com.sendsafely.json.JsonManager;
public class CreateDirectoryRequest extends BaseRequest {
private String directoryName;
private HTTPMethod method = HTTPMethod.PUT;
private String path = "/package/" + GetParam.PACKAGE_ID + "/directory/" + GetParam.DIRECTORY_ID + "/subdirectory";
public CreateDirectoryRequest(JsonManager jsonManager){
initialize(jsonManager, method, path);
}
public void setPackageId(String packageId) {
super.setGetParam(GetParam.PACKAGE_ID, packageId);
}
public void setParentDirectoryId(String directoryId) {
super.setGetParam(GetParam.DIRECTORY_ID, directoryId);
}
public void setDirectoryName(String directoryName) {
super.setPostParam("directoryName", directoryName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy