io.lakefs.clients.api.model.Setup 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.lakefs.clients.api.model.AccessKeyCredentials;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Setup
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Setup {
public static final String SERIALIZED_NAME_USERNAME = "username";
@SerializedName(SERIALIZED_NAME_USERNAME)
private String username;
public static final String SERIALIZED_NAME_KEY = "key";
@SerializedName(SERIALIZED_NAME_KEY)
private AccessKeyCredentials key;
public Setup username(String username) {
this.username = username;
return this;
}
/**
* an identifier for the user (e.g. jane.doe)
* @return username
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "an identifier for the user (e.g. jane.doe)")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public Setup key(AccessKeyCredentials key) {
this.key = key;
return this;
}
/**
* Get key
* @return key
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AccessKeyCredentials getKey() {
return key;
}
public void setKey(AccessKeyCredentials key) {
this.key = key;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Setup setup = (Setup) o;
return Objects.equals(this.username, setup.username) &&
Objects.equals(this.key, setup.key);
}
@Override
public int hashCode() {
return Objects.hash(username, key);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Setup {\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).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 ");
}
}