com.clinia.model.datacatalog.V1FileConfig Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.datacatalog;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** V1FileConfig */
public class V1FileConfig {
/** Gets or Sets fileFormat */
public enum FileFormatEnum {
CSV("CSV");
private String value;
FileFormatEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static FileFormatEnum fromValue(String value) {
for (FileFormatEnum b : FileFormatEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
@JsonProperty("fileFormat")
private FileFormatEnum fileFormat;
/** Gets or Sets compression */
public enum CompressionEnum {
GZIP("GZIP");
private String value;
CompressionEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static CompressionEnum fromValue(String value) {
for (CompressionEnum b : CompressionEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
@JsonProperty("compression")
private CompressionEnum compression;
@JsonProperty("protocol")
private V1FileProtocol protocol;
public V1FileConfig setFileFormat(FileFormatEnum fileFormat) {
this.fileFormat = fileFormat;
return this;
}
/** Get fileFormat */
@javax.annotation.Nonnull
public FileFormatEnum getFileFormat() {
return fileFormat;
}
public V1FileConfig setCompression(CompressionEnum compression) {
this.compression = compression;
return this;
}
/** Get compression */
@javax.annotation.Nullable
public CompressionEnum getCompression() {
return compression;
}
public V1FileConfig setProtocol(V1FileProtocol protocol) {
this.protocol = protocol;
return this;
}
/** Get protocol */
@javax.annotation.Nonnull
public V1FileProtocol getProtocol() {
return protocol;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1FileConfig v1FileConfig = (V1FileConfig) o;
return (
Objects.equals(this.fileFormat, v1FileConfig.fileFormat) &&
Objects.equals(this.compression, v1FileConfig.compression) &&
Objects.equals(this.protocol, v1FileConfig.protocol)
);
}
@Override
public int hashCode() {
return Objects.hash(fileFormat, compression, protocol);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1FileConfig {\n");
sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n");
sb.append(" compression: ").append(toIndentedString(compression)).append("\n");
sb.append(" protocol: ").append(toIndentedString(protocol)).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 ");
}
}