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

com.pulumi.azurenative.compute.outputs.VMSizePropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.compute.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VMSizePropertiesResponse {
    /**
     * @return Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list).
     * 
     */
    private @Nullable Integer vCPUsAvailable;
    /**
     * @return Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). **Setting this property to 1 also means that hyper-threading is disabled.**
     * 
     */
    private @Nullable Integer vCPUsPerCore;

    private VMSizePropertiesResponse() {}
    /**
     * @return Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list).
     * 
     */
    public Optional vCPUsAvailable() {
        return Optional.ofNullable(this.vCPUsAvailable);
    }
    /**
     * @return Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). **Setting this property to 1 also means that hyper-threading is disabled.**
     * 
     */
    public Optional vCPUsPerCore() {
        return Optional.ofNullable(this.vCPUsPerCore);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(VMSizePropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer vCPUsAvailable;
        private @Nullable Integer vCPUsPerCore;
        public Builder() {}
        public Builder(VMSizePropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.vCPUsAvailable = defaults.vCPUsAvailable;
    	      this.vCPUsPerCore = defaults.vCPUsPerCore;
        }

        @CustomType.Setter
        public Builder vCPUsAvailable(@Nullable Integer vCPUsAvailable) {

            this.vCPUsAvailable = vCPUsAvailable;
            return this;
        }
        @CustomType.Setter
        public Builder vCPUsPerCore(@Nullable Integer vCPUsPerCore) {

            this.vCPUsPerCore = vCPUsPerCore;
            return this;
        }
        public VMSizePropertiesResponse build() {
            final var _resultValue = new VMSizePropertiesResponse();
            _resultValue.vCPUsAvailable = vCPUsAvailable;
            _resultValue.vCPUsPerCore = vCPUsPerCore;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy