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

com.pulumi.azurenative.network.ExperimentArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.network;

import com.pulumi.azurenative.network.enums.State;
import com.pulumi.azurenative.network.inputs.ExperimentEndpointArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ExperimentArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExperimentArgs Empty = new ExperimentArgs();

    /**
     * The description of the details or intents of the Experiment
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the details or intents of the Experiment
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The state of the Experiment
     * 
     */
    @Import(name="enabledState")
    private @Nullable Output> enabledState;

    /**
     * @return The state of the Experiment
     * 
     */
    public Optional>> enabledState() {
        return Optional.ofNullable(this.enabledState);
    }

    /**
     * The endpoint A of an experiment
     * 
     */
    @Import(name="endpointA")
    private @Nullable Output endpointA;

    /**
     * @return The endpoint A of an experiment
     * 
     */
    public Optional> endpointA() {
        return Optional.ofNullable(this.endpointA);
    }

    /**
     * The endpoint B of an experiment
     * 
     */
    @Import(name="endpointB")
    private @Nullable Output endpointB;

    /**
     * @return The endpoint B of an experiment
     * 
     */
    public Optional> endpointB() {
        return Optional.ofNullable(this.endpointB);
    }

    /**
     * The Experiment identifier associated with the Experiment
     * 
     */
    @Import(name="experimentName")
    private @Nullable Output experimentName;

    /**
     * @return The Experiment identifier associated with the Experiment
     * 
     */
    public Optional> experimentName() {
        return Optional.ofNullable(this.experimentName);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The Profile identifier associated with the Tenant and Partner
     * 
     */
    @Import(name="profileName", required=true)
    private Output profileName;

    /**
     * @return The Profile identifier associated with the Tenant and Partner
     * 
     */
    public Output profileName() {
        return this.profileName;
    }

    /**
     * Name of the Resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ExperimentArgs() {}

    private ExperimentArgs(ExperimentArgs $) {
        this.description = $.description;
        this.enabledState = $.enabledState;
        this.endpointA = $.endpointA;
        this.endpointB = $.endpointB;
        this.experimentName = $.experimentName;
        this.location = $.location;
        this.profileName = $.profileName;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ExperimentArgs $;

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

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

        /**
         * @param description The description of the details or intents of the Experiment
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the details or intents of the Experiment
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param enabledState The state of the Experiment
         * 
         * @return builder
         * 
         */
        public Builder enabledState(@Nullable Output> enabledState) {
            $.enabledState = enabledState;
            return this;
        }

        /**
         * @param enabledState The state of the Experiment
         * 
         * @return builder
         * 
         */
        public Builder enabledState(Either enabledState) {
            return enabledState(Output.of(enabledState));
        }

        /**
         * @param enabledState The state of the Experiment
         * 
         * @return builder
         * 
         */
        public Builder enabledState(String enabledState) {
            return enabledState(Either.ofLeft(enabledState));
        }

        /**
         * @param enabledState The state of the Experiment
         * 
         * @return builder
         * 
         */
        public Builder enabledState(State enabledState) {
            return enabledState(Either.ofRight(enabledState));
        }

        /**
         * @param endpointA The endpoint A of an experiment
         * 
         * @return builder
         * 
         */
        public Builder endpointA(@Nullable Output endpointA) {
            $.endpointA = endpointA;
            return this;
        }

        /**
         * @param endpointA The endpoint A of an experiment
         * 
         * @return builder
         * 
         */
        public Builder endpointA(ExperimentEndpointArgs endpointA) {
            return endpointA(Output.of(endpointA));
        }

        /**
         * @param endpointB The endpoint B of an experiment
         * 
         * @return builder
         * 
         */
        public Builder endpointB(@Nullable Output endpointB) {
            $.endpointB = endpointB;
            return this;
        }

        /**
         * @param endpointB The endpoint B of an experiment
         * 
         * @return builder
         * 
         */
        public Builder endpointB(ExperimentEndpointArgs endpointB) {
            return endpointB(Output.of(endpointB));
        }

        /**
         * @param experimentName The Experiment identifier associated with the Experiment
         * 
         * @return builder
         * 
         */
        public Builder experimentName(@Nullable Output experimentName) {
            $.experimentName = experimentName;
            return this;
        }

        /**
         * @param experimentName The Experiment identifier associated with the Experiment
         * 
         * @return builder
         * 
         */
        public Builder experimentName(String experimentName) {
            return experimentName(Output.of(experimentName));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param profileName The Profile identifier associated with the Tenant and Partner
         * 
         * @return builder
         * 
         */
        public Builder profileName(Output profileName) {
            $.profileName = profileName;
            return this;
        }

        /**
         * @param profileName The Profile identifier associated with the Tenant and Partner
         * 
         * @return builder
         * 
         */
        public Builder profileName(String profileName) {
            return profileName(Output.of(profileName));
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ExperimentArgs build() {
            if ($.profileName == null) {
                throw new MissingRequiredPropertyException("ExperimentArgs", "profileName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ExperimentArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy