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

com.lob.model.OptionalAddressColumnMapping Maven / Gradle / Ivy

The newest version!
/*
 * Lob
 * The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. 

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? * * The version of the OpenAPI document: 1.3.0 * 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.lob.model; import java.util.Objects; import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import com.google.gson.Gson; import java.util.HashMap; import java.util.Map; /** * The mapping of column headers in your file to Lob-optional fields for the resource created. See our <a href=\"https://help.lob.com/print-and-mail/building-a-mail-strategy/campaign-or-triggered-sends/campaign-audience-guide#optional-columns-3\" target=\"_blank\">Campaign Audience Guide</a> for additional details. */ @ApiModel(description = "The mapping of column headers in your file to Lob-optional fields for the resource created. See our Campaign Audience Guide for additional details.") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class OptionalAddressColumnMapping { public static final String SERIALIZED_NAME_ADDRESS_LINE2 = "address_line2"; @SerializedName(SERIALIZED_NAME_ADDRESS_LINE2) private String addressLine2 = "null"; /** * The column header from the csv file that should be mapped to the optional field \"address_line2\" * @return addressLine2 **/ @javax.annotation.Nullable @ApiModelProperty(required = true, value = "The column header from the csv file that should be mapped to the optional field \"address_line2\"") public String getAddressLine2() { return addressLine2; } public static final String SERIALIZED_NAME_COMPANY = "company"; @SerializedName(SERIALIZED_NAME_COMPANY) private String company = "null"; /** * The column header from the csv file that should be mapped to the optional field \"company\" * @return company **/ @javax.annotation.Nullable @ApiModelProperty(required = true, value = "The column header from the csv file that should be mapped to the optional field \"company\"") public String getCompany() { return company; } public static final String SERIALIZED_NAME_ADDRESS_COUNTRY = "address_country"; @SerializedName(SERIALIZED_NAME_ADDRESS_COUNTRY) private String addressCountry = "null"; /** * The column header from the csv file that should be mapped to the optional field \"address_country\" * @return addressCountry **/ @javax.annotation.Nullable @ApiModelProperty(required = true, value = "The column header from the csv file that should be mapped to the optional field \"address_country\"") public String getAddressCountry() { return addressCountry; } /* public OptionalAddressColumnMapping addressLine2(String addressLine2) { this.addressLine2 = addressLine2; return this; } */ public void setAddressLine2(String addressLine2) { this.addressLine2 = addressLine2; } /* public OptionalAddressColumnMapping company(String company) { this.company = company; return this; } */ public void setCompany(String company) { this.company = company; } /* public OptionalAddressColumnMapping addressCountry(String addressCountry) { this.addressCountry = addressCountry; return this; } */ public void setAddressCountry(String addressCountry) { this.addressCountry = addressCountry; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OptionalAddressColumnMapping optionalAddressColumnMapping = (OptionalAddressColumnMapping) o; return Objects.equals(this.addressLine2, optionalAddressColumnMapping.addressLine2) && Objects.equals(this.company, optionalAddressColumnMapping.company) && Objects.equals(this.addressCountry, optionalAddressColumnMapping.addressCountry); } @Override public int hashCode() { return Objects.hash(addressLine2, company, addressCountry); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{\n"); sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" addressCountry: ").append(toIndentedString(addressCountry)).append("\n"); sb.append("}"); return sb.toString(); } public Map toMap() { Map localMap = new HashMap(); localMap.put("address_line2", addressLine2); localMap.put("company", company); localMap.put("address_country", addressCountry); return localMap; } /** * 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 - 2025 Weber Informatics LLC | Privacy Policy