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