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

com.ziqni.admin.sdk.model.EntityChanged 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.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * EntityChanged
 */
@JsonPropertyOrder({
  EntityChanged.JSON_PROPERTY_ENTITY_ID,
  EntityChanged.JSON_PROPERTY_ENTITY_TYPE,
  EntityChanged.JSON_PROPERTY_CHANGED_AT,
  EntityChanged.JSON_PROPERTY_CHANGED_BY,
  EntityChanged.JSON_PROPERTY_TYPE_OFF_CHANGE,
  EntityChanged.JSON_PROPERTY_DISPLAY_NAME,
  EntityChanged.JSON_PROPERTY_ACCOUNT_ID,
  EntityChanged.JSON_PROPERTY_SEQUENCE_NUMBER,
  EntityChanged.JSON_PROPERTY_ENTITY_REF_ID,
  EntityChanged.JSON_PROPERTY_ENTITY_PARENT_ID,
  EntityChanged.JSON_PROPERTY_METADATA
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntityChanged {
  public static final String JSON_PROPERTY_ENTITY_ID = "entityId";
  private String entityId;

  public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType";
  private String entityType;

  public static final String JSON_PROPERTY_CHANGED_AT = "changedAt";
  private OffsetDateTime changedAt;

  public static final String JSON_PROPERTY_CHANGED_BY = "changedBy";
  private String changedBy;

  public static final String JSON_PROPERTY_TYPE_OFF_CHANGE = "typeOffChange";
  private Integer typeOffChange;

  public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName";
  private String displayName;

  public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
  private String accountId;

  public static final String JSON_PROPERTY_SEQUENCE_NUMBER = "sequenceNumber";
  private Long sequenceNumber;

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

  public static final String JSON_PROPERTY_ENTITY_PARENT_ID = "entityParentId";
  private String entityParentId;

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


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

   /**
   * Get entityId
   * @return entityId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @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 EntityChanged entityType(String entityType) {
    this.entityType = entityType;
    return this;
  }

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

  public String getEntityType() {
    return entityType;
  }


  @JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEntityType(String entityType) {
    this.entityType = entityType;
  }


  public EntityChanged changedAt(OffsetDateTime changedAt) {
    this.changedAt = changedAt;
    return this;
  }

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

  public OffsetDateTime getChangedAt() {
    return changedAt;
  }


  @JsonProperty(JSON_PROPERTY_CHANGED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setChangedAt(OffsetDateTime changedAt) {
    this.changedAt = changedAt;
  }


  public EntityChanged changedBy(String changedBy) {
    this.changedBy = changedBy;
    return this;
  }

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

  public String getChangedBy() {
    return changedBy;
  }


  @JsonProperty(JSON_PROPERTY_CHANGED_BY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setChangedBy(String changedBy) {
    this.changedBy = changedBy;
  }


  public EntityChanged typeOffChange(Integer typeOffChange) {
    this.typeOffChange = typeOffChange;
    return this;
  }

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

  public Integer getTypeOffChange() {
    return typeOffChange;
  }


  @JsonProperty(JSON_PROPERTY_TYPE_OFF_CHANGE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTypeOffChange(Integer typeOffChange) {
    this.typeOffChange = typeOffChange;
  }


  public EntityChanged displayName(String displayName) {
    this.displayName = displayName;
    return this;
  }

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

  public String getDisplayName() {
    return displayName;
  }


  @JsonProperty(JSON_PROPERTY_DISPLAY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDisplayName(String displayName) {
    this.displayName = displayName;
  }


  public EntityChanged accountId(String accountId) {
    this.accountId = accountId;
    return this;
  }

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

  public String getAccountId() {
    return accountId;
  }


  @JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAccountId(String accountId) {
    this.accountId = accountId;
  }


  public EntityChanged sequenceNumber(Long sequenceNumber) {
    this.sequenceNumber = sequenceNumber;
    return this;
  }

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

  public Long getSequenceNumber() {
    return sequenceNumber;
  }


  @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setSequenceNumber(Long sequenceNumber) {
    this.sequenceNumber = sequenceNumber;
  }


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

   /**
   * Get entityRefId
   * @return entityRefId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @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 EntityChanged entityParentId(String entityParentId) {
    this.entityParentId = entityParentId;
    return this;
  }

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

  public String getEntityParentId() {
    return entityParentId;
  }


  @JsonProperty(JSON_PROPERTY_ENTITY_PARENT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEntityParentId(String entityParentId) {
    this.entityParentId = entityParentId;
  }


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

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

   /**
   * Get metadata
   * @return metadata
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @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;
  }


  /**
   * Return true if this EntityChanged object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EntityChanged entityChanged = (EntityChanged) o;
    return Objects.equals(this.entityId, entityChanged.entityId) &&
        Objects.equals(this.entityType, entityChanged.entityType) &&
        Objects.equals(this.changedAt, entityChanged.changedAt) &&
        Objects.equals(this.changedBy, entityChanged.changedBy) &&
        Objects.equals(this.typeOffChange, entityChanged.typeOffChange) &&
        Objects.equals(this.displayName, entityChanged.displayName) &&
        Objects.equals(this.accountId, entityChanged.accountId) &&
        Objects.equals(this.sequenceNumber, entityChanged.sequenceNumber) &&
        Objects.equals(this.entityRefId, entityChanged.entityRefId) &&
        Objects.equals(this.entityParentId, entityChanged.entityParentId) &&
        Objects.equals(this.metadata, entityChanged.metadata);
  }

  @Override
  public int hashCode() {
    return Objects.hash(entityId, entityType, changedAt, changedBy, typeOffChange, displayName, accountId, sequenceNumber, entityRefId, entityParentId, metadata);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EntityChanged {\n");
    sb.append("    entityId: ").append(toIndentedString(entityId)).append("\n");
    sb.append("    entityType: ").append(toIndentedString(entityType)).append("\n");
    sb.append("    changedAt: ").append(toIndentedString(changedAt)).append("\n");
    sb.append("    changedBy: ").append(toIndentedString(changedBy)).append("\n");
    sb.append("    typeOffChange: ").append(toIndentedString(typeOffChange)).append("\n");
    sb.append("    displayName: ").append(toIndentedString(displayName)).append("\n");
    sb.append("    accountId: ").append(toIndentedString(accountId)).append("\n");
    sb.append("    sequenceNumber: ").append(toIndentedString(sequenceNumber)).append("\n");
    sb.append("    entityRefId: ").append(toIndentedString(entityRefId)).append("\n");
    sb.append("    entityParentId: ").append(toIndentedString(entityParentId)).append("\n");
    sb.append("    metadata: ").append(toIndentedString(metadata)).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