content: /*
   * IotaService
   * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
   *
   * The version of the OpenAPI document: 1.0.0
   * Contact: info@affinidi.com
   *
   * 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.affinidi.tdk.iota.client.models;
  
  import java.util.Objects;
  import java.util.Arrays;
  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.fasterxml.jackson.annotation.JsonPropertyOrder;
  import com.fasterxml.jackson.annotation.JsonTypeName;
  import java.io.UnsupportedEncodingException;
  import java.net.URLEncoder;
  import java.util.StringJoiner;
  
  /**
   * CorsAwsExchangeCredentialsProjectTokenOK
   */
  @JsonPropertyOrder({
    CorsAwsExchangeCredentialsProjectTokenOK.JSON_PROPERTY_CORS_AWS_EXCHANGE_CREDENTIALS_PROJECT_TOKEN_OK
  })
  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0")
  public class CorsAwsExchangeCredentialsProjectTokenOK {
    public static final String JSON_PROPERTY_CORS_AWS_EXCHANGE_CREDENTIALS_PROJECT_TOKEN_OK = "corsAwsExchangeCredentialsProjectTokenOk";
    @javax.annotation.Nullable
    private String corsAwsExchangeCredentialsProjectTokenOk;
  
    public CorsAwsExchangeCredentialsProjectTokenOK() {
    }
  
    public CorsAwsExchangeCredentialsProjectTokenOK corsAwsExchangeCredentialsProjectTokenOk(@javax.annotation.Nullable String corsAwsExchangeCredentialsProjectTokenOk) {
      
      this.corsAwsExchangeCredentialsProjectTokenOk = corsAwsExchangeCredentialsProjectTokenOk;
      return this;
    }
  
    /**
     * Get corsAwsExchangeCredentialsProjectTokenOk
     * @return corsAwsExchangeCredentialsProjectTokenOk
     */
    @javax.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_CORS_AWS_EXCHANGE_CREDENTIALS_PROJECT_TOKEN_OK)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  
    public String getCorsAwsExchangeCredentialsProjectTokenOk() {
      return corsAwsExchangeCredentialsProjectTokenOk;
    }
  
  
    @JsonProperty(JSON_PROPERTY_CORS_AWS_EXCHANGE_CREDENTIALS_PROJECT_TOKEN_OK)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setCorsAwsExchangeCredentialsProjectTokenOk(@javax.annotation.Nullable String corsAwsExchangeCredentialsProjectTokenOk) {
      this.corsAwsExchangeCredentialsProjectTokenOk = corsAwsExchangeCredentialsProjectTokenOk;
    }
  
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      CorsAwsExchangeCredentialsProjectTokenOK corsAwsExchangeCredentialsProjectTokenOK = (CorsAwsExchangeCredentialsProjectTokenOK) o;
      return Objects.equals(this.corsAwsExchangeCredentialsProjectTokenOk, corsAwsExchangeCredentialsProjectTokenOK.corsAwsExchangeCredentialsProjectTokenOk);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(corsAwsExchangeCredentialsProjectTokenOk);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class CorsAwsExchangeCredentialsProjectTokenOK {\n");
      sb.append("    corsAwsExchangeCredentialsProjectTokenOk: ").append(toIndentedString(corsAwsExchangeCredentialsProjectTokenOk)).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 `corsAwsExchangeCredentialsProjectTokenOk` to the URL query string
      if (getCorsAwsExchangeCredentialsProjectTokenOk() != null) {
        try {
          joiner.add(String.format("%scorsAwsExchangeCredentialsProjectTokenOk%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCorsAwsExchangeCredentialsProjectTokenOk()), "UTF-8").replaceAll("\\+", "%20")));
        } catch (UnsupportedEncodingException e) {
          // Should never happen, UTF-8 is always supported
          throw new RuntimeException(e);
        }
      }
  
      return joiner.toString();
    }
  
  }
  
  