com.huaweicloud.sdk.hss.v5.model.BatchScanSwrImageInfo 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;
/**
* swr私有镜像信息,批量查询需要的参数
*/
public class BatchScanSwrImageInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "namespace")
private String namespace;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "image_name")
private String imageName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "image_version")
private String imageVersion;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "instance_id")
private String instanceId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "instance_url")
private String instanceUrl;
public BatchScanSwrImageInfo withNamespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* 命名空间
* @return namespace
*/
public String getNamespace() {
return namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
}
public BatchScanSwrImageInfo withImageName(String imageName) {
this.imageName = imageName;
return this;
}
/**
* 镜像名称
* @return imageName
*/
public String getImageName() {
return imageName;
}
public void setImageName(String imageName) {
this.imageName = imageName;
}
public BatchScanSwrImageInfo withImageVersion(String imageVersion) {
this.imageVersion = imageVersion;
return this;
}
/**
* 镜像版本
* @return imageVersion
*/
public String getImageVersion() {
return imageVersion;
}
public void setImageVersion(String imageVersion) {
this.imageVersion = imageVersion;
}
public BatchScanSwrImageInfo withInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* 企业实例ID
* @return instanceId
*/
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public BatchScanSwrImageInfo withInstanceUrl(String instanceUrl) {
this.instanceUrl = instanceUrl;
return this;
}
/**
* 下载企业镜像URL
* @return instanceUrl
*/
public String getInstanceUrl() {
return instanceUrl;
}
public void setInstanceUrl(String instanceUrl) {
this.instanceUrl = instanceUrl;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
BatchScanSwrImageInfo that = (BatchScanSwrImageInfo) obj;
return Objects.equals(this.namespace, that.namespace) && Objects.equals(this.imageName, that.imageName)
&& Objects.equals(this.imageVersion, that.imageVersion) && Objects.equals(this.instanceId, that.instanceId)
&& Objects.equals(this.instanceUrl, that.instanceUrl);
}
@Override
public int hashCode() {
return Objects.hash(namespace, imageName, imageVersion, instanceId, instanceUrl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BatchScanSwrImageInfo {\n");
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
sb.append(" imageName: ").append(toIndentedString(imageName)).append("\n");
sb.append(" imageVersion: ").append(toIndentedString(imageVersion)).append("\n");
sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n");
sb.append(" instanceUrl: ").append(toIndentedString(instanceUrl)).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 ");
}
}