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

com.ziqni.admin.sdk.model.EventAllOf Maven / Gradle / Ivy

There is a newer version: 1.0.21
Show newest version
/*
 * ZIQNI Admin API
 * Ziqni Application Services are used to manage and configure spaces.
 *
 * The version of the OpenAPI document: 3.0.1
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.ziqni.admin.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * EventAllOf
 */
@JsonPropertyOrder({
  EventAllOf.JSON_PROPERTY_MEMBER_ID,
  EventAllOf.JSON_PROPERTY_MEMBER_REF_ID,
  EventAllOf.JSON_PROPERTY_ACTION,
  EventAllOf.JSON_PROPERTY_BATCH_ID,
  EventAllOf.JSON_PROPERTY_ENTITY_ID,
  EventAllOf.JSON_PROPERTY_ENTITY_REF_ID,
  EventAllOf.JSON_PROPERTY_SOURCE_VALUE,
  EventAllOf.JSON_PROPERTY_POINTS,
  EventAllOf.JSON_PROPERTY_TRANSACTION_TIMESTAMP,
  EventAllOf.JSON_PROPERTY_METADATA,
  EventAllOf.JSON_PROPERTY_CUSTOM_FIELDS,
  EventAllOf.JSON_PROPERTY_TAGS,
  EventAllOf.JSON_PROPERTY_RELATES_TO,
  EventAllOf.JSON_PROPERTY_RELATES_TO_EXTERNAL
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EventAllOf {
  public static final String JSON_PROPERTY_MEMBER_ID = "memberId";
  private String memberId;

  public static final String JSON_PROPERTY_MEMBER_REF_ID = "memberRefId";
  private String memberRefId;

  public static final String JSON_PROPERTY_ACTION = "action";
  private String action;

  public static final String JSON_PROPERTY_BATCH_ID = "batchId";
  private String batchId;

  public static final String JSON_PROPERTY_ENTITY_ID = "entityId";
  private String entityId;

  public static final String JSON_PROPERTY_ENTITY_REF_ID = "entityRefId";
  private String entityRefId;

  public static final String JSON_PROPERTY_SOURCE_VALUE = "sourceValue";
  private Double sourceValue;

  public static final String JSON_PROPERTY_POINTS = "points";
  private Double points;

  public static final String JSON_PROPERTY_TRANSACTION_TIMESTAMP = "transactionTimestamp";
  private OffsetDateTime transactionTimestamp;

  public static final String JSON_PROPERTY_METADATA = "metadata";
  private Map metadata = null;

  public static final String JSON_PROPERTY_CUSTOM_FIELDS = "customFields";
  private Map customFields = null;

  public static final String JSON_PROPERTY_TAGS = "tags";
  private List tags = null;

  public static final String JSON_PROPERTY_RELATES_TO = "relatesTo";
  private List relatesTo = null;

  public static final String JSON_PROPERTY_RELATES_TO_EXTERNAL = "relatesToExternal";
  private List relatesToExternal = null;


  public EventAllOf memberId(String memberId) {
    this.memberId = memberId;
    return this;
  }

   /**
   * Unique system identifier of a Member
   * @return memberId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ac1samQmVr61KgaPQq7x", value = "Unique system identifier of a Member")
  @JsonProperty(JSON_PROPERTY_MEMBER_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getMemberId() {
    return memberId;
  }


  @JsonProperty(JSON_PROPERTY_MEMBER_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMemberId(String memberId) {
    this.memberId = memberId;
  }


  public EventAllOf memberRefId(String memberRefId) {
    this.memberRefId = memberRefId;
    return this;
  }

   /**
   * The reference to this member in external system
   * @return memberRefId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Player-1", value = "The reference to this member in external system")
  @JsonProperty(JSON_PROPERTY_MEMBER_REF_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getMemberRefId() {
    return memberRefId;
  }


  @JsonProperty(JSON_PROPERTY_MEMBER_REF_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMemberRefId(String memberRefId) {
    this.memberRefId = memberRefId;
  }


  public EventAllOf action(String action) {
    this.action = action;
    return this;
  }

   /**
   * The identifier that describes the meaning of this event
   * @return action
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "win", required = true, value = "The identifier that describes the meaning of this event")
  @JsonProperty(JSON_PROPERTY_ACTION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getAction() {
    return action;
  }


  @JsonProperty(JSON_PROPERTY_ACTION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setAction(String action) {
    this.action = action;
  }


  public EventAllOf batchId(String batchId) {
    this.batchId = batchId;
    return this;
  }

   /**
   * The batch identifier is used to group related event stream data together. This could be as simple as a UUID or your internal reference to that distinct player session event
   * @return batchId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ecrsamQm23r61KgaPQq7x", value = "The batch identifier is used to group related event stream data together. This could be as simple as a UUID or your internal reference to that distinct player session event")
  @JsonProperty(JSON_PROPERTY_BATCH_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getBatchId() {
    return batchId;
  }


  @JsonProperty(JSON_PROPERTY_BATCH_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBatchId(String batchId) {
    this.batchId = batchId;
  }


  public EventAllOf entityId(String entityId) {
    this.entityId = entityId;
    return this;
  }

   /**
   * It is a reference to a models ID for any of the following objects - Product, Achievement, Reward, Award
   * @return entityId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "6c1samQmVr61KgaPQq7x", value = "It is a reference to a models ID for any of the following objects - Product, Achievement, Reward, Award")
  @JsonProperty(JSON_PROPERTY_ENTITY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getEntityId() {
    return entityId;
  }


  @JsonProperty(JSON_PROPERTY_ENTITY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEntityId(String entityId) {
    this.entityId = entityId;
  }


  public EventAllOf entityRefId(String entityRefId) {
    this.entityRefId = entityRefId;
    return this;
  }

   /**
   * It is a reference to a models ID for any of the following objects - Product, Achievement, Reward, Award
   * @return entityRefId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "6c1samQmVr61KgaPQq7x", value = "It is a reference to a models ID for any of the following objects - Product, Achievement, Reward, Award")
  @JsonProperty(JSON_PROPERTY_ENTITY_REF_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getEntityRefId() {
    return entityRefId;
  }


  @JsonProperty(JSON_PROPERTY_ENTITY_REF_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEntityRefId(String entityRefId) {
    this.entityRefId = entityRefId;
  }


  public EventAllOf sourceValue(Double sourceValue) {
    this.sourceValue = sourceValue;
    return this;
  }

   /**
   * The actual numerical value related to the event
   * @return sourceValue
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "12.345", required = true, value = "The actual numerical value related to the event")
  @JsonProperty(JSON_PROPERTY_SOURCE_VALUE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getSourceValue() {
    return sourceValue;
  }


  @JsonProperty(JSON_PROPERTY_SOURCE_VALUE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setSourceValue(Double sourceValue) {
    this.sourceValue = sourceValue;
  }


  public EventAllOf points(Double points) {
    this.points = points;
    return this;
  }

   /**
   * A value derived from the source value field. In the context of Product additionally an adjustment factor will be applied
   * @return points
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "12.345", required = true, value = "A value derived from the source value field. In the context of Product additionally an adjustment factor will be applied")
  @JsonProperty(JSON_PROPERTY_POINTS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getPoints() {
    return points;
  }


  @JsonProperty(JSON_PROPERTY_POINTS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setPoints(Double points) {
    this.points = points;
  }


  public EventAllOf transactionTimestamp(OffsetDateTime transactionTimestamp) {
    this.transactionTimestamp = transactionTimestamp;
    return this;
  }

   /**
   * ISO8601 timestamp for when this event happened. All records are stored in UTC time zone
   * @return transactionTimestamp
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "ISO8601 timestamp for when this event happened. All records are stored in UTC time zone")
  @JsonProperty(JSON_PROPERTY_TRANSACTION_TIMESTAMP)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public OffsetDateTime getTransactionTimestamp() {
    return transactionTimestamp;
  }


  @JsonProperty(JSON_PROPERTY_TRANSACTION_TIMESTAMP)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setTransactionTimestamp(OffsetDateTime transactionTimestamp) {
    this.transactionTimestamp = transactionTimestamp;
  }


  public EventAllOf metadata(Map metadata) {
    this.metadata = metadata;
    return this;
  }

  public EventAllOf putMetadataItem(String key, Object metadataItem) {
    if (this.metadata == null) {
      this.metadata = new HashMap<>();
    }
    this.metadata.put(key, metadataItem);
    return this;
  }

   /**
   * Event metadata map.
   * @return metadata
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Event metadata map.")
  @JsonProperty(JSON_PROPERTY_METADATA)
  @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)

  public Map getMetadata() {
    return metadata;
  }


  @JsonProperty(JSON_PROPERTY_METADATA)
  @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
  public void setMetadata(Map metadata) {
    this.metadata = metadata;
  }


  public EventAllOf customFields(Map customFields) {
    this.customFields = customFields;
    return this;
  }

  public EventAllOf putCustomFieldsItem(String key, Object customFieldsItem) {
    if (this.customFields == null) {
      this.customFields = new HashMap<>();
    }
    this.customFields.put(key, customFieldsItem);
    return this;
  }

   /**
   * Get customFields
   * @return customFields
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS)
  @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)

  public Map getCustomFields() {
    return customFields;
  }


  @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS)
  @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
  public void setCustomFields(Map customFields) {
    this.customFields = customFields;
  }


  public EventAllOf tags(List tags) {
    this.tags = tags;
    return this;
  }

  public EventAllOf addTagsItem(String tagsItem) {
    if (this.tags == null) {
      this.tags = new ArrayList<>();
    }
    this.tags.add(tagsItem);
    return this;
  }

   /**
   * A list of Strings of groups that the tag belongs to
   * @return tags
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A list of Strings of groups that the tag belongs to")
  @JsonProperty(JSON_PROPERTY_TAGS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getTags() {
    return tags;
  }


  @JsonProperty(JSON_PROPERTY_TAGS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTags(List tags) {
    this.tags = tags;
  }


  public EventAllOf relatesTo(List relatesTo) {
    this.relatesTo = relatesTo;
    return this;
  }

  public EventAllOf addRelatesToItem(String relatesToItem) {
    if (this.relatesTo == null) {
      this.relatesTo = new ArrayList<>();
    }
    this.relatesTo.add(relatesToItem);
    return this;
  }

   /**
   * Get relatesTo
   * @return relatesTo
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_RELATES_TO)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getRelatesTo() {
    return relatesTo;
  }


  @JsonProperty(JSON_PROPERTY_RELATES_TO)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRelatesTo(List relatesTo) {
    this.relatesTo = relatesTo;
  }


  public EventAllOf relatesToExternal(List relatesToExternal) {
    this.relatesToExternal = relatesToExternal;
    return this;
  }

  public EventAllOf addRelatesToExternalItem(String relatesToExternalItem) {
    if (this.relatesToExternal == null) {
      this.relatesToExternal = new ArrayList<>();
    }
    this.relatesToExternal.add(relatesToExternalItem);
    return this;
  }

   /**
   * Get relatesToExternal
   * @return relatesToExternal
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_RELATES_TO_EXTERNAL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getRelatesToExternal() {
    return relatesToExternal;
  }


  @JsonProperty(JSON_PROPERTY_RELATES_TO_EXTERNAL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRelatesToExternal(List relatesToExternal) {
    this.relatesToExternal = relatesToExternal;
  }


  /**
   * Return true if this Event_allOf object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EventAllOf eventAllOf = (EventAllOf) o;
    return Objects.equals(this.memberId, eventAllOf.memberId) &&
        Objects.equals(this.memberRefId, eventAllOf.memberRefId) &&
        Objects.equals(this.action, eventAllOf.action) &&
        Objects.equals(this.batchId, eventAllOf.batchId) &&
        Objects.equals(this.entityId, eventAllOf.entityId) &&
        Objects.equals(this.entityRefId, eventAllOf.entityRefId) &&
        Objects.equals(this.sourceValue, eventAllOf.sourceValue) &&
        Objects.equals(this.points, eventAllOf.points) &&
        Objects.equals(this.transactionTimestamp, eventAllOf.transactionTimestamp) &&
        Objects.equals(this.metadata, eventAllOf.metadata) &&
        Objects.equals(this.customFields, eventAllOf.customFields) &&
        Objects.equals(this.tags, eventAllOf.tags) &&
        Objects.equals(this.relatesTo, eventAllOf.relatesTo) &&
        Objects.equals(this.relatesToExternal, eventAllOf.relatesToExternal);
  }

  @Override
  public int hashCode() {
    return Objects.hash(memberId, memberRefId, action, batchId, entityId, entityRefId, sourceValue, points, transactionTimestamp, metadata, customFields, tags, relatesTo, relatesToExternal);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EventAllOf {\n");
    sb.append("    memberId: ").append(toIndentedString(memberId)).append("\n");
    sb.append("    memberRefId: ").append(toIndentedString(memberRefId)).append("\n");
    sb.append("    action: ").append(toIndentedString(action)).append("\n");
    sb.append("    batchId: ").append(toIndentedString(batchId)).append("\n");
    sb.append("    entityId: ").append(toIndentedString(entityId)).append("\n");
    sb.append("    entityRefId: ").append(toIndentedString(entityRefId)).append("\n");
    sb.append("    sourceValue: ").append(toIndentedString(sourceValue)).append("\n");
    sb.append("    points: ").append(toIndentedString(points)).append("\n");
    sb.append("    transactionTimestamp: ").append(toIndentedString(transactionTimestamp)).append("\n");
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
    sb.append("    customFields: ").append(toIndentedString(customFields)).append("\n");
    sb.append("    tags: ").append(toIndentedString(tags)).append("\n");
    sb.append("    relatesTo: ").append(toIndentedString(relatesTo)).append("\n");
    sb.append("    relatesToExternal: ").append(toIndentedString(relatesToExternal)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy