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

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

There is a newer version: 2.72.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.machinelearningservices.inputs;

import com.pulumi.azurenative.machinelearningservices.inputs.DockerArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.EndpointArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.EnvironmentVariableArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.ImageArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.VolumeDefinitionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies the custom service configuration
 * 
 */
public final class CustomServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomServiceArgs Empty = new CustomServiceArgs();

    /**
     * Describes the docker settings for the image
     * 
     */
    @Import(name="docker")
    private @Nullable Output docker;

    /**
     * @return Describes the docker settings for the image
     * 
     */
    public Optional> docker() {
        return Optional.ofNullable(this.docker);
    }

    /**
     * Configuring the endpoints for the container
     * 
     */
    @Import(name="endpoints")
    private @Nullable Output> endpoints;

    /**
     * @return Configuring the endpoints for the container
     * 
     */
    public Optional>> endpoints() {
        return Optional.ofNullable(this.endpoints);
    }

    /**
     * Environment Variable for the container
     * 
     */
    @Import(name="environmentVariables")
    private @Nullable Output> environmentVariables;

    /**
     * @return Environment Variable for the container
     * 
     */
    public Optional>> environmentVariables() {
        return Optional.ofNullable(this.environmentVariables);
    }

    /**
     * Describes the Image Specifications
     * 
     */
    @Import(name="image")
    private @Nullable Output image;

    /**
     * @return Describes the Image Specifications
     * 
     */
    public Optional> image() {
        return Optional.ofNullable(this.image);
    }

    /**
     * Name of the Custom Service
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the Custom Service
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Configuring the volumes for the container
     * 
     */
    @Import(name="volumes")
    private @Nullable Output> volumes;

    /**
     * @return Configuring the volumes for the container
     * 
     */
    public Optional>> volumes() {
        return Optional.ofNullable(this.volumes);
    }

    private CustomServiceArgs() {}

    private CustomServiceArgs(CustomServiceArgs $) {
        this.docker = $.docker;
        this.endpoints = $.endpoints;
        this.environmentVariables = $.environmentVariables;
        this.image = $.image;
        this.name = $.name;
        this.volumes = $.volumes;
    }

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

    public static final class Builder {
        private CustomServiceArgs $;

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

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

        /**
         * @param docker Describes the docker settings for the image
         * 
         * @return builder
         * 
         */
        public Builder docker(@Nullable Output docker) {
            $.docker = docker;
            return this;
        }

        /**
         * @param docker Describes the docker settings for the image
         * 
         * @return builder
         * 
         */
        public Builder docker(DockerArgs docker) {
            return docker(Output.of(docker));
        }

        /**
         * @param endpoints Configuring the endpoints for the container
         * 
         * @return builder
         * 
         */
        public Builder endpoints(@Nullable Output> endpoints) {
            $.endpoints = endpoints;
            return this;
        }

        /**
         * @param endpoints Configuring the endpoints for the container
         * 
         * @return builder
         * 
         */
        public Builder endpoints(List endpoints) {
            return endpoints(Output.of(endpoints));
        }

        /**
         * @param endpoints Configuring the endpoints for the container
         * 
         * @return builder
         * 
         */
        public Builder endpoints(EndpointArgs... endpoints) {
            return endpoints(List.of(endpoints));
        }

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

        /**
         * @param environmentVariables Environment Variable for the container
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(Map environmentVariables) {
            return environmentVariables(Output.of(environmentVariables));
        }

        /**
         * @param image Describes the Image Specifications
         * 
         * @return builder
         * 
         */
        public Builder image(@Nullable Output image) {
            $.image = image;
            return this;
        }

        /**
         * @param image Describes the Image Specifications
         * 
         * @return builder
         * 
         */
        public Builder image(ImageArgs image) {
            return image(Output.of(image));
        }

        /**
         * @param name Name of the Custom Service
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the Custom Service
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param volumes Configuring the volumes for the container
         * 
         * @return builder
         * 
         */
        public Builder volumes(@Nullable Output> volumes) {
            $.volumes = volumes;
            return this;
        }

        /**
         * @param volumes Configuring the volumes for the container
         * 
         * @return builder
         * 
         */
        public Builder volumes(List volumes) {
            return volumes(Output.of(volumes));
        }

        /**
         * @param volumes Configuring the volumes for the container
         * 
         * @return builder
         * 
         */
        public Builder volumes(VolumeDefinitionArgs... volumes) {
            return volumes(List.of(volumes));
        }

        public CustomServiceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy