Class CloudCapacity


  • public final class CloudCapacity
    extends Object
    Cloud Capacity model.
    • Constructor Detail

      • CloudCapacity

        public CloudCapacity()
    • Method Detail

      • cpuCount

        public Long cpuCount()
        Get the cpuCount property: CPUCount specifies the maximum number of CPUs that can be allocated in the cloud.
        Returns:
        the cpuCount value.
      • withCpuCount

        public CloudCapacity withCpuCount​(Long cpuCount)
        Set the cpuCount property: CPUCount specifies the maximum number of CPUs that can be allocated in the cloud.
        Parameters:
        cpuCount - the cpuCount value to set.
        Returns:
        the CloudCapacity object itself.
      • memoryMB

        public Long memoryMB()
        Get the memoryMB property: MemoryMB specifies a memory usage limit in megabytes.
        Returns:
        the memoryMB value.
      • withMemoryMB

        public CloudCapacity withMemoryMB​(Long memoryMB)
        Set the memoryMB property: MemoryMB specifies a memory usage limit in megabytes.
        Parameters:
        memoryMB - the memoryMB value to set.
        Returns:
        the CloudCapacity object itself.
      • vmCount

        public Long vmCount()
        Get the vmCount property: VMCount gives the max number of VMs that can be deployed in the cloud.
        Returns:
        the vmCount value.
      • withVmCount

        public CloudCapacity withVmCount​(Long vmCount)
        Set the vmCount property: VMCount gives the max number of VMs that can be deployed in the cloud.
        Parameters:
        vmCount - the vmCount value to set.
        Returns:
        the CloudCapacity object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.