com.wultra.app.onboardingserver.provider.zenid.model.api.ZenidWebInvestigationIssueResponse 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 java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.wultra.app.onboardingserver.provider.zenid.model.ApiClient;
/**
* ZenidWebInvestigationIssueResponse
*/
@JsonPropertyOrder({
ZenidWebInvestigationIssueResponse.JSON_PROPERTY_ISSUE_URL,
ZenidWebInvestigationIssueResponse.JSON_PROPERTY_ISSUE_DESCRIPTION,
ZenidWebInvestigationIssueResponse.JSON_PROPERTY_DOCUMENT_CODE,
ZenidWebInvestigationIssueResponse.JSON_PROPERTY_FIELD_I_D,
ZenidWebInvestigationIssueResponse.JSON_PROPERTY_SAMPLE_I_D,
ZenidWebInvestigationIssueResponse.JSON_PROPERTY_PAGE_CODE,
ZenidWebInvestigationIssueResponse.JSON_PROPERTY_SAMPLE_TYPE
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class ZenidWebInvestigationIssueResponse {
public static final String JSON_PROPERTY_ISSUE_URL = "IssueUrl";
private String issueUrl;
public static final String JSON_PROPERTY_ISSUE_DESCRIPTION = "IssueDescription";
private String issueDescription;
/**
* Document code of sample, where issue is present
*/
public enum DocumentCodeEnum {
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;
DocumentCodeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static DocumentCodeEnum fromValue(String value) {
for (DocumentCodeEnum b : DocumentCodeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_DOCUMENT_CODE = "DocumentCode";
private DocumentCodeEnum documentCode;
/**
* FieldID wher issue is present
*/
public enum FieldIDEnum {
A1("A1"),
A2("A2"),
A3("A3"),
FIRST_NAME("FirstName"),
LAST_NAME("LastName"),
PHOTO("Photo"),
BIRTH_DATE("BirthDate"),
BIRTH_NUMBER("BirthNumber"),
AUTHORITY("Authority"),
MRZ1("Mrz1"),
MRZ2("Mrz2"),
MRZ3("Mrz3"),
IDCARD_NUMBER("IdcardNumber"),
SEX("Sex"),
MARITAL_STATUS("MaritalStatus"),
BIRTH_ADDRESS("BirthAddress"),
BA1("BA1"),
BA2("BA2"),
ISSUE_DATE("IssueDate"),
EXPIRY_DATE("ExpiryDate"),
PASSPORT_NUMBER("PassportNumber"),
DRIVINGLICENSE_NUMBER("DrivinglicenseNumber"),
BARCODE("Barcode"),
BIRTH_LAST_NAME("BirthLastName"),
SPECIAL_REMARKS("SpecialRemarks"),
HEIGHT("Height"),
EYES_COLOR("EyesColor"),
TITLES("Titles"),
AUTHORITY1("Authority1"),
AUTHORITY2("Authority2"),
LAST_NAME1("LastName1"),
LAST_NAME2_TITLES_AFTER("LastName2TitlesAfter"),
DRV_CODES("DrvCodes"),
SIGNATURE("Signature"),
OTHER_INFO("OtherInfo"),
MINI_HOLOGRAM("MiniHologram"),
MINI_PHOTO("MiniPhoto"),
CAR_NUMBER("CarNumber"),
LICENSE_TYPES("LicenseTypes"),
FIRST_NAME_OF_PARENTS("FirstNameOfParents"),
BIRTH_DATE_NUMBER("BirthDateNumber"),
DRIVINGLICENSE_NUMBER2("DrivinglicenseNumber2"),
RDIF_CHIP_ACCESS("RDIFChipAccess"),
PSEUDONYM("Pseudonym"),
RESIDENCY_PERMIT_DESCRIPTION("ResidencyPermitDescription"),
RESIDENCY_PERMIT_CODE("ResidencyPermitCode"),
RESIDENCY_NUMBER("ResidencyNumber"),
AUTHORITY_AND_ISSUE_DATE("AuthorityAndIssueDate"),
NATIONALITY("Nationality"),
GUNLICENSE_NUMBER("GunlicenseNumber"),
STAMP("Stamp"),
STAMP2("Stamp2"),
SURNAME_AND_NAME1("SurnameAndName1"),
SURNAME_AND_NAME2("SurnameAndName2"),
SURNAME_AND_NAME3("SurnameAndName3"),
MOTHERS_SURNAME_AND_NAME("MothersSurnameAndName"),
TEMPORARY_ADDRESS1("TemporaryAddress1"),
TEMPORARY_ADDRESS2("TemporaryAddress2"),
ADDRESS_STARTING_DATE("AddressStartingDate"),
TEMPORARY_ADDRESS_STARTING_DATE("TemporaryAddressStartingDate"),
TEMPORARY_ADDRESS_ENDING_DATE("TemporaryAddressEndingDate"),
NAME_IN_NATIONAL_LANGUAGE("NameInNationalLanguage"),
BIRTH_DATE_AND_ADDRESS("BirthDateAndAddress"),
SPECIAL_REMARKS2("SpecialRemarks2"),
SPECIAL_REMARKS3("SpecialRemarks3"),
UNKNOWN("Unknown"),
HEALTH_INSURANCE_CARD_NUMBER("HealthInsuranceCardNumber"),
INSURANCE_COMPANY_CODE("InsuranceCompanyCode"),
ISSUING_COUNTRY("IssuingCountry"),
RESIDENCY_NUMBER_PHOTO("ResidencyNumberPhoto"),
ISSUE_DATE_AND_AUTHORITY("IssueDateAndAuthority"),
TITLES_AFTER("TitlesAfter"),
PLACE_OF_ISSUE("PlaceOfIssue"),
BIRTH_ADDRESS_AND_DATE("BirthAddressAndDate"),
ISSUE_DATE_AND_PLACE_OF_ISSUE("IssueDateAndPlaceOfIssue"),
MOTHERS_SURNAME("MothersSurname"),
MOTHERS_NAME("MothersName"),
FATHERS_SURNAME("FathersSurname"),
FATHERS_NAME("FathersName"),
LAST_NAME2("LastName2"),
A4("A4"),
FIRST_NAME2("FirstName2"),
ISSUE_AND_EXPIRY_DATE("IssueAndExpiryDate"),
FISCAL_NUMBER("FiscalNumber"),
SOCIAL_NUMBER("SocialNumber"),
ALTERNATIVE_NAME("AlternativeName"),
VISA_NUMBER("VisaNumber"),
DURATION("Duration"),
TYPE("Type"),
COUNT("Count"),
NAMES_OF_PARENTS("NamesOfParents"),
NAMES_OF_PARENTS2("NamesOfParents2"),
HEALTH_INSURANCE_NUMBER("HealthInsuranceNumber"),
FATHERS_BIRTH_DATE("FathersBirthDate"),
MOTHERS_BIRTH_DATE("MothersBirthDate"),
BIRTH_CERTIFICATE_NUMBER1("BirthCertificateNumber1"),
BIRTH_CERTIFICATE_NUMBER2("BirthCertificateNumber2"),
BIRTH_CERTIFICATE_NUMBER3("BirthCertificateNumber3"),
BIRTH_CERTIFICATE_NUMBER4("BirthCertificateNumber4"),
FATHERS_BIRTH_NUMBER("FathersBirthNumber"),
MOTHERS_BIRTH_NUMBER("MothersBirthNumber"),
FATHERS_SURNAME_BIRTH_SURNAME("FathersSurnameBirthSurname"),
MOTHERS_SURNAME_BIRTH_SURNAME("MothersSurnameBirthSurname"),
AUTHORITY3("Authority3"),
SEX2("Sex2");
private String value;
FieldIDEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static FieldIDEnum fromValue(String value) {
for (FieldIDEnum b : FieldIDEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_FIELD_I_D = "FieldID";
private FieldIDEnum fieldID;
public static final String JSON_PROPERTY_SAMPLE_I_D = "SampleID";
private String sampleID;
/**
* Identification of the page type for issue
*/
public enum PageCodeEnum {
F("F"),
B("B");
private String value;
PageCodeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PageCodeEnum fromValue(String value) {
for (PageCodeEnum b : PageCodeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_PAGE_CODE = "PageCode";
private PageCodeEnum pageCode;
/**
* Type of sample
*/
public enum SampleTypeEnum {
DOCUMENT_PICTURE("DocumentPicture"),
SELFIE("Selfie"),
SELFIE_VIDEO("SelfieVideo"),
DOCUMENT_VIDEO("DocumentVideo"),
ARCHIVED("Archived"),
UNKNOWN("Unknown");
private String value;
SampleTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SampleTypeEnum fromValue(String value) {
for (SampleTypeEnum b : SampleTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SAMPLE_TYPE = "SampleType";
private SampleTypeEnum sampleType;
public ZenidWebInvestigationIssueResponse() {
}
public ZenidWebInvestigationIssueResponse issueUrl(String issueUrl) {
this.issueUrl = issueUrl;
return this;
}
/**
* Url with detailed visualization of the issue.
* @return issueUrl
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ISSUE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIssueUrl() {
return issueUrl;
}
@JsonProperty(JSON_PROPERTY_ISSUE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIssueUrl(String issueUrl) {
this.issueUrl = issueUrl;
}
public ZenidWebInvestigationIssueResponse issueDescription(String issueDescription) {
this.issueDescription = issueDescription;
return this;
}
/**
* Description of issue
* @return issueDescription
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ISSUE_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIssueDescription() {
return issueDescription;
}
@JsonProperty(JSON_PROPERTY_ISSUE_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIssueDescription(String issueDescription) {
this.issueDescription = issueDescription;
}
public ZenidWebInvestigationIssueResponse documentCode(DocumentCodeEnum documentCode) {
this.documentCode = documentCode;
return this;
}
/**
* Document code of sample, where issue is present
* @return documentCode
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DOCUMENT_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DocumentCodeEnum getDocumentCode() {
return documentCode;
}
@JsonProperty(JSON_PROPERTY_DOCUMENT_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDocumentCode(DocumentCodeEnum documentCode) {
this.documentCode = documentCode;
}
public ZenidWebInvestigationIssueResponse fieldID(FieldIDEnum fieldID) {
this.fieldID = fieldID;
return this;
}
/**
* FieldID wher issue is present
* @return fieldID
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FIELD_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public FieldIDEnum getFieldID() {
return fieldID;
}
@JsonProperty(JSON_PROPERTY_FIELD_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFieldID(FieldIDEnum fieldID) {
this.fieldID = fieldID;
}
public ZenidWebInvestigationIssueResponse sampleID(String sampleID) {
this.sampleID = sampleID;
return this;
}
/**
* ID of the identification issue
* @return sampleID
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SAMPLE_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSampleID() {
return sampleID;
}
@JsonProperty(JSON_PROPERTY_SAMPLE_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSampleID(String sampleID) {
this.sampleID = sampleID;
}
public ZenidWebInvestigationIssueResponse pageCode(PageCodeEnum pageCode) {
this.pageCode = pageCode;
return this;
}
/**
* Identification of the page type for issue
* @return pageCode
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAGE_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PageCodeEnum getPageCode() {
return pageCode;
}
@JsonProperty(JSON_PROPERTY_PAGE_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPageCode(PageCodeEnum pageCode) {
this.pageCode = pageCode;
}
public ZenidWebInvestigationIssueResponse sampleType(SampleTypeEnum sampleType) {
this.sampleType = sampleType;
return this;
}
/**
* Type of sample
* @return sampleType
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SAMPLE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SampleTypeEnum getSampleType() {
return sampleType;
}
@JsonProperty(JSON_PROPERTY_SAMPLE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSampleType(SampleTypeEnum sampleType) {
this.sampleType = sampleType;
}
/**
* Return true if this ZenidWeb.InvestigationIssueResponse object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ZenidWebInvestigationIssueResponse zenidWebInvestigationIssueResponse = (ZenidWebInvestigationIssueResponse) o;
return Objects.equals(this.issueUrl, zenidWebInvestigationIssueResponse.issueUrl) &&
Objects.equals(this.issueDescription, zenidWebInvestigationIssueResponse.issueDescription) &&
Objects.equals(this.documentCode, zenidWebInvestigationIssueResponse.documentCode) &&
Objects.equals(this.fieldID, zenidWebInvestigationIssueResponse.fieldID) &&
Objects.equals(this.sampleID, zenidWebInvestigationIssueResponse.sampleID) &&
Objects.equals(this.pageCode, zenidWebInvestigationIssueResponse.pageCode) &&
Objects.equals(this.sampleType, zenidWebInvestigationIssueResponse.sampleType);
}
@Override
public int hashCode() {
return Objects.hash(issueUrl, issueDescription, documentCode, fieldID, sampleID, pageCode, sampleType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ZenidWebInvestigationIssueResponse {\n");
sb.append(" issueUrl: ").append(toIndentedString(issueUrl)).append("\n");
sb.append(" issueDescription: ").append(toIndentedString(issueDescription)).append("\n");
sb.append(" documentCode: ").append(toIndentedString(documentCode)).append("\n");
sb.append(" fieldID: ").append(toIndentedString(fieldID)).append("\n");
sb.append(" sampleID: ").append(toIndentedString(sampleID)).append("\n");
sb.append(" pageCode: ").append(toIndentedString(pageCode)).append("\n");
sb.append(" sampleType: ").append(toIndentedString(sampleType)).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 `IssueUrl` to the URL query string
if (getIssueUrl() != null) {
joiner.add(String.format("%sIssueUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIssueUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `IssueDescription` to the URL query string
if (getIssueDescription() != null) {
joiner.add(String.format("%sIssueDescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIssueDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `DocumentCode` to the URL query string
if (getDocumentCode() != null) {
joiner.add(String.format("%sDocumentCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDocumentCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `FieldID` to the URL query string
if (getFieldID() != null) {
joiner.add(String.format("%sFieldID%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFieldID()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `SampleID` to the URL query string
if (getSampleID() != null) {
joiner.add(String.format("%sSampleID%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSampleID()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `PageCode` to the URL query string
if (getPageCode() != null) {
joiner.add(String.format("%sPageCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPageCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `SampleType` to the URL query string
if (getSampleType() != null) {
joiner.add(String.format("%sSampleType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSampleType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}