/*
 * WSO2 API Manager - Publisher API
 * This specifies a **RESTful API** for WSO2 **API Manager** - Publisher.  Please see [full swagger definition](https://raw.githubusercontent.com/wso2/carbon-apimgt/v6.0.4/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher/src/main/resources/publisher-api.yaml) of the API which is written using [swagger 2.0](http://swagger.io/) specification. 
 *
 * OpenAPI spec version: v1.1
 * Contact: architecture@wso2.com
 *
 * 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.publisher.api.v1.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;

/**
 * SecurityAuditAttributeDTO
 */

public class SecurityAuditAttributeDTO {
  @SerializedName("isGlobal")
  private Boolean isGlobal = null;

  @SerializedName("overrideGlobal")
  private Boolean overrideGlobal = null;

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

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

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

  public SecurityAuditAttributeDTO isGlobal(Boolean isGlobal) {
    this.isGlobal = isGlobal;
    return this;
  }

   /**
   * Get isGlobal
   * @return isGlobal
  **/
  @ApiModelProperty(example = "false", value = "")
  public Boolean isIsGlobal() {
    return isGlobal;
  }

  public void setIsGlobal(Boolean isGlobal) {
    this.isGlobal = isGlobal;
  }

  public SecurityAuditAttributeDTO overrideGlobal(Boolean overrideGlobal) {
    this.overrideGlobal = overrideGlobal;
    return this;
  }

   /**
   * Get overrideGlobal
   * @return overrideGlobal
  **/
  @ApiModelProperty(example = "false", value = "")
  public Boolean isOverrideGlobal() {
    return overrideGlobal;
  }

  public void setOverrideGlobal(Boolean overrideGlobal) {
    this.overrideGlobal = overrideGlobal;
  }

  public SecurityAuditAttributeDTO apiToken(String apiToken) {
    this.apiToken = apiToken;
    return this;
  }

   /**
   * Get apiToken
   * @return apiToken
  **/
  @ApiModelProperty(example = "b1267ytf-b7gc-4aee-924d-ece81241efec", value = "")
  public String getApiToken() {
    return apiToken;
  }

  public void setApiToken(String apiToken) {
    this.apiToken = apiToken;
  }

  public SecurityAuditAttributeDTO collectionId(String collectionId) {
    this.collectionId = collectionId;
    return this;
  }

   /**
   * Get collectionId
   * @return collectionId
  **/
  @ApiModelProperty(example = "456ef957-5a79-449f-83y3-9027945d3c60", value = "")
  public String getCollectionId() {
    return collectionId;
  }

  public void setCollectionId(String collectionId) {
    this.collectionId = collectionId;
  }

  public SecurityAuditAttributeDTO baseUrl(String baseUrl) {
    this.baseUrl = baseUrl;
    return this;
  }

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

  public void setBaseUrl(String baseUrl) {
    this.baseUrl = baseUrl;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SecurityAuditAttributeDTO securityAuditAttribute = (SecurityAuditAttributeDTO) o;
    return Objects.equals(this.isGlobal, securityAuditAttribute.isGlobal) &&
        Objects.equals(this.overrideGlobal, securityAuditAttribute.overrideGlobal) &&
        Objects.equals(this.apiToken, securityAuditAttribute.apiToken) &&
        Objects.equals(this.collectionId, securityAuditAttribute.collectionId) &&
        Objects.equals(this.baseUrl, securityAuditAttribute.baseUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(isGlobal, overrideGlobal, apiToken, collectionId, baseUrl);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SecurityAuditAttributeDTO {\n");
    
    sb.append("    isGlobal: ").append(toIndentedString(isGlobal)).append("\n");
    sb.append("    overrideGlobal: ").append(toIndentedString(overrideGlobal)).append("\n");
    sb.append("    apiToken: ").append(toIndentedString(apiToken)).append("\n");
    sb.append("    collectionId: ").append(toIndentedString(collectionId)).append("\n");
    sb.append("    baseUrl: ").append(toIndentedString(baseUrl)).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    ");
  }

}

