/*
 * Selling Partner API for Pricing
 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
 *
 * OpenAPI spec version: v0
 * 
 *
 * 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.pricing;

import java.util.Objects;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * The state and country from where the item is shipped.
 */
@ApiModel(description = "The state and country from where the item is shipped.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-12-07T17:09:04.171+01:00")
public class ShipsFromType {
  @SerializedName("State")
  private String state = null;

  @SerializedName("Country")
  private String country = null;

  public ShipsFromType state(String state) {
    this.state = state;
    return this;
  }

   /**
   * The state from where the item is shipped.
   * @return state
  **/
  @ApiModelProperty(value = "The state from where the item is shipped.")
  public String getState() {
    return state;
  }

  public void setState(String state) {
    this.state = state;
  }

  public ShipsFromType country(String country) {
    this.country = country;
    return this;
  }

   /**
   * The country from where the item is shipped.
   * @return country
  **/
  @ApiModelProperty(value = "The country from where the item is shipped.")
  public String getCountry() {
    return country;
  }

  public void setCountry(String country) {
    this.country = country;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ShipsFromType shipsFromType = (ShipsFromType) o;
    return Objects.equals(this.state, shipsFromType.state) &&
        Objects.equals(this.country, shipsFromType.country);
  }

  @Override
  public int hashCode() {
    return Objects.hash(state, country);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ShipsFromType {\n");
    
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    country: ").append(toIndentedString(country)).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    ");
  }

}

