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

org.cloudfoundry.multiapps.controller.api.model.AsyncUploadResult Maven / Gradle / Ivy

There is a newer version: 1.183.0
Show newest version
package org.cloudfoundry.multiapps.controller.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import io.swagger.annotations.ApiModelProperty;
import org.cloudfoundry.multiapps.common.Nullable;
import org.immutables.value.Value;

import java.util.List;

@Value.Immutable
@JsonSerialize(as = ImmutableAsyncUploadResult.class)
@JsonDeserialize(as = ImmutableAsyncUploadResult.class)
public interface AsyncUploadResult {

    enum JobStatus {
        RUNNING, FINISHED, ERROR
    }

    enum ClientAction {
        RETRY_UPLOAD
    }

    @ApiModelProperty
    @JsonProperty("status")
    JobStatus getStatus();

    @Nullable
    @ApiModelProperty
    @JsonProperty("bytes_processed")
    Long getBytes();

    @Nullable
    @ApiModelProperty
    @JsonProperty("error")
    String getError();

    @Nullable
    @ApiModelProperty
    @JsonProperty("file")
    FileMetadata getFile();

    @Nullable
    @ApiModelProperty
    @JsonProperty("mta_id")
    String getMtaId();

    @Nullable
    @ApiModelProperty
    @JsonProperty("client_actions")
    List getClientActions();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy