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

com.wultra.app.onboardingserver.provider.zenid.model.api.ZenidWebDiagnosticsResponse Maven / Gradle / Ivy

The newest version!
/*
 * ZenidWeb
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 * 
 *
 * 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.wultra.app.onboardingserver.provider.zenid.model.api;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
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.wultra.app.onboardingserver.provider.zenid.model.api.ZenidSharedLicenseCountables;
import com.wultra.app.onboardingserver.provider.zenid.model.api.ZenidWebControllersSelfCheckSelfCheckItem;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


import com.wultra.app.onboardingserver.provider.zenid.model.ApiClient;
/**
 * Response object for UploadSample
 */
@JsonPropertyOrder({
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_IS_ALL_OK,
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_SELF_CHECK_ITEMS,
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_LICENSE_EXPIRATION,
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_LICENSE_REMAINING,
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_SUPPORTED_DOCUMENTS,
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_ERROR_CODE,
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_ERROR_TEXT,
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_PROCESSING_TIME_MS,
  ZenidWebDiagnosticsResponse.JSON_PROPERTY_MESSAGE_TYPE
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class ZenidWebDiagnosticsResponse {
  public static final String JSON_PROPERTY_IS_ALL_OK = "IsAllOk";
  private Boolean isAllOk;

  public static final String JSON_PROPERTY_SELF_CHECK_ITEMS = "SelfCheckItems";
  private List selfCheckItems = new ArrayList<>();

  public static final String JSON_PROPERTY_LICENSE_EXPIRATION = "LicenseExpiration";
  private OffsetDateTime licenseExpiration;

  public static final String JSON_PROPERTY_LICENSE_REMAINING = "LicenseRemaining";
  private ZenidSharedLicenseCountables licenseRemaining;

  /**
   * Gets or Sets supportedDocuments
   */
  public enum SupportedDocumentsEnum {
    IDC1("IDC1"),
    
    IDC2("IDC2"),
    
    DRV("DRV"),
    
    PAS("PAS"),
    
    EU_VIS_2019("EU_VIS_2019"),
    
    CZ_BIRTH_A2("CZ_BIRTH_A2"),
    
    CZ_BIRTH_A3("CZ_BIRTH_A3"),
    
    CZ_BIRTH_A4("CZ_BIRTH_A4"),
    
    CZ_RES_2020_A2("CZ_RES_2020_A2"),
    
    SK_IDC_2008PLUS("SK_IDC_2008plus"),
    
    SK_DRV_2004_08_09("SK_DRV_2004_08_09"),
    
    SK_DRV_2013("SK_DRV_2013"),
    
    SK_DRV_2015("SK_DRV_2015"),
    
    SK_PAS_2008_14("SK_PAS_2008_14"),
    
    SK_RES_2011("SK_RES_2011"),
    
    SK_RES_2020("SK_RES_2020"),
    
    SK_IDC_2022("SK_IDC_2022"),
    
    SK_DRV_1993("SK_DRV_1993"),
    
    PL_IDC_2015("PL_IDC_2015"),
    
    DE_IDC_2010("DE_IDC_2010"),
    
    DE_IDC_2001("DE_IDC_2001"),
    
    HR_IDC_2013_15("HR_IDC_2013_15"),
    
    AT_IDE_2000("AT_IDE_2000"),
    
    HU_IDC_2000_01_12("HU_IDC_2000_01_12"),
    
    HU_IDC_2016("HU_IDC_2016"),
    
    AT_IDC_2002_05_10("AT_IDC_2002_05_10"),
    
    HU_ADD_2012("HU_ADD_2012"),
    
    AT_PAS_2006_14("AT_PAS_2006_14"),
    
    AT_DRV_2006("AT_DRV_2006"),
    
    AT_DRV_2013("AT_DRV_2013"),
    
    CZ_RES_2011_14("CZ_RES_2011_14"),
    
    CZ_RES_2006_T("CZ_RES_2006_T"),
    
    CZ_RES_2006_07("CZ_RES_2006_07"),
    
    CZ_GUN_2014("CZ_GUN_2014"),
    
    HU_PAS_2006_12("HU_PAS_2006_12"),
    
    HU_DRV_2012_13("HU_DRV_2012_13"),
    
    HU_DRV_2012_B("HU_DRV_2012_B"),
    
    EU_EHIC_2004_A("EU_EHIC_2004_A"),
    
    UNKNOWN("Unknown"),
    
    CZ_GUN_2017("CZ_GUN_2017"),
    
    CZ_RES_2020("CZ_RES_2020"),
    
    PL_IDC_2019("PL_IDC_2019"),
    
    IT_PAS_2006_10("IT_PAS_2006_10"),
    
    INT_ISIC_2008("INT_ISIC_2008"),
    
    DE_PAS("DE_PAS"),
    
    DK_PAS("DK_PAS"),
    
    ES_PAS("ES_PAS"),
    
    FI_PAS("FI_PAS"),
    
    FR_PAS("FR_PAS"),
    
    GB_PAS("GB_PAS"),
    
    IS_PAS("IS_PAS"),
    
    NL_PAS("NL_PAS"),
    
    RO_PAS("RO_PAS"),
    
    SE_PAS("SE_PAS"),
    
    PL_PAS("PL_PAS"),
    
    PL_DRV_2013("PL_DRV_2013"),
    
    CZ_BIRTH("CZ_BIRTH"),
    
    CZ_VEHICLE_I("CZ_VEHICLE_I"),
    
    INT_ISIC_2019("INT_ISIC_2019"),
    
    SI_PAS("SI_PAS"),
    
    SI_IDC("SI_IDC"),
    
    SI_DRV("SI_DRV"),
    
    EU_EHIC_2004_B("EU_EHIC_2004_B"),
    
    PL_IDC_2001_02_13("PL_IDC_2001_02_13"),
    
    IT_IDC_2016("IT_IDC_2016"),
    
    HR_PAS_2009_15("HR_PAS_2009_15"),
    
    HR_DRV_2013("HR_DRV_2013"),
    
    HR_IDC_2003("HR_IDC_2003"),
    
    SI_DRV_2009("SI_DRV_2009"),
    
    BG_PAS_2010("BG_PAS_2010"),
    
    BG_IDC_2010("BG_IDC_2010"),
    
    BG_DRV_2010_13("BG_DRV_2010_13"),
    
    HR_IDC_2021("HR_IDC_2021"),
    
    AT_IDC_2021("AT_IDC_2021"),
    
    DE_PAS_2007("DE_PAS_2007"),
    
    DE_DRV_2013_21("DE_DRV_2013_21"),
    
    DE_DRV_1999_01_04_11("DE_DRV_1999_01_04_11"),
    
    FR_IDC_2021("FR_IDC_2021"),
    
    FR_IDC_1988_94("FR_IDC_1988_94"),
    
    ES_PAS_2003_06("ES_PAS_2003_06"),
    
    ES_IDC_2015("ES_IDC_2015"),
    
    ES_IDC_2006("ES_IDC_2006"),
    
    IT_IDC_2004("IT_IDC_2004"),
    
    RO_IDC_2001_06_09_17_21("RO_IDC_2001_06_09_17_21"),
    
    NL_IDC_2014_17_21("NL_IDC_2014_17_21"),
    
    BE_PAS_2014_17_19("BE_PAS_2014_17_19"),
    
    BE_IDC_2013_15("BE_IDC_2013_15"),
    
    BE_IDC_2020_21("BE_IDC_2020_21"),
    
    GR_PAS_2020("GR_PAS_2020"),
    
    PT_PAS_2006_09("PT_PAS_2006_09"),
    
    PT_IDC_2007_08_09_15("PT_IDC_2007_08_09_15"),
    
    SE_IDC_2012_21("SE_IDC_2012_21"),
    
    FI_IDC_2017_21("FI_IDC_2017_21"),
    
    IE_PAS_2006_13("IE_PAS_2006_13"),
    
    LT_PAS_2008_09_11_19("LT_PAS_2008_09_11_19"),
    
    LT_IDC_2009_12("LT_IDC_2009_12"),
    
    LV_PAS_2015("LV_PAS_2015"),
    
    LV_PAS_2007("LV_PAS_2007"),
    
    LV_IDC_2012("LV_IDC_2012"),
    
    LV_IDC_2019("LV_IDC_2019"),
    
    EE_PAS_2014("EE_PAS_2014"),
    
    EE_PAS_2021("EE_PAS_2021"),
    
    EE_IDC_2011("EE_IDC_2011"),
    
    EE_IDC_2018_21("EE_IDC_2018_21"),
    
    CY_PAS_2010_20("CY_PAS_2010_20"),
    
    CY_IDC_2000_08("CY_IDC_2000_08"),
    
    CY_IDC_2015_20("CY_IDC_2015_20"),
    
    LU_PAS_2015("LU_PAS_2015"),
    
    LU_IDC_2014_21("LU_IDC_2014_21"),
    
    LU_IDC_2008_13("LU_IDC_2008_13"),
    
    MT_PAS_2008("MT_PAS_2008"),
    
    MT_IDC_2014("MT_IDC_2014"),
    
    PL_PAS_2011("PL_PAS_2011"),
    
    PL_DRV_1999("PL_DRV_1999"),
    
    LT_IDC_2021("LT_IDC_2021"),
    
    UA_PAS_2007_15("UA_PAS_2007_15"),
    
    UA_IDC_2017("UA_IDC_2017"),
    
    UA_DRV_2016("UA_DRV_2016"),
    
    UA_DRV_2005("UA_DRV_2005"),
    
    UA_DRV_2021("UA_DRV_2021"),
    
    EU_EHIC_2004_C("EU_EHIC_2004_C"),
    
    VN_PAS_2005("VN_PAS_2005"),
    
    NL_DRV_2006("NL_DRV_2006"),
    
    NL_DRV_2013("NL_DRV_2013"),
    
    NL_DRV_2014("NL_DRV_2014"),
    
    AL_PAS_2009("AL_PAS_2009"),
    
    BA_PAS_2014("BA_PAS_2014"),
    
    CH_PAS_2010("CH_PAS_2010"),
    
    ME_PAS_2008("ME_PAS_2008"),
    
    MK_PAS_2007("MK_PAS_2007"),
    
    RS_PAS_2008("RS_PAS_2008"),
    
    NO_PAS_2011_15("NO_PAS_2011_15"),
    
    NO_PAS_2020("NO_PAS_2020"),
    
    GB_PAS_2010_11_15_19("GB_PAS_2010_11_15_19"),
    
    BY_PAS_2006("BY_PAS_2006"),
    
    BY_PAS_2021("BY_PAS_2021"),
    
    MD_PAS_2011_14_18("MD_PAS_2011_14_18"),
    
    IS_PAS_2006("IS_PAS_2006"),
    
    IN_PAS_2000_13("IN_PAS_2000_13"),
    
    TR_PAS_2010("TR_PAS_2010"),
    
    TR_PAS_2018("TR_PAS_2018"),
    
    RO_IDC_2021SEP("RO_IDC_2021sep"),
    
    PL_DRV_1999_A2("PL_DRV_1999_A2"),
    
    DE_IDC_2010_A2("DE_IDC_2010_A2"),
    
    DE_IDC_2010_A3("DE_IDC_2010_A3"),
    
    PL_DRV_2013_A2("PL_DRV_2013_A2"),
    
    AT_IDC_2002_05_10_A2("AT_IDC_2002_05_10_A2"),
    
    CY_IDC_2015_20_A2("CY_IDC_2015_20_A2"),
    
    CY_IDC_2000_08_A2("CY_IDC_2000_08_A2"),
    
    CY_PAS_2010_20_A2("CY_PAS_2010_20_A2"),
    
    ES_PAS_2003_06_A2("ES_PAS_2003_06_A2"),
    
    LU_IDC_2008_13_A2("LU_IDC_2008_13_A2"),
    
    NL_IDC_2014_17_21_A2("NL_IDC_2014_17_21_A2"),
    
    SE_IDC_2022("SE_IDC_2022"),
    
    SE_PAS_2022("SE_PAS_2022"),
    
    DK_PAS_2021("DK_PAS_2021"),
    
    CH_PAS_2022("CH_PAS_2022"),
    
    VN_PAS_2022("VN_PAS_2022"),
    
    ME_PAS_2008_A2("ME_PAS_2008_A2"),
    
    OL_IDC_2022("OL_IDC_2022"),
    
    SM_PAS_2006("SM_PAS_2006"),
    
    AD_PAS_2017("AD_PAS_2017"),
    
    BE_PAS_2022("BE_PAS_2022"),
    
    RU_PAS_2006_10("RU_PAS_2006_10"),
    
    TR_PAS_2023("TR_PAS_2023"),
    
    DO_IDC_2014("DO_IDC_2014"),
    
    LI_PAS_2006("LI_PAS_2006"),
    
    VA_PAS_2013("VA_PAS_2013"),
    
    US_PAS_2006("US_PAS_2006"),
    
    JP_PAS_2013("JP_PAS_2013"),
    
    PK_PAS_2022("PK_PAS_2022");

    private String value;

    SupportedDocumentsEnum(String value) {
      this.value = value;
    }

    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static SupportedDocumentsEnum fromValue(String value) {
      for (SupportedDocumentsEnum b : SupportedDocumentsEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }
  }

  public static final String JSON_PROPERTY_SUPPORTED_DOCUMENTS = "SupportedDocuments";
  private List supportedDocuments = new ArrayList<>();

  /**
   * If throght processing some error occurs, ErrorCode property is set.
   */
  public enum ErrorCodeEnum {
    UNKNOWN_SAMPLE_ID("UnknownSampleID"),
    
    UNKNOWN_UPLOAD_SESSION_ID("UnknownUploadSessionID"),
    
    EMPTY_BODY("EmptyBody"),
    
    INTERNAL_SERVER_ERROR("InternalServerError"),
    
    INVALID_TIME_STAMP("InvalidTimeStamp"),
    
    SAMPLE_IN_INVALID_STATE("SampleInInvalidState"),
    
    INVALID_SAMPLE_COMBINATION("InvalidSampleCombination"),
    
    ACCESS_DENIED("AccessDenied"),
    
    UNKNOWN_PERSON("UnknownPerson"),
    
    INVALID_INPUT_DATA("InvalidInputData"),
    
    INIT_SDK_RECREATES_SESSION_ERROR("InitSDKRecreatesSessionError");

    private String value;

    ErrorCodeEnum(String value) {
      this.value = value;
    }

    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static ErrorCodeEnum fromValue(String value) {
      for (ErrorCodeEnum b : ErrorCodeEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }
  }

  public static final String JSON_PROPERTY_ERROR_CODE = "ErrorCode";
  private ErrorCodeEnum errorCode;

  public static final String JSON_PROPERTY_ERROR_TEXT = "ErrorText";
  private String errorText;

  public static final String JSON_PROPERTY_PROCESSING_TIME_MS = "ProcessingTimeMs";
  private Long processingTimeMs;

  public static final String JSON_PROPERTY_MESSAGE_TYPE = "MessageType";
  private String messageType;

  public ZenidWebDiagnosticsResponse() { 
  }

  @JsonCreator
  public ZenidWebDiagnosticsResponse(
    @JsonProperty(JSON_PROPERTY_MESSAGE_TYPE) String messageType
  ) {
  this();
    this.messageType = messageType;
  }

  public ZenidWebDiagnosticsResponse isAllOk(Boolean isAllOk) {
    this.isAllOk = isAllOk;
    return this;
  }

  /**
   * Get isAllOk
   * @return isAllOk
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_IS_ALL_OK)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Boolean getIsAllOk() {
    return isAllOk;
  }


  @JsonProperty(JSON_PROPERTY_IS_ALL_OK)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIsAllOk(Boolean isAllOk) {
    this.isAllOk = isAllOk;
  }


  public ZenidWebDiagnosticsResponse selfCheckItems(List selfCheckItems) {
    this.selfCheckItems = selfCheckItems;
    return this;
  }

  public ZenidWebDiagnosticsResponse addSelfCheckItemsItem(ZenidWebControllersSelfCheckSelfCheckItem selfCheckItemsItem) {
    if (this.selfCheckItems == null) {
      this.selfCheckItems = new ArrayList<>();
    }
    this.selfCheckItems.add(selfCheckItemsItem);
    return this;
  }

  /**
   * Get selfCheckItems
   * @return selfCheckItems
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_SELF_CHECK_ITEMS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public List getSelfCheckItems() {
    return selfCheckItems;
  }


  @JsonProperty(JSON_PROPERTY_SELF_CHECK_ITEMS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setSelfCheckItems(List selfCheckItems) {
    this.selfCheckItems = selfCheckItems;
  }


  public ZenidWebDiagnosticsResponse licenseExpiration(OffsetDateTime licenseExpiration) {
    this.licenseExpiration = licenseExpiration;
    return this;
  }

  /**
   * Get licenseExpiration
   * @return licenseExpiration
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LICENSE_EXPIRATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public OffsetDateTime getLicenseExpiration() {
    return licenseExpiration;
  }


  @JsonProperty(JSON_PROPERTY_LICENSE_EXPIRATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLicenseExpiration(OffsetDateTime licenseExpiration) {
    this.licenseExpiration = licenseExpiration;
  }


  public ZenidWebDiagnosticsResponse licenseRemaining(ZenidSharedLicenseCountables licenseRemaining) {
    this.licenseRemaining = licenseRemaining;
    return this;
  }

  /**
   * Get licenseRemaining
   * @return licenseRemaining
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LICENSE_REMAINING)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public ZenidSharedLicenseCountables getLicenseRemaining() {
    return licenseRemaining;
  }


  @JsonProperty(JSON_PROPERTY_LICENSE_REMAINING)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLicenseRemaining(ZenidSharedLicenseCountables licenseRemaining) {
    this.licenseRemaining = licenseRemaining;
  }


  public ZenidWebDiagnosticsResponse supportedDocuments(List supportedDocuments) {
    this.supportedDocuments = supportedDocuments;
    return this;
  }

  public ZenidWebDiagnosticsResponse addSupportedDocumentsItem(SupportedDocumentsEnum supportedDocumentsItem) {
    if (this.supportedDocuments == null) {
      this.supportedDocuments = new ArrayList<>();
    }
    this.supportedDocuments.add(supportedDocumentsItem);
    return this;
  }

  /**
   * Get supportedDocuments
   * @return supportedDocuments
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_SUPPORTED_DOCUMENTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public List getSupportedDocuments() {
    return supportedDocuments;
  }


  @JsonProperty(JSON_PROPERTY_SUPPORTED_DOCUMENTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setSupportedDocuments(List supportedDocuments) {
    this.supportedDocuments = supportedDocuments;
  }


  public ZenidWebDiagnosticsResponse errorCode(ErrorCodeEnum errorCode) {
    this.errorCode = errorCode;
    return this;
  }

  /**
   * If throght processing some error occurs, ErrorCode property is set.
   * @return errorCode
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public ErrorCodeEnum getErrorCode() {
    return errorCode;
  }


  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setErrorCode(ErrorCodeEnum errorCode) {
    this.errorCode = errorCode;
  }


  public ZenidWebDiagnosticsResponse errorText(String errorText) {
    this.errorText = errorText;
    return this;
  }

  /**
   * Error text
   * @return errorText
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ERROR_TEXT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getErrorText() {
    return errorText;
  }


  @JsonProperty(JSON_PROPERTY_ERROR_TEXT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setErrorText(String errorText) {
    this.errorText = errorText;
  }


  public ZenidWebDiagnosticsResponse processingTimeMs(Long processingTimeMs) {
    this.processingTimeMs = processingTimeMs;
    return this;
  }

  /**
   * Get processingTimeMs
   * @return processingTimeMs
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PROCESSING_TIME_MS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Long getProcessingTimeMs() {
    return processingTimeMs;
  }


  @JsonProperty(JSON_PROPERTY_PROCESSING_TIME_MS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setProcessingTimeMs(Long processingTimeMs) {
    this.processingTimeMs = processingTimeMs;
  }


  /**
   * Get messageType
   * @return messageType
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_MESSAGE_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getMessageType() {
    return messageType;
  }




  /**
   * Return true if this ZenidWeb.DiagnosticsResponse object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ZenidWebDiagnosticsResponse zenidWebDiagnosticsResponse = (ZenidWebDiagnosticsResponse) o;
    return Objects.equals(this.isAllOk, zenidWebDiagnosticsResponse.isAllOk) &&
        Objects.equals(this.selfCheckItems, zenidWebDiagnosticsResponse.selfCheckItems) &&
        Objects.equals(this.licenseExpiration, zenidWebDiagnosticsResponse.licenseExpiration) &&
        Objects.equals(this.licenseRemaining, zenidWebDiagnosticsResponse.licenseRemaining) &&
        Objects.equals(this.supportedDocuments, zenidWebDiagnosticsResponse.supportedDocuments) &&
        Objects.equals(this.errorCode, zenidWebDiagnosticsResponse.errorCode) &&
        Objects.equals(this.errorText, zenidWebDiagnosticsResponse.errorText) &&
        Objects.equals(this.processingTimeMs, zenidWebDiagnosticsResponse.processingTimeMs) &&
        Objects.equals(this.messageType, zenidWebDiagnosticsResponse.messageType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(isAllOk, selfCheckItems, licenseExpiration, licenseRemaining, supportedDocuments, errorCode, errorText, processingTimeMs, messageType);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ZenidWebDiagnosticsResponse {\n");
    sb.append("    isAllOk: ").append(toIndentedString(isAllOk)).append("\n");
    sb.append("    selfCheckItems: ").append(toIndentedString(selfCheckItems)).append("\n");
    sb.append("    licenseExpiration: ").append(toIndentedString(licenseExpiration)).append("\n");
    sb.append("    licenseRemaining: ").append(toIndentedString(licenseRemaining)).append("\n");
    sb.append("    supportedDocuments: ").append(toIndentedString(supportedDocuments)).append("\n");
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
    sb.append("    errorText: ").append(toIndentedString(errorText)).append("\n");
    sb.append("    processingTimeMs: ").append(toIndentedString(processingTimeMs)).append("\n");
    sb.append("    messageType: ").append(toIndentedString(messageType)).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    ");
  }

  /**
   * Convert the instance into URL query string.
   *
   * @return URL query string
   */
  public String toUrlQueryString() {
    return toUrlQueryString(null);
  }

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    String suffix = "";
    String containerSuffix = "";
    String containerPrefix = "";
    if (prefix == null) {
      // style=form, explode=true, e.g. /pet?name=cat&type=manx
      prefix = "";
    } else {
      // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
      prefix = prefix + "[";
      suffix = "]";
      containerSuffix = "]";
      containerPrefix = "[";
    }

    StringJoiner joiner = new StringJoiner("&");

    // add `IsAllOk` to the URL query string
    if (getIsAllOk() != null) {
      joiner.add(String.format("%sIsAllOk%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsAllOk()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `SelfCheckItems` to the URL query string
    if (getSelfCheckItems() != null) {
      for (int i = 0; i < getSelfCheckItems().size(); i++) {
        if (getSelfCheckItems().get(i) != null) {
          joiner.add(getSelfCheckItems().get(i).toUrlQueryString(String.format("%sSelfCheckItems%s%s", prefix, suffix,
          "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
        }
      }
    }

    // add `LicenseExpiration` to the URL query string
    if (getLicenseExpiration() != null) {
      joiner.add(String.format("%sLicenseExpiration%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLicenseExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `LicenseRemaining` to the URL query string
    if (getLicenseRemaining() != null) {
      joiner.add(getLicenseRemaining().toUrlQueryString(prefix + "LicenseRemaining" + suffix));
    }

    // add `SupportedDocuments` to the URL query string
    if (getSupportedDocuments() != null) {
      for (int i = 0; i < getSupportedDocuments().size(); i++) {
        joiner.add(String.format("%sSupportedDocuments%s%s=%s", prefix, suffix,
            "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
            URLEncoder.encode(ApiClient.valueToString(getSupportedDocuments().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
      }
    }

    // add `ErrorCode` to the URL query string
    if (getErrorCode() != null) {
      joiner.add(String.format("%sErrorCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getErrorCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `ErrorText` to the URL query string
    if (getErrorText() != null) {
      joiner.add(String.format("%sErrorText%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getErrorText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `ProcessingTimeMs` to the URL query string
    if (getProcessingTimeMs() != null) {
      joiner.add(String.format("%sProcessingTimeMs%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProcessingTimeMs()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `MessageType` to the URL query string
    if (getMessageType() != null) {
      joiner.add(String.format("%sMessageType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMessageType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    return joiner.toString();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy