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

io.proximax.xpx.model.URL 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.Objects;



/**
 * URL.
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-04-07T03:37:57.794-04:00")
public class URL {
  
  /** The authority. */
  @SerializedName("authority")
  private String authority = null;

  /** The content. */
  @SerializedName("content")
  private Object content = null;

  /** The default port. */
  @SerializedName("defaultPort")
  private Integer defaultPort = null;

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

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

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

  /** The port. */
  @SerializedName("port")
  private Integer port = null;

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

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

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

  /** The user info. */
  @SerializedName("userInfo")
  private String userInfo = null;

  /**
   * Authority.
   *
   * @param authority the authority
   * @return the url
   */
  public URL authority(String authority) {
    this.authority = authority;
    return this;
  }

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

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

  /**
   * Content.
   *
   * @param content the content
   * @return the url
   */
  public URL content(Object content) {
    this.content = content;
    return this;
  }

   /**
    * Get content.
    *
    * @return content
    */
  @ApiModelProperty(value = "")
  public Object getContent() {
    return content;
  }

  /**
   * Sets the content.
   *
   * @param content the new content
   */
  public void setContent(Object content) {
    this.content = content;
  }

  /**
   * Default port.
   *
   * @param defaultPort the default port
   * @return the url
   */
  public URL defaultPort(Integer defaultPort) {
    this.defaultPort = defaultPort;
    return this;
  }

   /**
    * Get defaultPort.
    *
    * @return defaultPort
    */
  @ApiModelProperty(value = "")
  public Integer getDefaultPort() {
    return defaultPort;
  }

  /**
   * Sets the default port.
   *
   * @param defaultPort the new default port
   */
  public void setDefaultPort(Integer defaultPort) {
    this.defaultPort = defaultPort;
  }

  /**
   * File.
   *
   * @param file the file
   * @return the url
   */
  public URL file(String file) {
    this.file = file;
    return this;
  }

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

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

  /**
   * Host.
   *
   * @param host the host
   * @return the url
   */
  public URL host(String host) {
    this.host = host;
    return this;
  }

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

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

  /**
   * Path.
   *
   * @param path the path
   * @return the url
   */
  public URL path(String path) {
    this.path = path;
    return this;
  }

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

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

  /**
   * Port.
   *
   * @param port the port
   * @return the url
   */
  public URL port(Integer port) {
    this.port = port;
    return this;
  }

   /**
    * Get port.
    *
    * @return port
    */
  @ApiModelProperty(value = "")
  public Integer getPort() {
    return port;
  }

  /**
   * Sets the port.
   *
   * @param port the new port
   */
  public void setPort(Integer port) {
    this.port = port;
  }

  /**
   * Protocol.
   *
   * @param protocol the protocol
   * @return the url
   */
  public URL protocol(String protocol) {
    this.protocol = protocol;
    return this;
  }

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

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

  /**
   * Query.
   *
   * @param query the query
   * @return the url
   */
  public URL query(String query) {
    this.query = query;
    return this;
  }

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

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

  /**
   * Ref.
   *
   * @param ref the ref
   * @return the url
   */
  public URL ref(String ref) {
    this.ref = ref;
    return this;
  }

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

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

  /**
   * User info.
   *
   * @param userInfo the user info
   * @return the url
   */
  public URL userInfo(String userInfo) {
    this.userInfo = userInfo;
    return this;
  }

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

  /**
   * Sets the user info.
   *
   * @param userInfo the new user info
   */
  public void setUserInfo(String userInfo) {
    this.userInfo = userInfo;
  }


  /* (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;
    }
    URL URL = (URL) o;
    return Objects.equals(this.authority, URL.authority) &&
        Objects.equals(this.content, URL.content) &&
        Objects.equals(this.defaultPort, URL.defaultPort) &&
        Objects.equals(this.file, URL.file) &&
        Objects.equals(this.host, URL.host) &&
        Objects.equals(this.path, URL.path) &&
        Objects.equals(this.port, URL.port) &&
        Objects.equals(this.protocol, URL.protocol) &&
        Objects.equals(this.query, URL.query) &&
        Objects.equals(this.ref, URL.ref) &&
        Objects.equals(this.userInfo, URL.userInfo);
  }

  /* (non-Javadoc)
   * @see java.lang.Object#hashCode()
   */
  @Override
  public int hashCode() {
    return Objects.hash(authority, content, defaultPort, file, host, path, port, protocol, query, ref, userInfo);
  }


  /* (non-Javadoc)
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class URL {\n");
    
    sb.append("    authority: ").append(toIndentedString(authority)).append("\n");
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("    defaultPort: ").append(toIndentedString(defaultPort)).append("\n");
    sb.append("    file: ").append(toIndentedString(file)).append("\n");
    sb.append("    host: ").append(toIndentedString(host)).append("\n");
    sb.append("    path: ").append(toIndentedString(path)).append("\n");
    sb.append("    port: ").append(toIndentedString(port)).append("\n");
    sb.append("    protocol: ").append(toIndentedString(protocol)).append("\n");
    sb.append("    query: ").append(toIndentedString(query)).append("\n");
    sb.append("    ref: ").append(toIndentedString(ref)).append("\n");
    sb.append("    userInfo: ").append(toIndentedString(userInfo)).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