io.sphere.sdk.states.StateImpl Maven / Gradle / Ivy
/*
This class has been generated by class io.sphere.sdk.annotations.processors.ResourceValueAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.ResourceValue.
in the source class io.sphere.sdk.states.State.
*/
package io.sphere.sdk.states;
import javax.annotation.Nullable;
import io.sphere.sdk.models.*;
import java.util.*;
import io.sphere.sdk.utils.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.annotation.JsonCreator;
final class StateImpl extends io.sphere.sdk.models.Base implements State {
private final java.lang.String key;
private final io.sphere.sdk.states.StateType type;
@Nullable()
private final io.sphere.sdk.models.LocalizedString name;
@Nullable()
private final io.sphere.sdk.models.LocalizedString description;
@JsonProperty("initial")
private final java.lang.Boolean initial;
@JsonProperty("builtin")
private final java.lang.Boolean builtIn;
@Nullable()
private final java.util.Set> transitions;
@Nullable()
private final java.util.Set roles;
private final java.lang.String id;
private final java.lang.Long version;
private final java.time.ZonedDateTime createdAt;
private final java.time.ZonedDateTime lastModifiedAt;
@JsonCreator()
StateImpl(@com.fasterxml.jackson.annotation.JsonProperty("builtin") final java.lang.Boolean builtIn, final java.time.ZonedDateTime createdAt, final io.sphere.sdk.models.LocalizedString description, final java.lang.String id, @com.fasterxml.jackson.annotation.JsonProperty("initial") final java.lang.Boolean initial, final java.lang.String key, final java.time.ZonedDateTime lastModifiedAt, final io.sphere.sdk.models.LocalizedString name, final java.util.Set roles, final java.util.Set> transitions, final io.sphere.sdk.states.StateType type, final java.lang.Long version) {
this.builtIn = builtIn;
this.createdAt = createdAt;
this.description = description;
this.id = id;
this.initial = initial;
this.key = key;
this.lastModifiedAt = lastModifiedAt;
this.name = name;
this.roles = roles;
this.transitions = transitions;
this.type = type;
this.version = version;
}
@JsonProperty("builtin")
public java.lang.Boolean isBuiltIn() {
return builtIn;
}
public java.time.ZonedDateTime getCreatedAt() {
return createdAt;
}
@Nullable()
public io.sphere.sdk.models.LocalizedString getDescription() {
return description;
}
public java.lang.String getId() {
return id;
}
@JsonProperty("initial")
public java.lang.Boolean isInitial() {
return initial;
}
public java.lang.String getKey() {
return key;
}
public java.time.ZonedDateTime getLastModifiedAt() {
return lastModifiedAt;
}
@Nullable()
public io.sphere.sdk.models.LocalizedString getName() {
return name;
}
@Nullable()
public java.util.Set getRoles() {
return roles;
}
@Nullable()
public java.util.Set> getTransitions() {
return transitions;
}
public io.sphere.sdk.states.StateType getType() {
return type;
}
public java.lang.Long getVersion() {
return version;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy