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

org.openstack4j.openstack.sahara.domain.SaharaJobExecutionUnwrapped Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.openstack.sahara.domain;

import org.openstack4j.model.ModelEntity;
import org.openstack4j.model.sahara.JobExecution;

import com.fasterxml.jackson.annotation.JsonUnwrapped;

/**
 * An OpenStack Sahara
 * Unwrap the root name of Job Execution when serialized into json request
 *
 * @author [email protected]
 * @author [email protected]
 */

public class SaharaJobExecutionUnwrapped implements ModelEntity {

    private static final long serialVersionUID = 1L;

    @JsonUnwrapped
    //@JsonProperty("job_execution")
    private JobExecution jobExecution;

    public SaharaJobExecutionUnwrapped(JobExecution jobExecution) {
        this.jobExecution = jobExecution;
    }

    public JobExecution getJobExecution() { // need for serialization
        return jobExecution;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy