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

com.smartling.api.files.v2.pto.UploadFilePTO Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
package com.smartling.api.files.v2.pto;

import com.smartling.resteasy.ext.DynamicFormParam;
import com.smartling.resteasy.ext.ListFormParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jboss.resteasy.annotations.providers.multipart.PartFilename;
import org.jboss.resteasy.annotations.providers.multipart.PartType;

import javax.ws.rs.FormParam;
import java.io.InputStream;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UploadFilePTO
{
    @FormParam("file")
    @PartType("application/octet-stream")
    @PartFilename("file")
    private InputStream file;

    @FormParam("fileUri")
    @PartType("text/plain")
    private String fileUri;

    @FormParam("fileType")
    @PartType("text/plain")
    private FileType fileType;

    @FormParam("authorize")
    @PartType("text/plain")
    private Boolean authorize;

    @ListFormParam("localeIdsToAuthorize[]")
    @PartType("text/plain")
    private List localeIdsToAuthorize;

    @FormParam("callbackUrl")
    @PartType("text/plain")
    private String callbackUrl;

    @DynamicFormParam()
    @PartType("text/plain")
    private Map directives;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy