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

io.nem.symbol.sdk.openapi.okhttp_gson.model.SupplementalPublicKeysDTO Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
/*
 * Catapult REST Endpoints
 * OpenAPI Specification of catapult-rest 1.1.2
 *
 * The version of the OpenAPI document: 0.9.4
 * 
 *
 * 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.nem.symbol.sdk.openapi.okhttp_gson.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.nem.symbol.sdk.openapi.okhttp_gson.model.AccountLinkPublicKeyDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.AccountLinkVotingKeysDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * SupplementalPublicKeysDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-06-30T14:27:18.729Z[UTC]")
public class SupplementalPublicKeysDTO {
  public static final String SERIALIZED_NAME_LINKED = "linked";
  @SerializedName(SERIALIZED_NAME_LINKED)
  private AccountLinkPublicKeyDTO linked;

  public static final String SERIALIZED_NAME_NODE = "node";
  @SerializedName(SERIALIZED_NAME_NODE)
  private AccountLinkPublicKeyDTO node;

  public static final String SERIALIZED_NAME_VRF = "vrf";
  @SerializedName(SERIALIZED_NAME_VRF)
  private AccountLinkPublicKeyDTO vrf;

  public static final String SERIALIZED_NAME_VOTING = "voting";
  @SerializedName(SERIALIZED_NAME_VOTING)
  private AccountLinkVotingKeysDTO voting;


  public SupplementalPublicKeysDTO linked(AccountLinkPublicKeyDTO linked) {
    
    this.linked = linked;
    return this;
  }

   /**
   * Get linked
   * @return linked
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public AccountLinkPublicKeyDTO getLinked() {
    return linked;
  }


  public void setLinked(AccountLinkPublicKeyDTO linked) {
    this.linked = linked;
  }


  public SupplementalPublicKeysDTO node(AccountLinkPublicKeyDTO node) {
    
    this.node = node;
    return this;
  }

   /**
   * Get node
   * @return node
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public AccountLinkPublicKeyDTO getNode() {
    return node;
  }


  public void setNode(AccountLinkPublicKeyDTO node) {
    this.node = node;
  }


  public SupplementalPublicKeysDTO vrf(AccountLinkPublicKeyDTO vrf) {
    
    this.vrf = vrf;
    return this;
  }

   /**
   * Get vrf
   * @return vrf
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public AccountLinkPublicKeyDTO getVrf() {
    return vrf;
  }


  public void setVrf(AccountLinkPublicKeyDTO vrf) {
    this.vrf = vrf;
  }


  public SupplementalPublicKeysDTO voting(AccountLinkVotingKeysDTO voting) {
    
    this.voting = voting;
    return this;
  }

   /**
   * Get voting
   * @return voting
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public AccountLinkVotingKeysDTO getVoting() {
    return voting;
  }


  public void setVoting(AccountLinkVotingKeysDTO voting) {
    this.voting = voting;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SupplementalPublicKeysDTO supplementalPublicKeysDTO = (SupplementalPublicKeysDTO) o;
    return Objects.equals(this.linked, supplementalPublicKeysDTO.linked) &&
        Objects.equals(this.node, supplementalPublicKeysDTO.node) &&
        Objects.equals(this.vrf, supplementalPublicKeysDTO.vrf) &&
        Objects.equals(this.voting, supplementalPublicKeysDTO.voting);
  }

  @Override
  public int hashCode() {
    return Objects.hash(linked, node, vrf, voting);
  }


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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy