All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.proximax.sdk.gen.model.AccountPropertiesModificationDTO Maven / Gradle / Ivy

Go to download

The ProximaX Sirius Chain Java SDK is a Java library for interacting with the Sirius Blockchain.

The newest version!
/*
 * Catapult REST API Reference
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.7.15
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.proximax.sdk.gen.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

import com.google.gson.annotations.SerializedName;

import io.swagger.annotations.ApiModelProperty;

/**
 * AccountPropertiesModificationDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-22T22:57:50.932+02:00[Europe/Prague]")
public class AccountPropertiesModificationDTO {
  public static final String SERIALIZED_NAME_TYPE = "type";
  @SerializedName(SERIALIZED_NAME_TYPE)
  private AccountPropertiesModificationTypeEnum type;

  public static final String SERIALIZED_NAME_VALUES = "values";
  @SerializedName(SERIALIZED_NAME_VALUES)
  private List values = new ArrayList<>();

  public AccountPropertiesModificationDTO type(AccountPropertiesModificationTypeEnum type) {
    this.type = type;
    return this;
  }

   /**
   * Get type
   * @return type
  **/
  @ApiModelProperty(required = true, value = "")
  public AccountPropertiesModificationTypeEnum getType() {
    return type;
  }

  public void setType(AccountPropertiesModificationTypeEnum type) {
    this.type = type;
  }

  public AccountPropertiesModificationDTO values(List values) {
    this.values = values;
    return this;
  }

  public AccountPropertiesModificationDTO addValuesItem(Object valuesItem) {
    this.values.add(valuesItem);
    return this;
  }

   /**
   * The address, transaction type or mosaic id to filter.
   * @return values
  **/
  @ApiModelProperty(required = true, value = "The address, transaction type or mosaic id to filter.")
  public List getValues() {
    return values;
  }

  public void setValues(List values) {
    this.values = values;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AccountPropertiesModificationDTO accountPropertiesModificationDTO = (AccountPropertiesModificationDTO) o;
    return Objects.equals(this.type, accountPropertiesModificationDTO.type) &&
        Objects.equals(this.values, accountPropertiesModificationDTO.values);
  }

  @Override
  public int hashCode() {
    return Objects.hash(type, values);
  }


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

}