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

io.sphere.sdk.subscriptions.SubscriptionImpl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.subscriptions;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;
import java.lang.Long;
import java.lang.String;
import java.time.ZonedDateTime;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated(
    value = "io.sphere.sdk.annotations.processors.generators.ResourceValueImplGenerator",
    comments = "Generated from: io.sphere.sdk.subscriptions.Subscription"
)
final class SubscriptionImpl extends Base implements Subscription {
  private List changes;

  private ZonedDateTime createdAt;

  private Destination destination;

  private String id;

  @Nullable
  private String key;

  private ZonedDateTime lastModifiedAt;

  private List messages;

  private SubscriptionHealthStatus status;

  private Long version;

  @JsonCreator
  SubscriptionImpl(final List changes, final ZonedDateTime createdAt,
      final Destination destination, final String id, @Nullable final String key,
      final ZonedDateTime lastModifiedAt, final List messages,
      final SubscriptionHealthStatus status, final Long version) {
    this.changes = changes;
    this.createdAt = createdAt;
    this.destination = destination;
    this.id = id;
    this.key = key;
    this.lastModifiedAt = lastModifiedAt;
    this.messages = messages;
    this.status = status;
    this.version = version;
  }

  public List getChanges() {
    return changes;
  }

  public ZonedDateTime getCreatedAt() {
    return createdAt;
  }

  public Destination getDestination() {
    return destination;
  }

  public String getId() {
    return id;
  }

  @Nullable
  public String getKey() {
    return key;
  }

  public ZonedDateTime getLastModifiedAt() {
    return lastModifiedAt;
  }

  public List getMessages() {
    return messages;
  }

  public SubscriptionHealthStatus getStatus() {
    return status;
  }

  public Long getVersion() {
    return version;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy