io.sphere.sdk.states.StateImpl Maven / Gradle / Ivy
package io.sphere.sdk.states;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.DefaultModelImpl;
import io.sphere.sdk.models.LocalizedStrings;
import io.sphere.sdk.models.Reference;
import java.time.Instant;
import java.util.Optional;
import java.util.Set;
final class StateImpl extends DefaultModelImpl implements State {
private final String key;
private final StateType type;
private final Optional name;
private final Optional description;
private final boolean initial;
private final boolean builtIn;
private final Optional>> transitions;
@JsonCreator
public StateImpl(String id, long version, Instant createdAt, Instant lastModifiedAt, String key, StateType type,
Optional name, Optional description, boolean initial,
boolean builtIn, Optional>> transitions) {
super(id, version, createdAt, lastModifiedAt);
this.key = key;
this.type = type;
this.name = name;
this.description = description;
this.initial = initial;
this.builtIn = builtIn;
this.transitions = transitions;
}
public String getKey() {
return key;
}
public StateType getType() {
return type;
}
public Optional getName() {
return name;
}
public Optional getDescription() {
return description;
}
public boolean isInitial() {
return initial;
}
public boolean isBuiltIn() {
return builtIn;
}
public Optional>> getTransitions() {
return transitions;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy