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

com.pulumi.azurenative.machinelearningservices.inputs.JobServiceArgs 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.AllNodesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Job endpoint definition
 * 
 */
public final class JobServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobServiceArgs Empty = new JobServiceArgs();

    /**
     * Url for endpoint.
     * 
     */
    @Import(name="endpoint")
    private @Nullable Output endpoint;

    /**
     * @return Url for endpoint.
     * 
     */
    public Optional> endpoint() {
        return Optional.ofNullable(this.endpoint);
    }

    /**
     * Endpoint type.
     * 
     */
    @Import(name="jobServiceType")
    private @Nullable Output jobServiceType;

    /**
     * @return Endpoint type.
     * 
     */
    public Optional> jobServiceType() {
        return Optional.ofNullable(this.jobServiceType);
    }

    /**
     * Nodes that user would like to start the service on.
     * If Nodes is not set or set to null, the service will only be started on leader node.
     * 
     */
    @Import(name="nodes")
    private @Nullable Output nodes;

    /**
     * @return Nodes that user would like to start the service on.
     * If Nodes is not set or set to null, the service will only be started on leader node.
     * 
     */
    public Optional> nodes() {
        return Optional.ofNullable(this.nodes);
    }

    /**
     * Port for endpoint.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return Port for endpoint.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * Additional properties to set on the endpoint.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return Additional properties to set on the endpoint.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    private JobServiceArgs() {}

    private JobServiceArgs(JobServiceArgs $) {
        this.endpoint = $.endpoint;
        this.jobServiceType = $.jobServiceType;
        this.nodes = $.nodes;
        this.port = $.port;
        this.properties = $.properties;
    }

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

    public static final class Builder {
        private JobServiceArgs $;

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

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

        /**
         * @param endpoint Url for endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(@Nullable Output endpoint) {
            $.endpoint = endpoint;
            return this;
        }

        /**
         * @param endpoint Url for endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(String endpoint) {
            return endpoint(Output.of(endpoint));
        }

        /**
         * @param jobServiceType Endpoint type.
         * 
         * @return builder
         * 
         */
        public Builder jobServiceType(@Nullable Output jobServiceType) {
            $.jobServiceType = jobServiceType;
            return this;
        }

        /**
         * @param jobServiceType Endpoint type.
         * 
         * @return builder
         * 
         */
        public Builder jobServiceType(String jobServiceType) {
            return jobServiceType(Output.of(jobServiceType));
        }

        /**
         * @param nodes Nodes that user would like to start the service on.
         * If Nodes is not set or set to null, the service will only be started on leader node.
         * 
         * @return builder
         * 
         */
        public Builder nodes(@Nullable Output nodes) {
            $.nodes = nodes;
            return this;
        }

        /**
         * @param nodes Nodes that user would like to start the service on.
         * If Nodes is not set or set to null, the service will only be started on leader node.
         * 
         * @return builder
         * 
         */
        public Builder nodes(AllNodesArgs nodes) {
            return nodes(Output.of(nodes));
        }

        /**
         * @param port Port for endpoint.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port Port for endpoint.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param properties Additional properties to set on the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Additional properties to set on the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder properties(Map properties) {
            return properties(Output.of(properties));
        }

        public JobServiceArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy