com.huaweicloud.sdk.hss.v5.model.ChangeVulStatusRequestInfoCustomBackupHosts Maven / Gradle / Ivy
package com.huaweicloud.sdk.hss.v5.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* ChangeVulStatusRequestInfoCustomBackupHosts
*/
public class ChangeVulStatusRequestInfoCustomBackupHosts {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "host_id")
private String hostId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "vault_id")
private String vaultId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "backup_name")
private String backupName;
public ChangeVulStatusRequestInfoCustomBackupHosts withHostId(String hostId) {
this.hostId = hostId;
return this;
}
/**
* 主机id
* @return hostId
*/
public String getHostId() {
return hostId;
}
public void setHostId(String hostId) {
this.hostId = hostId;
}
public ChangeVulStatusRequestInfoCustomBackupHosts withVaultId(String vaultId) {
this.vaultId = vaultId;
return this;
}
/**
* 存储库id
* @return vaultId
*/
public String getVaultId() {
return vaultId;
}
public void setVaultId(String vaultId) {
this.vaultId = vaultId;
}
public ChangeVulStatusRequestInfoCustomBackupHosts withBackupName(String backupName) {
this.backupName = backupName;
return this;
}
/**
* 备份名称
* @return backupName
*/
public String getBackupName() {
return backupName;
}
public void setBackupName(String backupName) {
this.backupName = backupName;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ChangeVulStatusRequestInfoCustomBackupHosts that = (ChangeVulStatusRequestInfoCustomBackupHosts) obj;
return Objects.equals(this.hostId, that.hostId) && Objects.equals(this.vaultId, that.vaultId)
&& Objects.equals(this.backupName, that.backupName);
}
@Override
public int hashCode() {
return Objects.hash(hostId, vaultId, backupName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ChangeVulStatusRequestInfoCustomBackupHosts {\n");
sb.append(" hostId: ").append(toIndentedString(hostId)).append("\n");
sb.append(" vaultId: ").append(toIndentedString(vaultId)).append("\n");
sb.append(" backupName: ").append(toIndentedString(backupName)).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 ");
}
}