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

com.github.fluid_cloudnative.fluid.BackupLocation Maven / Gradle / Ivy

/*
 * fluid
 * Python SDK for fluid
 *
 * OpenAPI spec version: v0.1
 * 
 *
 * 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 com.github.fluid_cloudnative.fluid;

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

import java.util.Objects;


/**
 * BackupLocation describes the final backup location of DataBackup
 */
@ApiModel(description = "BackupLocation describes the final backup location of DataBackup")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-05-14T16:48:53.494+08:00")
public class BackupLocation {
  @SerializedName("nodeName")
  private String nodeName = null;

  @SerializedName("path")
  private String path = null;

  public BackupLocation nodeName(String nodeName) {
    this.nodeName = nodeName;
    return this;
  }

   /**
   * NodeName describes the nodeName of backup if Path is in the form of local://subpath
   * @return nodeName
  **/
  @ApiModelProperty(value = "NodeName describes the nodeName of backup if Path is in the form of local://subpath")
  public String getNodeName() {
    return nodeName;
  }

  public void setNodeName(String nodeName) {
    this.nodeName = nodeName;
  }

  public BackupLocation path(String path) {
    this.path = path;
    return this;
  }

   /**
   * Path describes the path of backup, in the form of local:///absolutePath or pvc://<pvcName>/subpath
   * @return path
  **/
  @ApiModelProperty(value = "Path describes the path of backup, in the form of local:///absolutePath or pvc:///subpath")
  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BackupLocation backupLocation = (BackupLocation) o;
    return Objects.equals(this.nodeName, backupLocation.nodeName) &&
        Objects.equals(this.path, backupLocation.path);
  }

  @Override
  public int hashCode() {
    return Objects.hash(nodeName, path);
  }


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