io.swagger.client.model.ProviderCode Maven / Gradle / Ivy
/*
* Commspace source data API
* API for Commspace source data management
*
* OpenAPI spec version: 1.0.4
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* ProviderCode
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2021-03-31T12:15:05.519Z[GMT]")
public class ProviderCode {
@JsonProperty("provider_id")
private String providerId = null;
@JsonProperty("intermediary_code")
private String intermediaryCode = null;
public ProviderCode providerId(String providerId) {
this.providerId = providerId;
return this;
}
/**
* consumer provided unique identifier of the product provider
* @return providerId
**/
@Schema(required = true, description = "consumer provided unique identifier of the product provider")
public String getProviderId() {
return providerId;
}
public void setProviderId(String providerId) {
this.providerId = providerId;
}
public ProviderCode intermediaryCode(String intermediaryCode) {
this.intermediaryCode = intermediaryCode;
return this;
}
/**
* business key uniquely identifying the intermediary at the product provider
* @return intermediaryCode
**/
@Schema(required = true, description = "business key uniquely identifying the intermediary at the product provider")
public String getIntermediaryCode() {
return intermediaryCode;
}
public void setIntermediaryCode(String intermediaryCode) {
this.intermediaryCode = intermediaryCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProviderCode providerCode = (ProviderCode) o;
return Objects.equals(this.providerId, providerCode.providerId) &&
Objects.equals(this.intermediaryCode, providerCode.intermediaryCode);
}
@Override
public int hashCode() {
return Objects.hash(providerId, intermediaryCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProviderCode {\n");
sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n");
sb.append(" intermediaryCode: ").append(toIndentedString(intermediaryCode)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy