/*
 * Pravega Controller APIs
 * List of admin REST APIs for the Pravega controller service.
 *
 * OpenAPI spec version: 0.0.1
 * 
 *
 * 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.pravega.controller.server.rest.generated.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.pravega.controller.server.rest.generated.model.ScopeProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;

/**
 * ScopesList
 */

public class ScopesList   {
  @JsonProperty("scopes")
  private List<ScopeProperty> scopes = null;

  public ScopesList scopes(List<ScopeProperty> scopes) {
    this.scopes = scopes;
    return this;
  }

  public ScopesList addScopesItem(ScopeProperty scopesItem) {
    if (this.scopes == null) {
      this.scopes = new ArrayList<ScopeProperty>();
    }
    this.scopes.add(scopesItem);
    return this;
  }

  /**
   * Get scopes
   * @return scopes
   **/
  @JsonProperty("scopes")
  @ApiModelProperty(value = "")
  public List<ScopeProperty> getScopes() {
    return scopes;
  }

  public void setScopes(List<ScopeProperty> scopes) {
    this.scopes = scopes;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ScopesList scopesList = (ScopesList) o;
    return Objects.equals(this.scopes, scopesList.scopes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(scopes);
  }


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

