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

com.ziqni.admin.sdk.model.Entrant 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 com.ziqni.admin.sdk.model.EntityType;
import com.ziqni.admin.sdk.model.EntrantAction;
import com.ziqni.admin.sdk.model.EntrantStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * Entrant
 */
@JsonPropertyOrder({
  Entrant.JSON_PROPERTY_ENTRANT_ACTION,
  Entrant.JSON_PROPERTY_MEMBER_ID,
  Entrant.JSON_PROPERTY_ENTRANT_STATUS,
  Entrant.JSON_PROPERTY_ENTITY_ID,
  Entrant.JSON_PROPERTY_ENTITY_TYPE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Entrant {
  public static final String JSON_PROPERTY_ENTRANT_ACTION = "entrantAction";
  private EntrantAction entrantAction;

  public static final String JSON_PROPERTY_MEMBER_ID = "memberId";
  private String memberId;

  public static final String JSON_PROPERTY_ENTRANT_STATUS = "entrantStatus";
  private EntrantStatus entrantStatus;

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

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


  public Entrant entrantAction(EntrantAction entrantAction) {
    this.entrantAction = entrantAction;
    return this;
  }

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

  public EntrantAction getEntrantAction() {
    return entrantAction;
  }


  @JsonProperty(JSON_PROPERTY_ENTRANT_ACTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEntrantAction(EntrantAction entrantAction) {
    this.entrantAction = entrantAction;
  }


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

   /**
   * Unique member identifier. A member has to exist in the Ziqni database
   * @return memberId
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "Dc4swmQBVd51K6gPQqFx", required = true, value = "Unique member identifier. A member has to exist in the Ziqni database")
  @JsonProperty(JSON_PROPERTY_MEMBER_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getMemberId() {
    return memberId;
  }


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


  public Entrant entrantStatus(EntrantStatus entrantStatus) {
    this.entrantStatus = entrantStatus;
    return this;
  }

   /**
   * Get entrantStatus
   * @return entrantStatus
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_ENTRANT_STATUS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public EntrantStatus getEntrantStatus() {
    return entrantStatus;
  }


  @JsonProperty(JSON_PROPERTY_ENTRANT_STATUS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEntrantStatus(EntrantStatus entrantStatus) {
    this.entrantStatus = entrantStatus;
  }


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

   /**
   * Unique identifier of the entity
   * @return entityId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "PXXQrm4BuCEBoI5DKW47", value = "Unique identifier of the entity")
  @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 Entrant entityType(EntityType 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 EntityType getEntityType() {
    return entityType;
  }


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


  /**
   * Return true if this Entrant object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Entrant entrant = (Entrant) o;
    return Objects.equals(this.entrantAction, entrant.entrantAction) &&
        Objects.equals(this.memberId, entrant.memberId) &&
        Objects.equals(this.entrantStatus, entrant.entrantStatus) &&
        Objects.equals(this.entityId, entrant.entityId) &&
        Objects.equals(this.entityType, entrant.entityType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(entrantAction, memberId, entrantStatus, entityId, entityType);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Entrant {\n");
    sb.append("    entrantAction: ").append(toIndentedString(entrantAction)).append("\n");
    sb.append("    memberId: ").append(toIndentedString(memberId)).append("\n");
    sb.append("    entrantStatus: ").append(toIndentedString(entrantStatus)).append("\n");
    sb.append("    entityId: ").append(toIndentedString(entityId)).append("\n");
    sb.append("    entityType: ").append(toIndentedString(entityType)).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