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

io.proximax.xpx.model.NodeInfo Maven / Gradle / Ivy

There is a newer version: 0.1.0-beta.10
Show newest version
/*
 * Copyright 2018 ProximaX Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Proximax P2P Storage REST API
 * Proximax P2P Storage REST API
 *
 * OpenAPI spec version: v0.0.1
 * Contact: [email protected]
 *
 * 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.proximax.xpx.model;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;

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



/**
 * NodeInfo.
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-04-25T23:45:59.064-04:00")
public class NodeInfo {
  
  /** The context uri. */
  @SerializedName("contextUri")
  private String contextUri = null;

  /** The proximax address. */
  @SerializedName("nemAddress")
  private String nemAddress = null;

  /** The network. */
  @SerializedName("network")
  private String network = null;

  /** The network address. */
  @SerializedName("networkAddress")
  private String networkAddress = null;

  /** The network port. */
  @SerializedName("networkPort")
  private String networkPort = null;

  /** The peer id. */
  @SerializedName("peerId")
  private String peerId = null;

  /** Tlist of gateway URLs where uploads will be sync. */
  @SerializedName("syncGateways")
  private List syncGateways = null;

  /**
   * Context uri.
   *
   * @param contextUri the context uri
   * @return the node info
   */
  public NodeInfo contextUri(String contextUri) {
    this.contextUri = contextUri;
    return this;
  }

   /**
    * Get contextUri.
    *
    * @return contextUri
    */
  @ApiModelProperty(value = "")
  public String getContextUri() {
    return contextUri;
  }

  /**
   * Sets the context uri.
   *
   * @param contextUri the new context uri
   */
  public void setContextUri(String contextUri) {
    this.contextUri = contextUri;
  }

  /**
   * Nem address.
   *
   * @param nemAddress the proximax address
   * @return the node info
   */
  public NodeInfo nemAddress(String nemAddress) {
    this.nemAddress = nemAddress;
    return this;
  }

   /**
    * Get nemAddress.
    *
    * @return nemAddress
    */
  @ApiModelProperty(value = "")
  public String getNemAddress() {
    return nemAddress;
  }

  /**
   * Sets the proximax address.
   *
   * @param nemAddress the new proximax address
   */
  public void setNemAddress(String nemAddress) {
    this.nemAddress = nemAddress;
  }

  /**
   * Network.
   *
   * @param network the network
   * @return the node info
   */
  public NodeInfo network(String network) {
    this.network = network;
    return this;
  }

   /**
    * Get network.
    *
    * @return network
    */
  @ApiModelProperty(value = "")
  public String getNetwork() {
    return network;
  }

  /**
   * Sets the network.
   *
   * @param network the new network
   */
  public void setNetwork(String network) {
    this.network = network;
  }

  /**
   * Network address.
   *
   * @param networkAddress the network address
   * @return the node info
   */
  public NodeInfo networkAddress(String networkAddress) {
    this.networkAddress = networkAddress;
    return this;
  }

   /**
    * Get networkAddress.
    *
    * @return networkAddress
    */
  @ApiModelProperty(value = "")
  public String getNetworkAddress() {
    return networkAddress;
  }

  /**
   * Sets the network address.
   *
   * @param networkAddress the new network address
   */
  public void setNetworkAddress(String networkAddress) {
    this.networkAddress = networkAddress;
  }

  /**
   * Network port.
   *
   * @param networkPort the network port
   * @return the node info
   */
  public NodeInfo networkPort(String networkPort) {
    this.networkPort = networkPort;
    return this;
  }

   /**
    * Get networkPort.
    *
    * @return networkPort
    */
  @ApiModelProperty(value = "")
  public String getNetworkPort() {
    return networkPort;
  }

  /**
   * Sets the network port.
   *
   * @param networkPort the new network port
   */
  public void setNetworkPort(String networkPort) {
    this.networkPort = networkPort;
  }

  /**
   * Peer id.
   *
   * @param peerId the peer id
   * @return the node info
   */
  public NodeInfo peerId(String peerId) {
    this.peerId = peerId;
    return this;
  }

   /**
    * Get peerId.
    *
    * @return peerId
    */
  @ApiModelProperty(value = "")
  public String getPeerId() {
    return peerId;
  }

  /**
   * Sets the peer id.
   *
   * @param peerId the new peer id
   */
  public void setPeerId(String peerId) {
    this.peerId = peerId;
  }

  public List getSyncGateways() {
    return syncGateways;
  }

  /* (non-Javadoc)
   * @see java.lang.Object#equals(java.lang.Object)
   */
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    NodeInfo nodeInfo = (NodeInfo) o;
    return Objects.equals(this.contextUri, nodeInfo.contextUri) &&
        Objects.equals(this.nemAddress, nodeInfo.nemAddress) &&
        Objects.equals(this.network, nodeInfo.network) &&
        Objects.equals(this.networkAddress, nodeInfo.networkAddress) &&
        Objects.equals(this.networkPort, nodeInfo.networkPort) &&
        Objects.equals(this.peerId, nodeInfo.peerId);
  }

  /* (non-Javadoc)
   * @see java.lang.Object#hashCode()
   */
  @Override
  public int hashCode() {
    return Objects.hash(contextUri, nemAddress, network, networkAddress, networkPort, peerId);
  }


  /* (non-Javadoc)
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NodeInfo {\n");
    
    sb.append("    contextUri: ").append(toIndentedString(contextUri)).append("\n");
    sb.append("    nemAddress: ").append(toIndentedString(nemAddress)).append("\n");
    sb.append("    network: ").append(toIndentedString(network)).append("\n");
    sb.append("    networkAddress: ").append(toIndentedString(networkAddress)).append("\n");
    sb.append("    networkPort: ").append(toIndentedString(networkPort)).append("\n");
    sb.append("    peerId: ").append(toIndentedString(peerId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   *
   * @param o the o
   * @return the string
   */
  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