io.swagger.client.model.Stream Maven / Gradle / Ivy
/*
* DocxMerge
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1
*
*
* 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 io.swagger.client.model;
import java.util.Objects;
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.v3.oas.annotations.media.Schema;
import java.io.IOException;
/**
* Stream
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2018-12-11T02:42:35.962+01:00[Europe/Madrid]")public class Stream {
@SerializedName("canRead")
private Boolean canRead = null;
@SerializedName("canSeek")
private Boolean canSeek = null;
@SerializedName("canTimeout")
private Boolean canTimeout = null;
@SerializedName("canWrite")
private Boolean canWrite = null;
@SerializedName("length")
private Long length = null;
@SerializedName("position")
private Long position = null;
@SerializedName("readTimeout")
private Integer readTimeout = null;
@SerializedName("writeTimeout")
private Integer writeTimeout = null;
/**
* Get canRead
* @return canRead
**/
@Schema(description = "")
public Boolean isCanRead() {
return canRead;
}
/**
* Get canSeek
* @return canSeek
**/
@Schema(description = "")
public Boolean isCanSeek() {
return canSeek;
}
/**
* Get canTimeout
* @return canTimeout
**/
@Schema(description = "")
public Boolean isCanTimeout() {
return canTimeout;
}
/**
* Get canWrite
* @return canWrite
**/
@Schema(description = "")
public Boolean isCanWrite() {
return canWrite;
}
/**
* Get length
* @return length
**/
@Schema(description = "")
public Long getLength() {
return length;
}
public Stream position(Long position) {
this.position = position;
return this;
}
/**
* Get position
* @return position
**/
@Schema(description = "")
public Long getPosition() {
return position;
}
public void setPosition(Long position) {
this.position = position;
}
public Stream readTimeout(Integer readTimeout) {
this.readTimeout = readTimeout;
return this;
}
/**
* Get readTimeout
* @return readTimeout
**/
@Schema(description = "")
public Integer getReadTimeout() {
return readTimeout;
}
public void setReadTimeout(Integer readTimeout) {
this.readTimeout = readTimeout;
}
public Stream writeTimeout(Integer writeTimeout) {
this.writeTimeout = writeTimeout;
return this;
}
/**
* Get writeTimeout
* @return writeTimeout
**/
@Schema(description = "")
public Integer getWriteTimeout() {
return writeTimeout;
}
public void setWriteTimeout(Integer writeTimeout) {
this.writeTimeout = writeTimeout;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Stream stream = (Stream) o;
return Objects.equals(this.canRead, stream.canRead) &&
Objects.equals(this.canSeek, stream.canSeek) &&
Objects.equals(this.canTimeout, stream.canTimeout) &&
Objects.equals(this.canWrite, stream.canWrite) &&
Objects.equals(this.length, stream.length) &&
Objects.equals(this.position, stream.position) &&
Objects.equals(this.readTimeout, stream.readTimeout) &&
Objects.equals(this.writeTimeout, stream.writeTimeout);
}
@Override
public int hashCode() {
return java.util.Objects.hash(canRead, canSeek, canTimeout, canWrite, length, position, readTimeout, writeTimeout);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Stream {\n");
sb.append(" canRead: ").append(toIndentedString(canRead)).append("\n");
sb.append(" canSeek: ").append(toIndentedString(canSeek)).append("\n");
sb.append(" canTimeout: ").append(toIndentedString(canTimeout)).append("\n");
sb.append(" canWrite: ").append(toIndentedString(canWrite)).append("\n");
sb.append(" length: ").append(toIndentedString(length)).append("\n");
sb.append(" position: ").append(toIndentedString(position)).append("\n");
sb.append(" readTimeout: ").append(toIndentedString(readTimeout)).append("\n");
sb.append(" writeTimeout: ").append(toIndentedString(writeTimeout)).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 - 2025 Weber Informatics LLC | Privacy Policy