![JAR search and dependency download from the Maven repository](/logo.png)
sibModel.FileData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sib-api-v3-sdk Show documentation
Show all versions of sib-api-v3-sdk Show documentation
SendinBlue's API v3 Java Library
The newest version!
/*
* SendinBlue API
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: [email protected]
*
* 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 sibModel;
import org.apache.commons.lang3.ObjectUtils;
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 org.threeten.bp.OffsetDateTime;
/**
* File data that is uploaded
*/
@ApiModel(description = "File data that is uploaded")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-02-28T15:16:18.937+05:30")
public class FileData {
@SerializedName("name")
private String name = null;
@SerializedName("authorId")
private String authorId = null;
@SerializedName("contactId")
private Long contactId = null;
@SerializedName("dealId")
private String dealId = null;
@SerializedName("companyId")
private String companyId = null;
@SerializedName("size")
private Long size = null;
@SerializedName("createdAt")
private OffsetDateTime createdAt = null;
public FileData name(String name) {
this.name = name;
return this;
}
/**
* Name of uploaded file
* @return name
**/
@ApiModelProperty(example = "example.png", value = "Name of uploaded file")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public FileData authorId(String authorId) {
this.authorId = authorId;
return this;
}
/**
* Account id of user which created the file
* @return authorId
**/
@ApiModelProperty(example = "61a5ce58y5d4795761045991", value = "Account id of user which created the file")
public String getAuthorId() {
return authorId;
}
public void setAuthorId(String authorId) {
this.authorId = authorId;
}
public FileData contactId(Long contactId) {
this.contactId = contactId;
return this;
}
/**
* Contact id of contact on which file is uploaded
* @return contactId
**/
@ApiModelProperty(example = "1", value = "Contact id of contact on which file is uploaded")
public Long getContactId() {
return contactId;
}
public void setContactId(Long contactId) {
this.contactId = contactId;
}
public FileData dealId(String dealId) {
this.dealId = dealId;
return this;
}
/**
* Deal id linked to a file
* @return dealId
**/
@ApiModelProperty(example = "61a5ce58c5d4795761045991", value = "Deal id linked to a file")
public String getDealId() {
return dealId;
}
public void setDealId(String dealId) {
this.dealId = dealId;
}
public FileData companyId(String companyId) {
this.companyId = companyId;
return this;
}
/**
* Company id linked to a file
* @return companyId
**/
@ApiModelProperty(example = "61a5ce58c5d4795761045991", value = "Company id linked to a file")
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
public FileData size(Long size) {
this.size = size;
return this;
}
/**
* Size of file in bytes
* @return size
**/
@ApiModelProperty(example = "10", value = "Size of file in bytes")
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
public FileData createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* File created date/time
* @return createdAt
**/
@ApiModelProperty(example = "2017-05-01T17:05:03.000Z", value = "File created date/time")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FileData fileData = (FileData) o;
return ObjectUtils.equals(this.name, fileData.name) &&
ObjectUtils.equals(this.authorId, fileData.authorId) &&
ObjectUtils.equals(this.contactId, fileData.contactId) &&
ObjectUtils.equals(this.dealId, fileData.dealId) &&
ObjectUtils.equals(this.companyId, fileData.companyId) &&
ObjectUtils.equals(this.size, fileData.size) &&
ObjectUtils.equals(this.createdAt, fileData.createdAt);
}
@Override
public int hashCode() {
return ObjectUtils.hashCodeMulti(name, authorId, contactId, dealId, companyId, size, createdAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FileData {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" authorId: ").append(toIndentedString(authorId)).append("\n");
sb.append(" contactId: ").append(toIndentedString(contactId)).append("\n");
sb.append(" dealId: ").append(toIndentedString(dealId)).append("\n");
sb.append(" companyId: ").append(toIndentedString(companyId)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).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