/*
 * Internal Utility API
 * This API allows you to access internal data.
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * 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 org.wso2.am.integration.clients.internal.api.dto;

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;

/**
 * SynapseArtifactDTO
 */

public class SynapseArtifactDTO {
  @SerializedName("apiId")
  private String apiId = null;

  @SerializedName("apiName")
  private String apiName = null;

  @SerializedName("version")
  private String version = null;

  @SerializedName("tenantDomain")
  private String tenantDomain = null;

  @SerializedName("gatewayLabel")
  private String gatewayLabel = null;

  @SerializedName("gatewayInstruction")
  private String gatewayInstruction = null;

  @SerializedName("bytesEncodedAsString")
  private String bytesEncodedAsString = null;

  public SynapseArtifactDTO apiId(String apiId) {
    this.apiId = apiId;
    return this;
  }

   /**
   * Get apiId
   * @return apiId
  **/
  @ApiModelProperty(value = "")
  public String getApiId() {
    return apiId;
  }

  public void setApiId(String apiId) {
    this.apiId = apiId;
  }

  public SynapseArtifactDTO apiName(String apiName) {
    this.apiName = apiName;
    return this;
  }

   /**
   * API Provider name.
   * @return apiName
  **/
  @ApiModelProperty(value = "API Provider name.")
  public String getApiName() {
    return apiName;
  }

  public void setApiName(String apiName) {
    this.apiName = apiName;
  }

  public SynapseArtifactDTO version(String version) {
    this.version = version;
    return this;
  }

   /**
   * version of the API
   * @return version
  **/
  @ApiModelProperty(value = "version of the API")
  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }

  public SynapseArtifactDTO tenantDomain(String tenantDomain) {
    this.tenantDomain = tenantDomain;
    return this;
  }

   /**
   * tenantDomain of the API
   * @return tenantDomain
  **/
  @ApiModelProperty(value = "tenantDomain of the API")
  public String getTenantDomain() {
    return tenantDomain;
  }

  public void setTenantDomain(String tenantDomain) {
    this.tenantDomain = tenantDomain;
  }

  public SynapseArtifactDTO gatewayLabel(String gatewayLabel) {
    this.gatewayLabel = gatewayLabel;
    return this;
  }

   /**
   * label of the API
   * @return gatewayLabel
  **/
  @ApiModelProperty(value = "label of the API")
  public String getGatewayLabel() {
    return gatewayLabel;
  }

  public void setGatewayLabel(String gatewayLabel) {
    this.gatewayLabel = gatewayLabel;
  }

  public SynapseArtifactDTO gatewayInstruction(String gatewayInstruction) {
    this.gatewayInstruction = gatewayInstruction;
    return this;
  }

   /**
   * Publish/Remove
   * @return gatewayInstruction
  **/
  @ApiModelProperty(value = "Publish/Remove")
  public String getGatewayInstruction() {
    return gatewayInstruction;
  }

  public void setGatewayInstruction(String gatewayInstruction) {
    this.gatewayInstruction = gatewayInstruction;
  }

  public SynapseArtifactDTO bytesEncodedAsString(String bytesEncodedAsString) {
    this.bytesEncodedAsString = bytesEncodedAsString;
    return this;
  }

   /**
   * bytes
   * @return bytesEncodedAsString
  **/
  @ApiModelProperty(value = "bytes")
  public String getBytesEncodedAsString() {
    return bytesEncodedAsString;
  }

  public void setBytesEncodedAsString(String bytesEncodedAsString) {
    this.bytesEncodedAsString = bytesEncodedAsString;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SynapseArtifactDTO synapseArtifact = (SynapseArtifactDTO) o;
    return Objects.equals(this.apiId, synapseArtifact.apiId) &&
        Objects.equals(this.apiName, synapseArtifact.apiName) &&
        Objects.equals(this.version, synapseArtifact.version) &&
        Objects.equals(this.tenantDomain, synapseArtifact.tenantDomain) &&
        Objects.equals(this.gatewayLabel, synapseArtifact.gatewayLabel) &&
        Objects.equals(this.gatewayInstruction, synapseArtifact.gatewayInstruction) &&
        Objects.equals(this.bytesEncodedAsString, synapseArtifact.bytesEncodedAsString);
  }

  @Override
  public int hashCode() {
    return Objects.hash(apiId, apiName, version, tenantDomain, gatewayLabel, gatewayInstruction, bytesEncodedAsString);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SynapseArtifactDTO {\n");
    
    sb.append("    apiId: ").append(toIndentedString(apiId)).append("\n");
    sb.append("    apiName: ").append(toIndentedString(apiName)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    tenantDomain: ").append(toIndentedString(tenantDomain)).append("\n");
    sb.append("    gatewayLabel: ").append(toIndentedString(gatewayLabel)).append("\n");
    sb.append("    gatewayInstruction: ").append(toIndentedString(gatewayInstruction)).append("\n");
    sb.append("    bytesEncodedAsString: ").append(toIndentedString(bytesEncodedAsString)).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    ");
  }

}

