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

com.pulumi.azurenative.machinelearning.inputs.GraphParameterArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.machinelearning.enums.ParameterType;
import com.pulumi.azurenative.machinelearning.inputs.GraphParameterLinkArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines a global parameter in the graph.
 * 
 */
public final class GraphParameterArgs extends com.pulumi.resources.ResourceArgs {

    public static final GraphParameterArgs Empty = new GraphParameterArgs();

    /**
     * Description of this graph parameter.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of this graph parameter.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Association links for this parameter to nodes in the graph.
     * 
     */
    @Import(name="links", required=true)
    private Output> links;

    /**
     * @return Association links for this parameter to nodes in the graph.
     * 
     */
    public Output> links() {
        return this.links;
    }

    /**
     * Graph parameter's type.
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return Graph parameter's type.
     * 
     */
    public Output> type() {
        return this.type;
    }

    private GraphParameterArgs() {}

    private GraphParameterArgs(GraphParameterArgs $) {
        this.description = $.description;
        this.links = $.links;
        this.type = $.type;
    }

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

    public static final class Builder {
        private GraphParameterArgs $;

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

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

        /**
         * @param description Description of this graph parameter.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of this graph parameter.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param links Association links for this parameter to nodes in the graph.
         * 
         * @return builder
         * 
         */
        public Builder links(Output> links) {
            $.links = links;
            return this;
        }

        /**
         * @param links Association links for this parameter to nodes in the graph.
         * 
         * @return builder
         * 
         */
        public Builder links(List links) {
            return links(Output.of(links));
        }

        /**
         * @param links Association links for this parameter to nodes in the graph.
         * 
         * @return builder
         * 
         */
        public Builder links(GraphParameterLinkArgs... links) {
            return links(List.of(links));
        }

        /**
         * @param type Graph parameter's type.
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Graph parameter's type.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Graph parameter's type.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Graph parameter's type.
         * 
         * @return builder
         * 
         */
        public Builder type(ParameterType type) {
            return type(Either.ofRight(type));
        }

        public GraphParameterArgs build() {
            if ($.links == null) {
                throw new MissingRequiredPropertyException("GraphParameterArgs", "links");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("GraphParameterArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy