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

target.apidocs.com.google.api.services.compute.model.ResourceCommitment.html Maven / Gradle / Ivy

There is a newer version: v1-rev20250320-2.0.0
Show newest version






ResourceCommitment (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute.model

Class ResourceCommitment

    • Constructor Detail

      • ResourceCommitment

        public ResourceCommitment()
    • Method Detail

      • getAcceleratorType

        public String getAcceleratorType()
        Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
        Returns:
        value or null for none
      • setAcceleratorType

        public ResourceCommitment setAcceleratorType(String acceleratorType)
        Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
        Parameters:
        acceleratorType - acceleratorType or null for none
      • getAmount

        public Long getAmount()
        The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
        Returns:
        value or null for none
      • setAmount

        public ResourceCommitment setAmount(Long amount)
        The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
        Parameters:
        amount - amount or null for none
      • getType

        public String getType()
        Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
        Returns:
        value or null for none
      • setType

        public ResourceCommitment setType(String type)
        Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
        Parameters:
        type - type or null for none
      • clone

        public ResourceCommitment clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy