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

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







FixedOrPercent (Compute Engine API beta-rev20220726-2.0.0)












com.google.api.services.compute.model

Class FixedOrPercent

    • Constructor Detail

      • FixedOrPercent

        public FixedOrPercent()
    • Method Detail

      • getCalculated

        public Integer getCalculated()
        [Output Only] Absolute value of VM instances calculated based on the specific mode. - If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded.
        Returns:
        value or null for none
      • setCalculated

        public FixedOrPercent setCalculated(Integer calculated)
        [Output Only] Absolute value of VM instances calculated based on the specific mode. - If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded.
        Parameters:
        calculated - calculated or null for none
      • getFixed

        public Integer getFixed()
        Specifies a fixed number of VM instances. This must be a positive integer.
        Returns:
        value or null for none
      • setFixed

        public FixedOrPercent setFixed(Integer fixed)
        Specifies a fixed number of VM instances. This must be a positive integer.
        Parameters:
        fixed - fixed or null for none
      • getPercent

        public Integer getPercent()
        Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%.
        Returns:
        value or null for none
      • setPercent

        public FixedOrPercent setPercent(Integer percent)
        Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%.
        Parameters:
        percent - percent or null for none

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy