All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.cloudide.v2.model.Attributes Maven / Gradle / Ivy

There is a newer version: 3.1.114
Show newest version
package com.huaweicloud.sdk.cloudide.v2.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * Attributes
 */
public class Attributes {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "cpu_limit")

    private String cpuLimit;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "memory_limit_bytes")

    private String memoryLimitBytes;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "pvc_quantity")

    private String pvcQuantity;

    public Attributes withCpuLimit(String cpuLimit) {
        this.cpuLimit = cpuLimit;
        return this;
    }

    /**
     * cpu限制
     * @return cpuLimit
     */
    public String getCpuLimit() {
        return cpuLimit;
    }

    public void setCpuLimit(String cpuLimit) {
        this.cpuLimit = cpuLimit;
    }

    public Attributes withMemoryLimitBytes(String memoryLimitBytes) {
        this.memoryLimitBytes = memoryLimitBytes;
        return this;
    }

    /**
     * 内存限制
     * @return memoryLimitBytes
     */
    public String getMemoryLimitBytes() {
        return memoryLimitBytes;
    }

    public void setMemoryLimitBytes(String memoryLimitBytes) {
        this.memoryLimitBytes = memoryLimitBytes;
    }

    public Attributes withPvcQuantity(String pvcQuantity) {
        this.pvcQuantity = pvcQuantity;
        return this;
    }

    /**
     * pvc规格
     * @return pvcQuantity
     */
    public String getPvcQuantity() {
        return pvcQuantity;
    }

    public void setPvcQuantity(String pvcQuantity) {
        this.pvcQuantity = pvcQuantity;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        Attributes that = (Attributes) obj;
        return Objects.equals(this.cpuLimit, that.cpuLimit)
            && Objects.equals(this.memoryLimitBytes, that.memoryLimitBytes)
            && Objects.equals(this.pvcQuantity, that.pvcQuantity);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cpuLimit, memoryLimitBytes, pvcQuantity);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class Attributes {\n");
        sb.append("    cpuLimit: ").append(toIndentedString(cpuLimit)).append("\n");
        sb.append("    memoryLimitBytes: ").append(toIndentedString(memoryLimitBytes)).append("\n");
        sb.append("    pvcQuantity: ").append(toIndentedString(pvcQuantity)).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 - 2024 Weber Informatics LLC | Privacy Policy