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

com.softlayer.api.service.container.virtual.dedicatedhost.AllocationStatus Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.container.virtual.dedicatedhost;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;

/**
 * This data type represents the structure to hold the allocation properties of a [[SoftLayer_Virtual_DedicatedHost]]. 
 *
 * @see SoftLayer_Container_Virtual_DedicatedHost_AllocationStatus
 */
@ApiType("SoftLayer_Container_Virtual_DedicatedHost_AllocationStatus")
public class AllocationStatus extends Entity {

    /**
     * Number of allocated CPU cores on the specified dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long cpuAllocated;

    public Long getCpuAllocated() {
        return cpuAllocated;
    }

    public void setCpuAllocated(Long cpuAllocated) {
        cpuAllocatedSpecified = true;
        this.cpuAllocated = cpuAllocated;
    }

    protected boolean cpuAllocatedSpecified;

    public boolean isCpuAllocatedSpecified() {
        return cpuAllocatedSpecified;
    }

    public void unsetCpuAllocated() {
        cpuAllocated = null;
        cpuAllocatedSpecified = false;
    }

    /**
     * Number of available CPU cores on the specified dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long cpuAvailable;

    public Long getCpuAvailable() {
        return cpuAvailable;
    }

    public void setCpuAvailable(Long cpuAvailable) {
        cpuAvailableSpecified = true;
        this.cpuAvailable = cpuAvailable;
    }

    protected boolean cpuAvailableSpecified;

    public boolean isCpuAvailableSpecified() {
        return cpuAvailableSpecified;
    }

    public void unsetCpuAvailable() {
        cpuAvailable = null;
        cpuAvailableSpecified = false;
    }

    /**
     * Total number of CPU cores on the dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long cpuCount;

    public Long getCpuCount() {
        return cpuCount;
    }

    public void setCpuCount(Long cpuCount) {
        cpuCountSpecified = true;
        this.cpuCount = cpuCount;
    }

    protected boolean cpuCountSpecified;

    public boolean isCpuCountSpecified() {
        return cpuCountSpecified;
    }

    public void unsetCpuCount() {
        cpuCount = null;
        cpuCountSpecified = false;
    }

    /**
     * Amount of allocated disk space on the specified dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long diskAllocated;

    public Long getDiskAllocated() {
        return diskAllocated;
    }

    public void setDiskAllocated(Long diskAllocated) {
        diskAllocatedSpecified = true;
        this.diskAllocated = diskAllocated;
    }

    protected boolean diskAllocatedSpecified;

    public boolean isDiskAllocatedSpecified() {
        return diskAllocatedSpecified;
    }

    public void unsetDiskAllocated() {
        diskAllocated = null;
        diskAllocatedSpecified = false;
    }

    /**
     * Amount of available disk space on the specified dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long diskAvailable;

    public Long getDiskAvailable() {
        return diskAvailable;
    }

    public void setDiskAvailable(Long diskAvailable) {
        diskAvailableSpecified = true;
        this.diskAvailable = diskAvailable;
    }

    protected boolean diskAvailableSpecified;

    public boolean isDiskAvailableSpecified() {
        return diskAvailableSpecified;
    }

    public void unsetDiskAvailable() {
        diskAvailable = null;
        diskAvailableSpecified = false;
    }

    /**
     * Total amount of disk capacity on the dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long diskCapacity;

    public Long getDiskCapacity() {
        return diskCapacity;
    }

    public void setDiskCapacity(Long diskCapacity) {
        diskCapacitySpecified = true;
        this.diskCapacity = diskCapacity;
    }

    protected boolean diskCapacitySpecified;

    public boolean isDiskCapacitySpecified() {
        return diskCapacitySpecified;
    }

    public void unsetDiskCapacity() {
        diskCapacity = null;
        diskCapacitySpecified = false;
    }

    /**
     * Number of allocated guests on the specified dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long guestCount;

    public Long getGuestCount() {
        return guestCount;
    }

    public void setGuestCount(Long guestCount) {
        guestCountSpecified = true;
        this.guestCount = guestCount;
    }

    protected boolean guestCountSpecified;

    public boolean isGuestCountSpecified() {
        return guestCountSpecified;
    }

    public void unsetGuestCount() {
        guestCount = null;
        guestCountSpecified = false;
    }

    /**
     * Amount of allocated memory on the specified dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long memoryAllocated;

    public Long getMemoryAllocated() {
        return memoryAllocated;
    }

    public void setMemoryAllocated(Long memoryAllocated) {
        memoryAllocatedSpecified = true;
        this.memoryAllocated = memoryAllocated;
    }

    protected boolean memoryAllocatedSpecified;

    public boolean isMemoryAllocatedSpecified() {
        return memoryAllocatedSpecified;
    }

    public void unsetMemoryAllocated() {
        memoryAllocated = null;
        memoryAllocatedSpecified = false;
    }

    /**
     * Amount of available memory on the specified dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long memoryAvailable;

    public Long getMemoryAvailable() {
        return memoryAvailable;
    }

    public void setMemoryAvailable(Long memoryAvailable) {
        memoryAvailableSpecified = true;
        this.memoryAvailable = memoryAvailable;
    }

    protected boolean memoryAvailableSpecified;

    public boolean isMemoryAvailableSpecified() {
        return memoryAvailableSpecified;
    }

    public void unsetMemoryAvailable() {
        memoryAvailable = null;
        memoryAvailableSpecified = false;
    }

    /**
     * Total amount of memory capacity on the dedicated host.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long memoryCapacity;

    public Long getMemoryCapacity() {
        return memoryCapacity;
    }

    public void setMemoryCapacity(Long memoryCapacity) {
        memoryCapacitySpecified = true;
        this.memoryCapacity = memoryCapacity;
    }

    protected boolean memoryCapacitySpecified;

    public boolean isMemoryCapacitySpecified() {
        return memoryCapacitySpecified;
    }

    public void unsetMemoryCapacity() {
        memoryCapacity = null;
        memoryCapacitySpecified = false;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public Mask cpuAllocated() {
            withLocalProperty("cpuAllocated");
            return this;
        }

        public Mask cpuAvailable() {
            withLocalProperty("cpuAvailable");
            return this;
        }

        public Mask cpuCount() {
            withLocalProperty("cpuCount");
            return this;
        }

        public Mask diskAllocated() {
            withLocalProperty("diskAllocated");
            return this;
        }

        public Mask diskAvailable() {
            withLocalProperty("diskAvailable");
            return this;
        }

        public Mask diskCapacity() {
            withLocalProperty("diskCapacity");
            return this;
        }

        public Mask guestCount() {
            withLocalProperty("guestCount");
            return this;
        }

        public Mask memoryAllocated() {
            withLocalProperty("memoryAllocated");
            return this;
        }

        public Mask memoryAvailable() {
            withLocalProperty("memoryAvailable");
            return this;
        }

        public Mask memoryCapacity() {
            withLocalProperty("memoryCapacity");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy