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

com.pulumi.azurenative.machinelearningservices.inputs.PoolEnvironmentConfigurationArgs Maven / Gradle / Ivy

// *** 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.machinelearningservices.inputs;

import com.pulumi.azurenative.machinelearningservices.inputs.ProbeSettingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Environment configuration options.
 * 
 */
public final class PoolEnvironmentConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final PoolEnvironmentConfigurationArgs Empty = new PoolEnvironmentConfigurationArgs();

    /**
     * ARM resource ID of the environment specification for the inference pool.
     * 
     */
    @Import(name="environmentId")
    private @Nullable Output environmentId;

    /**
     * @return ARM resource ID of the environment specification for the inference pool.
     * 
     */
    public Optional> environmentId() {
        return Optional.ofNullable(this.environmentId);
    }

    /**
     * Environment variables configuration for the inference pool.
     * 
     */
    @Import(name="environmentVariables")
    private @Nullable Output> environmentVariables;

    /**
     * @return Environment variables configuration for the inference pool.
     * 
     */
    public Optional>> environmentVariables() {
        return Optional.ofNullable(this.environmentVariables);
    }

    /**
     * Liveness probe monitors the health of the container regularly.
     * 
     */
    @Import(name="livenessProbe")
    private @Nullable Output livenessProbe;

    /**
     * @return Liveness probe monitors the health of the container regularly.
     * 
     */
    public Optional> livenessProbe() {
        return Optional.ofNullable(this.livenessProbe);
    }

    /**
     * Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe.
     * 
     */
    @Import(name="readinessProbe")
    private @Nullable Output readinessProbe;

    /**
     * @return Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe.
     * 
     */
    public Optional> readinessProbe() {
        return Optional.ofNullable(this.readinessProbe);
    }

    /**
     * This verifies whether the application within a container is started. Startup probes run before any other probe, and, unless it finishes successfully, disables other probes.
     * 
     */
    @Import(name="startupProbe")
    private @Nullable Output startupProbe;

    /**
     * @return This verifies whether the application within a container is started. Startup probes run before any other probe, and, unless it finishes successfully, disables other probes.
     * 
     */
    public Optional> startupProbe() {
        return Optional.ofNullable(this.startupProbe);
    }

    private PoolEnvironmentConfigurationArgs() {}

    private PoolEnvironmentConfigurationArgs(PoolEnvironmentConfigurationArgs $) {
        this.environmentId = $.environmentId;
        this.environmentVariables = $.environmentVariables;
        this.livenessProbe = $.livenessProbe;
        this.readinessProbe = $.readinessProbe;
        this.startupProbe = $.startupProbe;
    }

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

    public static final class Builder {
        private PoolEnvironmentConfigurationArgs $;

        public Builder() {
            $ = new PoolEnvironmentConfigurationArgs();
        }

        public Builder(PoolEnvironmentConfigurationArgs defaults) {
            $ = new PoolEnvironmentConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param environmentId ARM resource ID of the environment specification for the inference pool.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(@Nullable Output environmentId) {
            $.environmentId = environmentId;
            return this;
        }

        /**
         * @param environmentId ARM resource ID of the environment specification for the inference pool.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(String environmentId) {
            return environmentId(Output.of(environmentId));
        }

        /**
         * @param environmentVariables Environment variables configuration for the inference pool.
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(@Nullable Output> environmentVariables) {
            $.environmentVariables = environmentVariables;
            return this;
        }

        /**
         * @param environmentVariables Environment variables configuration for the inference pool.
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(Map environmentVariables) {
            return environmentVariables(Output.of(environmentVariables));
        }

        /**
         * @param livenessProbe Liveness probe monitors the health of the container regularly.
         * 
         * @return builder
         * 
         */
        public Builder livenessProbe(@Nullable Output livenessProbe) {
            $.livenessProbe = livenessProbe;
            return this;
        }

        /**
         * @param livenessProbe Liveness probe monitors the health of the container regularly.
         * 
         * @return builder
         * 
         */
        public Builder livenessProbe(ProbeSettingsArgs livenessProbe) {
            return livenessProbe(Output.of(livenessProbe));
        }

        /**
         * @param readinessProbe Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe.
         * 
         * @return builder
         * 
         */
        public Builder readinessProbe(@Nullable Output readinessProbe) {
            $.readinessProbe = readinessProbe;
            return this;
        }

        /**
         * @param readinessProbe Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe.
         * 
         * @return builder
         * 
         */
        public Builder readinessProbe(ProbeSettingsArgs readinessProbe) {
            return readinessProbe(Output.of(readinessProbe));
        }

        /**
         * @param startupProbe This verifies whether the application within a container is started. Startup probes run before any other probe, and, unless it finishes successfully, disables other probes.
         * 
         * @return builder
         * 
         */
        public Builder startupProbe(@Nullable Output startupProbe) {
            $.startupProbe = startupProbe;
            return this;
        }

        /**
         * @param startupProbe This verifies whether the application within a container is started. Startup probes run before any other probe, and, unless it finishes successfully, disables other probes.
         * 
         * @return builder
         * 
         */
        public Builder startupProbe(ProbeSettingsArgs startupProbe) {
            return startupProbe(Output.of(startupProbe));
        }

        public PoolEnvironmentConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy