io.lakefs.clients.api.model.SetupState 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.LoginConfig;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* SetupState
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SetupState {
/**
* Gets or Sets state
*/
@JsonAdapter(StateEnum.Adapter.class)
public enum StateEnum {
INITIALIZED("initialized"),
NOT_INITIALIZED("not_initialized");
private String value;
StateEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StateEnum fromValue(String value) {
for (StateEnum b : StateEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StateEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StateEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_STATE = "state";
@SerializedName(SERIALIZED_NAME_STATE)
private StateEnum state;
public static final String SERIALIZED_NAME_COMM_PREFS_MISSING = "comm_prefs_missing";
@SerializedName(SERIALIZED_NAME_COMM_PREFS_MISSING)
private Boolean commPrefsMissing;
public static final String SERIALIZED_NAME_LOGIN_CONFIG = "login_config";
@SerializedName(SERIALIZED_NAME_LOGIN_CONFIG)
private LoginConfig loginConfig;
public SetupState state(StateEnum state) {
this.state = state;
return this;
}
/**
* Get state
* @return state
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public StateEnum getState() {
return state;
}
public void setState(StateEnum state) {
this.state = state;
}
public SetupState commPrefsMissing(Boolean commPrefsMissing) {
this.commPrefsMissing = commPrefsMissing;
return this;
}
/**
* true if the comm prefs are missing.
* @return commPrefsMissing
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "true if the comm prefs are missing.")
public Boolean getCommPrefsMissing() {
return commPrefsMissing;
}
public void setCommPrefsMissing(Boolean commPrefsMissing) {
this.commPrefsMissing = commPrefsMissing;
}
public SetupState loginConfig(LoginConfig loginConfig) {
this.loginConfig = loginConfig;
return this;
}
/**
* Get loginConfig
* @return loginConfig
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public LoginConfig getLoginConfig() {
return loginConfig;
}
public void setLoginConfig(LoginConfig loginConfig) {
this.loginConfig = loginConfig;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SetupState setupState = (SetupState) o;
return Objects.equals(this.state, setupState.state) &&
Objects.equals(this.commPrefsMissing, setupState.commPrefsMissing) &&
Objects.equals(this.loginConfig, setupState.loginConfig);
}
@Override
public int hashCode() {
return Objects.hash(state, commPrefsMissing, loginConfig);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SetupState {\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" commPrefsMissing: ").append(toIndentedString(commPrefsMissing)).append("\n");
sb.append(" loginConfig: ").append(toIndentedString(loginConfig)).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 ");
}
}