com.huaweicloud.sdk.ccm.v1.model.ProductInfo Maven / Gradle / Ivy
package com.huaweicloud.sdk.ccm.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* ProductInfo
*/
public class ProductInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "cloud_service_type")
private String cloudServiceType;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "resource_type")
private String resourceType;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "resource_spec_code")
private String resourceSpecCode;
public ProductInfo withCloudServiceType(String cloudServiceType) {
this.cloudServiceType = cloudServiceType;
return this;
}
/**
* 云服务类型,固定为'hws.service.type.ccm'
* @return cloudServiceType
*/
public String getCloudServiceType() {
return cloudServiceType;
}
public void setCloudServiceType(String cloudServiceType) {
this.cloudServiceType = cloudServiceType;
}
public ProductInfo withResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* 资源类型,CA为\"hws.resource.type.pca.duration\"
* @return resourceType
*/
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
public ProductInfo withResourceSpecCode(String resourceSpecCode) {
this.resourceSpecCode = resourceSpecCode;
return this;
}
/**
* 资源规格编码,CA为\"ca.duration\"
* @return resourceSpecCode
*/
public String getResourceSpecCode() {
return resourceSpecCode;
}
public void setResourceSpecCode(String resourceSpecCode) {
this.resourceSpecCode = resourceSpecCode;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ProductInfo that = (ProductInfo) obj;
return Objects.equals(this.cloudServiceType, that.cloudServiceType)
&& Objects.equals(this.resourceType, that.resourceType)
&& Objects.equals(this.resourceSpecCode, that.resourceSpecCode);
}
@Override
public int hashCode() {
return Objects.hash(cloudServiceType, resourceType, resourceSpecCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProductInfo {\n");
sb.append(" cloudServiceType: ").append(toIndentedString(cloudServiceType)).append("\n");
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
sb.append(" resourceSpecCode: ").append(toIndentedString(resourceSpecCode)).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 ");
}
}