org.openstack4j.openstack.sahara.domain.SaharaClusterUnwrapped Maven / Gradle / Ivy
package org.openstack4j.openstack.sahara.domain;
import org.openstack4j.model.ModelEntity;
import org.openstack4j.model.sahara.Cluster;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
/**
* An OpenStack Sahara
* Unwrap the root name of Cluster when serialized into json request
*
* @author [email protected]
*/
public class SaharaClusterUnwrapped implements ModelEntity {
private static final long serialVersionUID = 1L;
@JsonUnwrapped
//@JsonProperty("cluster")
private Cluster cluster;
public SaharaClusterUnwrapped(Cluster cluster) {
this.cluster = cluster;
}
public Cluster getCluster() { // need for serialization
return cluster;
}
}