/*
 * 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;

/**
 * ApplicationKeyMappingDTO
 */

public class ApplicationKeyMappingDTO {
  @SerializedName("applicationId")
  private Integer applicationId = null;

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

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

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

  public ApplicationKeyMappingDTO applicationId(Integer applicationId) {
    this.applicationId = applicationId;
    return this;
  }

   /**
   * Get applicationId
   * @return applicationId
  **/
  @ApiModelProperty(value = "")
  public Integer getApplicationId() {
    return applicationId;
  }

  public void setApplicationId(Integer applicationId) {
    this.applicationId = applicationId;
  }

  public ApplicationKeyMappingDTO consumerKey(String consumerKey) {
    this.consumerKey = consumerKey;
    return this;
  }

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

  public void setConsumerKey(String consumerKey) {
    this.consumerKey = consumerKey;
  }

  public ApplicationKeyMappingDTO keyType(String keyType) {
    this.keyType = keyType;
    return this;
  }

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

  public void setKeyType(String keyType) {
    this.keyType = keyType;
  }

  public ApplicationKeyMappingDTO keyManager(String keyManager) {
    this.keyManager = keyManager;
    return this;
  }

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

  public void setKeyManager(String keyManager) {
    this.keyManager = keyManager;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApplicationKeyMappingDTO applicationKeyMapping = (ApplicationKeyMappingDTO) o;
    return Objects.equals(this.applicationId, applicationKeyMapping.applicationId) &&
        Objects.equals(this.consumerKey, applicationKeyMapping.consumerKey) &&
        Objects.equals(this.keyType, applicationKeyMapping.keyType) &&
        Objects.equals(this.keyManager, applicationKeyMapping.keyManager);
  }

  @Override
  public int hashCode() {
    return Objects.hash(applicationId, consumerKey, keyType, keyManager);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApplicationKeyMappingDTO {\n");
    
    sb.append("    applicationId: ").append(toIndentedString(applicationId)).append("\n");
    sb.append("    consumerKey: ").append(toIndentedString(consumerKey)).append("\n");
    sb.append("    keyType: ").append(toIndentedString(keyType)).append("\n");
    sb.append("    keyManager: ").append(toIndentedString(keyManager)).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    ");
  }

}

