com.github.narcissujsk.openstackjsk.openstack.sahara.domain.SaharaJobUnwrapped Maven / Gradle / Ivy
The newest version!
package com.github.narcissujsk.openstackjsk.openstack.sahara.domain;
import com.github.narcissujsk.openstackjsk.model.ModelEntity;
import com.github.narcissujsk.openstackjsk.model.sahara.Job;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
/**
* An OpenStack Sahara
* Unwrap the root name of Job when serialized into json request
*
* @author [email protected]
* @author [email protected]
*/
public class SaharaJobUnwrapped implements ModelEntity {
private static final long serialVersionUID = 1L;
@JsonUnwrapped
//@JsonProperty("job")
private Job job;
public SaharaJobUnwrapped(Job job) {
this.job = job;
}
public Job getJob() { // need for serialization
return job;
}
}