io.lakefs.clients.api.model.BranchCreation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
lakeFS OpenAPI Java client legacy SDK
/*
* lakeFS API
* lakeFS HTTP API
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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.lakefs.clients.api.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.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* BranchCreation
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BranchCreation {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_SOURCE = "source";
@SerializedName(SERIALIZED_NAME_SOURCE)
private String source;
public static final String SERIALIZED_NAME_FORCE = "force";
@SerializedName(SERIALIZED_NAME_FORCE)
private Boolean force = false;
public BranchCreation name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public BranchCreation source(String source) {
this.source = source;
return this;
}
/**
* Get source
* @return source
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public BranchCreation force(Boolean force) {
this.force = force;
return this;
}
/**
* Get force
* @return force
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getForce() {
return force;
}
public void setForce(Boolean force) {
this.force = force;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BranchCreation branchCreation = (BranchCreation) o;
return Objects.equals(this.name, branchCreation.name) &&
Objects.equals(this.source, branchCreation.source) &&
Objects.equals(this.force, branchCreation.force);
}
@Override
public int hashCode() {
return Objects.hash(name, source, force);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BranchCreation {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" force: ").append(toIndentedString(force)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}