![JAR search and dependency download from the Maven repository](/logo.png)
org.openstack4j.openstack.compute.domain.actions.ResetStateAction Maven / Gradle / Ivy
package org.openstack4j.openstack.compute.domain.actions;
import org.openstack4j.model.compute.Server.Status;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
/**
* Resets the state of a server to a specified state.
*
* @author Jeremy Unruh
*/
@JsonRootName("os-resetState")
public class ResetStateAction implements ServerAction {
private static final long serialVersionUID = 1L;
@JsonProperty("state")
private final Status state;
public ResetStateAction(Status state) {
this.state = state;
}
public static ResetStateAction create(Status state) {
return new ResetStateAction(state);
}
public Status getState() {
return state;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy