All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.states.StateImpl Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.states;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.models.Reference;
import java.lang.Boolean;
import java.lang.Long;
import java.lang.String;
import java.time.ZonedDateTime;
import java.util.Set;
import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated(
    value = "io.sphere.sdk.annotations.processors.generators.ResourceValueImplGenerator",
    comments = "Generated from: io.sphere.sdk.states.State"
)
final class StateImpl extends Base implements State {
  @JsonProperty("builtin")
  private Boolean builtIn;

  private ZonedDateTime createdAt;

  @Nullable
  private LocalizedString description;

  private String id;

  @JsonProperty("initial")
  private Boolean initial;

  private String key;

  private ZonedDateTime lastModifiedAt;

  @Nullable
  private LocalizedString name;

  @Nullable
  private Set roles;

  @Nullable
  private Set> transitions;

  private StateType type;

  private Long version;

  @JsonCreator
  StateImpl(@JsonProperty("builtin") final Boolean builtIn, final ZonedDateTime createdAt,
      @Nullable final LocalizedString description, final String id,
      @JsonProperty("initial") final Boolean initial, final String key,
      final ZonedDateTime lastModifiedAt, @Nullable final LocalizedString name,
      @Nullable final Set roles, @Nullable final Set> transitions,
      final StateType type, final 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 Boolean isBuiltIn() {
    return builtIn;
  }

  public ZonedDateTime getCreatedAt() {
    return createdAt;
  }

  @Nullable
  public LocalizedString getDescription() {
    return description;
  }

  public String getId() {
    return id;
  }

  @JsonProperty("initial")
  public Boolean isInitial() {
    return initial;
  }

  public String getKey() {
    return key;
  }

  public ZonedDateTime getLastModifiedAt() {
    return lastModifiedAt;
  }

  @Nullable
  public LocalizedString getName() {
    return name;
  }

  @Nullable
  public Set getRoles() {
    return roles;
  }

  @Nullable
  public Set> getTransitions() {
    return transitions;
  }

  public StateType getType() {
    return type;
  }

  public Long getVersion() {
    return version;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy