Model.V1FileDetailsGet200ResponseFileDetails Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* 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 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;
import java.math.BigDecimal;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
/**
* V1FileDetailsGet200ResponseFileDetails
*/
public class V1FileDetailsGet200ResponseFileDetails {
@SerializedName("fileId")
private String fileId = null;
@SerializedName("name")
private String name = null;
@SerializedName("createdTime")
private DateTime createdTime = null;
@SerializedName("lastModifiedTime")
private DateTime lastModifiedTime = null;
@SerializedName("date")
private LocalDate date = null;
@SerializedName("mimeType")
private String mimeType = null;
@SerializedName("size")
private BigDecimal size = null;
public V1FileDetailsGet200ResponseFileDetails fileId(String fileId) {
this.fileId = fileId;
return this;
}
/**
* Unique identifier of a file
* @return fileId
**/
@ApiModelProperty(example = "AC855F9F42C90361EC78202F47CDE98D70BEAA6FB00FB56AE83EE9A9DAEE077B", value = "Unique identifier of a file")
public String getFileId() {
return fileId;
}
public void setFileId(String fileId) {
this.fileId = fileId;
}
public V1FileDetailsGet200ResponseFileDetails name(String name) {
this.name = name;
return this;
}
/**
* Name of the file
* @return name
**/
@ApiModelProperty(example = "MyTransactionDetailreport.xml", value = "Name of the file")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V1FileDetailsGet200ResponseFileDetails createdTime(DateTime createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* Date and time for the file in PST
* @return createdTime
**/
@ApiModelProperty(example = "2017-10-01T00:00:00+05:00", value = "Date and time for the file in PST")
public DateTime getCreatedTime() {
return createdTime;
}
public void setCreatedTime(DateTime createdTime) {
this.createdTime = createdTime;
}
public V1FileDetailsGet200ResponseFileDetails lastModifiedTime(DateTime lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
return this;
}
/**
* Date and time for the file in PST
* @return lastModifiedTime
**/
@ApiModelProperty(example = "2017-10-01T00:00:00+05:00", value = "Date and time for the file in PST")
public DateTime getLastModifiedTime() {
return lastModifiedTime;
}
public void setLastModifiedTime(DateTime lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
public V1FileDetailsGet200ResponseFileDetails date(LocalDate date) {
this.date = date;
return this;
}
/**
* Date and time for the file in PST
* @return date
**/
@ApiModelProperty(example = "2017-10-05", value = "Date and time for the file in PST")
public LocalDate getDate() {
return date;
}
public void setDate(LocalDate date) {
this.date = date;
}
public V1FileDetailsGet200ResponseFileDetails mimeType(String mimeType) {
this.mimeType = mimeType;
return this;
}
/**
* 'File extension' Valid values: - 'application/xml' - 'text/csv' - 'application/pdf' - 'application/octet-stream'
* @return mimeType
**/
@ApiModelProperty(example = "application/xml", value = "'File extension' Valid values: - 'application/xml' - 'text/csv' - 'application/pdf' - 'application/octet-stream' ")
public String getMimeType() {
return mimeType;
}
public void setMimeType(String mimeType) {
this.mimeType = mimeType;
}
public V1FileDetailsGet200ResponseFileDetails size(BigDecimal size) {
this.size = size;
return this;
}
/**
* Size of the file in bytes
* @return size
**/
@ApiModelProperty(example = "2245397.0", value = "Size of the file in bytes")
public BigDecimal getSize() {
return size;
}
public void setSize(BigDecimal size) {
this.size = size;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1FileDetailsGet200ResponseFileDetails v1FileDetailsGet200ResponseFileDetails = (V1FileDetailsGet200ResponseFileDetails) o;
return Objects.equals(this.fileId, v1FileDetailsGet200ResponseFileDetails.fileId) &&
Objects.equals(this.name, v1FileDetailsGet200ResponseFileDetails.name) &&
Objects.equals(this.createdTime, v1FileDetailsGet200ResponseFileDetails.createdTime) &&
Objects.equals(this.lastModifiedTime, v1FileDetailsGet200ResponseFileDetails.lastModifiedTime) &&
Objects.equals(this.date, v1FileDetailsGet200ResponseFileDetails.date) &&
Objects.equals(this.mimeType, v1FileDetailsGet200ResponseFileDetails.mimeType) &&
Objects.equals(this.size, v1FileDetailsGet200ResponseFileDetails.size);
}
@Override
public int hashCode() {
return Objects.hash(fileId, name, createdTime, lastModifiedTime, date, mimeType, size);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1FileDetailsGet200ResponseFileDetails {\n");
sb.append(" fileId: ").append(toIndentedString(fileId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n");
sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" mimeType: ").append(toIndentedString(mimeType)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).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