/*
 * Azure Blockchain Workbench REST API
 * The Azure Blockchain Workbench REST API is a Workbench extensibility point, which allows developers to create and manage blockchain applications, manage users and organizations within a consortium, integrate blockchain applications into services and platforms, perform transactions on a blockchain, and retrieve transactional and contract data from a blockchain.
 *
 * OpenAPI spec version: v1
 * 
 *
 * 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;

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;

/**
 * Capabilities
 */

public class Capabilities {
  @SerializedName("canUploadApplication")
  private Boolean canUploadApplication = null;

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

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

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

  public Capabilities canUploadApplication(Boolean canUploadApplication) {
    this.canUploadApplication = canUploadApplication;
    return this;
  }

   /**
   * Get canUploadApplication
   * @return canUploadApplication
  **/
  @ApiModelProperty(value = "")
  public Boolean isCanUploadApplication() {
    return canUploadApplication;
  }

  public void setCanUploadApplication(Boolean canUploadApplication) {
    this.canUploadApplication = canUploadApplication;
  }

  public Capabilities canUploadContractCode(Boolean canUploadContractCode) {
    this.canUploadContractCode = canUploadContractCode;
    return this;
  }

   /**
   * Get canUploadContractCode
   * @return canUploadContractCode
  **/
  @ApiModelProperty(value = "")
  public Boolean isCanUploadContractCode() {
    return canUploadContractCode;
  }

  public void setCanUploadContractCode(Boolean canUploadContractCode) {
    this.canUploadContractCode = canUploadContractCode;
  }

  public Capabilities canModifyRoleAssignments(Boolean canModifyRoleAssignments) {
    this.canModifyRoleAssignments = canModifyRoleAssignments;
    return this;
  }

   /**
   * Get canModifyRoleAssignments
   * @return canModifyRoleAssignments
  **/
  @ApiModelProperty(value = "")
  public Boolean isCanModifyRoleAssignments() {
    return canModifyRoleAssignments;
  }

  public void setCanModifyRoleAssignments(Boolean canModifyRoleAssignments) {
    this.canModifyRoleAssignments = canModifyRoleAssignments;
  }

  public Capabilities canProvisionUser(Boolean canProvisionUser) {
    this.canProvisionUser = canProvisionUser;
    return this;
  }

   /**
   * Get canProvisionUser
   * @return canProvisionUser
  **/
  @ApiModelProperty(value = "")
  public Boolean isCanProvisionUser() {
    return canProvisionUser;
  }

  public void setCanProvisionUser(Boolean canProvisionUser) {
    this.canProvisionUser = canProvisionUser;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Capabilities capabilities = (Capabilities) o;
    return Objects.equals(this.canUploadApplication, capabilities.canUploadApplication) &&
        Objects.equals(this.canUploadContractCode, capabilities.canUploadContractCode) &&
        Objects.equals(this.canModifyRoleAssignments, capabilities.canModifyRoleAssignments) &&
        Objects.equals(this.canProvisionUser, capabilities.canProvisionUser);
  }

  @Override
  public int hashCode() {
    return Objects.hash(canUploadApplication, canUploadContractCode, canModifyRoleAssignments, canProvisionUser);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Capabilities {\n");
    
    sb.append("    canUploadApplication: ").append(toIndentedString(canUploadApplication)).append("\n");
    sb.append("    canUploadContractCode: ").append(toIndentedString(canUploadContractCode)).append("\n");
    sb.append("    canModifyRoleAssignments: ").append(toIndentedString(canModifyRoleAssignments)).append("\n");
    sb.append("    canProvisionUser: ").append(toIndentedString(canProvisionUser)).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    ");
  }

}

