com.volcengine.rdsmysqlv2.model.GetBackupDownloadLinkResponse Maven / Gradle / Ivy
/*
* rds_mysql_v2
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* 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 com.volcengine.rdsmysqlv2.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.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* GetBackupDownloadLinkResponse
*/
public class GetBackupDownloadLinkResponse extends com.volcengine.model.AbstractResponse {
@SerializedName("BackupDownloadLink")
private String backupDownloadLink = null;
@SerializedName("BackupFileName")
private String backupFileName = null;
@SerializedName("BackupFileSize")
private Integer backupFileSize = null;
@SerializedName("BackupId")
private String backupId = null;
@SerializedName("BackupType")
private String backupType = null;
@SerializedName("DownloadProgress")
private Long downloadProgress = null;
@SerializedName("InnerBackupDownloadLink")
private String innerBackupDownloadLink = null;
@SerializedName("InstanceId")
private String instanceId = null;
@SerializedName("LinkExpiredTime")
private String linkExpiredTime = null;
public GetBackupDownloadLinkResponse backupDownloadLink(String backupDownloadLink) {
this.backupDownloadLink = backupDownloadLink;
return this;
}
/**
* Get backupDownloadLink
* @return backupDownloadLink
**/
@Schema(description = "")
public String getBackupDownloadLink() {
return backupDownloadLink;
}
public void setBackupDownloadLink(String backupDownloadLink) {
this.backupDownloadLink = backupDownloadLink;
}
public GetBackupDownloadLinkResponse backupFileName(String backupFileName) {
this.backupFileName = backupFileName;
return this;
}
/**
* Get backupFileName
* @return backupFileName
**/
@Schema(description = "")
public String getBackupFileName() {
return backupFileName;
}
public void setBackupFileName(String backupFileName) {
this.backupFileName = backupFileName;
}
public GetBackupDownloadLinkResponse backupFileSize(Integer backupFileSize) {
this.backupFileSize = backupFileSize;
return this;
}
/**
* Get backupFileSize
* @return backupFileSize
**/
@Schema(description = "")
public Integer getBackupFileSize() {
return backupFileSize;
}
public void setBackupFileSize(Integer backupFileSize) {
this.backupFileSize = backupFileSize;
}
public GetBackupDownloadLinkResponse backupId(String backupId) {
this.backupId = backupId;
return this;
}
/**
* Get backupId
* @return backupId
**/
@Schema(description = "")
public String getBackupId() {
return backupId;
}
public void setBackupId(String backupId) {
this.backupId = backupId;
}
public GetBackupDownloadLinkResponse backupType(String backupType) {
this.backupType = backupType;
return this;
}
/**
* Get backupType
* @return backupType
**/
@Schema(description = "")
public String getBackupType() {
return backupType;
}
public void setBackupType(String backupType) {
this.backupType = backupType;
}
public GetBackupDownloadLinkResponse downloadProgress(Long downloadProgress) {
this.downloadProgress = downloadProgress;
return this;
}
/**
* Get downloadProgress
* @return downloadProgress
**/
@Schema(description = "")
public Long getDownloadProgress() {
return downloadProgress;
}
public void setDownloadProgress(Long downloadProgress) {
this.downloadProgress = downloadProgress;
}
public GetBackupDownloadLinkResponse innerBackupDownloadLink(String innerBackupDownloadLink) {
this.innerBackupDownloadLink = innerBackupDownloadLink;
return this;
}
/**
* Get innerBackupDownloadLink
* @return innerBackupDownloadLink
**/
@Schema(description = "")
public String getInnerBackupDownloadLink() {
return innerBackupDownloadLink;
}
public void setInnerBackupDownloadLink(String innerBackupDownloadLink) {
this.innerBackupDownloadLink = innerBackupDownloadLink;
}
public GetBackupDownloadLinkResponse instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* Get instanceId
* @return instanceId
**/
@Schema(description = "")
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public GetBackupDownloadLinkResponse linkExpiredTime(String linkExpiredTime) {
this.linkExpiredTime = linkExpiredTime;
return this;
}
/**
* Get linkExpiredTime
* @return linkExpiredTime
**/
@Schema(description = "")
public String getLinkExpiredTime() {
return linkExpiredTime;
}
public void setLinkExpiredTime(String linkExpiredTime) {
this.linkExpiredTime = linkExpiredTime;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetBackupDownloadLinkResponse getBackupDownloadLinkResponse = (GetBackupDownloadLinkResponse) o;
return Objects.equals(this.backupDownloadLink, getBackupDownloadLinkResponse.backupDownloadLink) &&
Objects.equals(this.backupFileName, getBackupDownloadLinkResponse.backupFileName) &&
Objects.equals(this.backupFileSize, getBackupDownloadLinkResponse.backupFileSize) &&
Objects.equals(this.backupId, getBackupDownloadLinkResponse.backupId) &&
Objects.equals(this.backupType, getBackupDownloadLinkResponse.backupType) &&
Objects.equals(this.downloadProgress, getBackupDownloadLinkResponse.downloadProgress) &&
Objects.equals(this.innerBackupDownloadLink, getBackupDownloadLinkResponse.innerBackupDownloadLink) &&
Objects.equals(this.instanceId, getBackupDownloadLinkResponse.instanceId) &&
Objects.equals(this.linkExpiredTime, getBackupDownloadLinkResponse.linkExpiredTime);
}
@Override
public int hashCode() {
return Objects.hash(backupDownloadLink, backupFileName, backupFileSize, backupId, backupType, downloadProgress, innerBackupDownloadLink, instanceId, linkExpiredTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetBackupDownloadLinkResponse {\n");
sb.append(" backupDownloadLink: ").append(toIndentedString(backupDownloadLink)).append("\n");
sb.append(" backupFileName: ").append(toIndentedString(backupFileName)).append("\n");
sb.append(" backupFileSize: ").append(toIndentedString(backupFileSize)).append("\n");
sb.append(" backupId: ").append(toIndentedString(backupId)).append("\n");
sb.append(" backupType: ").append(toIndentedString(backupType)).append("\n");
sb.append(" downloadProgress: ").append(toIndentedString(downloadProgress)).append("\n");
sb.append(" innerBackupDownloadLink: ").append(toIndentedString(innerBackupDownloadLink)).append("\n");
sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n");
sb.append(" linkExpiredTime: ").append(toIndentedString(linkExpiredTime)).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 ");
}
}