// *** 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.gcp.vertex.outputs;

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

@CustomType
public final class AiEndpointDeployedModelDedicatedResourceMachineSpec {
    /**
     * @return (Output)
     * The number of accelerators to attach to the machine.
     * 
     */
    private @Nullable Integer acceleratorCount;
    /**
     * @return (Output)
     * The type of accelerator(s) that may be attached to the machine as per accelerator_count. See possible values [here](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/MachineSpec#AcceleratorType).
     * 
     */
    private @Nullable String acceleratorType;
    /**
     * @return (Output)
     * The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required. TODO(rsurowka): Try to better unify the required vs optional.
     * 
     */
    private @Nullable String machineType;

    private AiEndpointDeployedModelDedicatedResourceMachineSpec() {}
    /**
     * @return (Output)
     * The number of accelerators to attach to the machine.
     * 
     */
    public Optional<Integer> acceleratorCount() {
        return Optional.ofNullable(this.acceleratorCount);
    }
    /**
     * @return (Output)
     * The type of accelerator(s) that may be attached to the machine as per accelerator_count. See possible values [here](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/MachineSpec#AcceleratorType).
     * 
     */
    public Optional<String> acceleratorType() {
        return Optional.ofNullable(this.acceleratorType);
    }
    /**
     * @return (Output)
     * The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required. TODO(rsurowka): Try to better unify the required vs optional.
     * 
     */
    public Optional<String> machineType() {
        return Optional.ofNullable(this.machineType);
    }

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

    public static Builder builder(AiEndpointDeployedModelDedicatedResourceMachineSpec defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer acceleratorCount;
        private @Nullable String acceleratorType;
        private @Nullable String machineType;
        public Builder() {}
        public Builder(AiEndpointDeployedModelDedicatedResourceMachineSpec defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.acceleratorCount = defaults.acceleratorCount;
    	      this.acceleratorType = defaults.acceleratorType;
    	      this.machineType = defaults.machineType;
        }

        @CustomType.Setter
        public Builder acceleratorCount(@Nullable Integer acceleratorCount) {
            this.acceleratorCount = acceleratorCount;
            return this;
        }
        @CustomType.Setter
        public Builder acceleratorType(@Nullable String acceleratorType) {
            this.acceleratorType = acceleratorType;
            return this;
        }
        @CustomType.Setter
        public Builder machineType(@Nullable String machineType) {
            this.machineType = machineType;
            return this;
        }
        public AiEndpointDeployedModelDedicatedResourceMachineSpec build() {
            final var o = new AiEndpointDeployedModelDedicatedResourceMachineSpec();
            o.acceleratorCount = acceleratorCount;
            o.acceleratorType = acceleratorType;
            o.machineType = machineType;
            return o;
        }
    }
}
