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

io.nem.sdk.openapi.jersey2.model.NodeInfoDTO Maven / Gradle / Ivy

There is a newer version: 0.8.4
Show newest version
/*
 * Catapult REST Endpoints
 * OpenAPI Specification of catapult-rest 1.0.20.10
 *
 * The version of the OpenAPI document: 0.8.2
 * 
 *
 * 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.sdk.openapi.jersey2.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.nem.sdk.openapi.jersey2.model.RolesTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * NodeInfoDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-02-07T22:44:38.001Z[UTC]")
public class NodeInfoDTO {
  public static final String JSON_PROPERTY_VERSION = "version";
  @JsonProperty(JSON_PROPERTY_VERSION)
  private Integer version;

  public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey";
  @JsonProperty(JSON_PROPERTY_PUBLIC_KEY)
  private String publicKey;

  public static final String JSON_PROPERTY_ROLES = "roles";
  @JsonProperty(JSON_PROPERTY_ROLES)
  private RolesTypeEnum roles;

  public static final String JSON_PROPERTY_PORT = "port";
  @JsonProperty(JSON_PROPERTY_PORT)
  private Integer port;

  public static final String JSON_PROPERTY_NETWORK_IDENTIFIER = "networkIdentifier";
  @JsonProperty(JSON_PROPERTY_NETWORK_IDENTIFIER)
  private Integer networkIdentifier;

  public static final String JSON_PROPERTY_FRIENDLY_NAME = "friendlyName";
  @JsonProperty(JSON_PROPERTY_FRIENDLY_NAME)
  private String friendlyName;

  public static final String JSON_PROPERTY_HOST = "host";
  @JsonProperty(JSON_PROPERTY_HOST)
  private String host;

  public NodeInfoDTO version(Integer version) {
    this.version = version;
    return this;
  }

   /**
   * Version of the application.
   * @return version
  **/
  @ApiModelProperty(example = "0", required = true, value = "Version of the application.")
  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }

  public NodeInfoDTO publicKey(String publicKey) {
    this.publicKey = publicKey;
    return this;
  }

   /**
   * Public key.
   * @return publicKey
  **/
  @ApiModelProperty(example = "AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26", required = true, value = "Public key.")
  public String getPublicKey() {
    return publicKey;
  }

  public void setPublicKey(String publicKey) {
    this.publicKey = publicKey;
  }

  public NodeInfoDTO roles(RolesTypeEnum roles) {
    this.roles = roles;
    return this;
  }

   /**
   * Get roles
   * @return roles
  **/
  @ApiModelProperty(required = true, value = "")
  public RolesTypeEnum getRoles() {
    return roles;
  }

  public void setRoles(RolesTypeEnum roles) {
    this.roles = roles;
  }

  public NodeInfoDTO port(Integer port) {
    this.port = port;
    return this;
  }

   /**
   * Port used for the communication.
   * @return port
  **/
  @ApiModelProperty(example = "7900", required = true, value = "Port used for the communication.")
  public Integer getPort() {
    return port;
  }

  public void setPort(Integer port) {
    this.port = port;
  }

  public NodeInfoDTO networkIdentifier(Integer networkIdentifier) {
    this.networkIdentifier = networkIdentifier;
    return this;
  }

   /**
   * Get networkIdentifier
   * @return networkIdentifier
  **/
  @ApiModelProperty(example = "144", required = true, value = "")
  public Integer getNetworkIdentifier() {
    return networkIdentifier;
  }

  public void setNetworkIdentifier(Integer networkIdentifier) {
    this.networkIdentifier = networkIdentifier;
  }

  public NodeInfoDTO friendlyName(String friendlyName) {
    this.friendlyName = friendlyName;
    return this;
  }

   /**
   * Node friendly name.
   * @return friendlyName
  **/
  @ApiModelProperty(example = "api-node-0", required = true, value = "Node friendly name.")
  public String getFriendlyName() {
    return friendlyName;
  }

  public void setFriendlyName(String friendlyName) {
    this.friendlyName = friendlyName;
  }

  public NodeInfoDTO host(String host) {
    this.host = host;
    return this;
  }

   /**
   * Node IP address.
   * @return host
  **/
  @ApiModelProperty(example = "127.0.0.1", required = true, value = "Node IP address.")
  public String getHost() {
    return host;
  }

  public void setHost(String host) {
    this.host = host;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    NodeInfoDTO nodeInfoDTO = (NodeInfoDTO) o;
    return Objects.equals(this.version, nodeInfoDTO.version) &&
        Objects.equals(this.publicKey, nodeInfoDTO.publicKey) &&
        Objects.equals(this.roles, nodeInfoDTO.roles) &&
        Objects.equals(this.port, nodeInfoDTO.port) &&
        Objects.equals(this.networkIdentifier, nodeInfoDTO.networkIdentifier) &&
        Objects.equals(this.friendlyName, nodeInfoDTO.friendlyName) &&
        Objects.equals(this.host, nodeInfoDTO.host);
  }

  @Override
  public int hashCode() {
    return Objects.hash(version, publicKey, roles, port, networkIdentifier, friendlyName, host);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NodeInfoDTO {\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    publicKey: ").append(toIndentedString(publicKey)).append("\n");
    sb.append("    roles: ").append(toIndentedString(roles)).append("\n");
    sb.append("    port: ").append(toIndentedString(port)).append("\n");
    sb.append("    networkIdentifier: ").append(toIndentedString(networkIdentifier)).append("\n");
    sb.append("    friendlyName: ").append(toIndentedString(friendlyName)).append("\n");
    sb.append("    host: ").append(toIndentedString(host)).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