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

com.pulumi.azurenative.hdinsight.inputs.IPConfigurationArgs 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.hdinsight.inputs;

import com.pulumi.azurenative.hdinsight.enums.PrivateIPAllocationMethod;
import com.pulumi.azurenative.hdinsight.inputs.ResourceIdArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The ip configurations for the private link service.
 * 
 */
public final class IPConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final IPConfigurationArgs Empty = new IPConfigurationArgs();

    /**
     * The name of private link IP configuration.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of private link IP configuration.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Indicates whether this IP configuration is primary for the corresponding NIC.
     * 
     */
    @Import(name="primary")
    private @Nullable Output primary;

    /**
     * @return Indicates whether this IP configuration is primary for the corresponding NIC.
     * 
     */
    public Optional> primary() {
        return Optional.ofNullable(this.primary);
    }

    /**
     * The IP address.
     * 
     */
    @Import(name="privateIPAddress")
    private @Nullable Output privateIPAddress;

    /**
     * @return The IP address.
     * 
     */
    public Optional> privateIPAddress() {
        return Optional.ofNullable(this.privateIPAddress);
    }

    /**
     * The method that private IP address is allocated.
     * 
     */
    @Import(name="privateIPAllocationMethod")
    private @Nullable Output> privateIPAllocationMethod;

    /**
     * @return The method that private IP address is allocated.
     * 
     */
    public Optional>> privateIPAllocationMethod() {
        return Optional.ofNullable(this.privateIPAllocationMethod);
    }

    /**
     * The subnet resource id.
     * 
     */
    @Import(name="subnet")
    private @Nullable Output subnet;

    /**
     * @return The subnet resource id.
     * 
     */
    public Optional> subnet() {
        return Optional.ofNullable(this.subnet);
    }

    private IPConfigurationArgs() {}

    private IPConfigurationArgs(IPConfigurationArgs $) {
        this.name = $.name;
        this.primary = $.primary;
        this.privateIPAddress = $.privateIPAddress;
        this.privateIPAllocationMethod = $.privateIPAllocationMethod;
        this.subnet = $.subnet;
    }

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

    public static final class Builder {
        private IPConfigurationArgs $;

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

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

        /**
         * @param name The name of private link IP configuration.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of private link IP configuration.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param primary Indicates whether this IP configuration is primary for the corresponding NIC.
         * 
         * @return builder
         * 
         */
        public Builder primary(@Nullable Output primary) {
            $.primary = primary;
            return this;
        }

        /**
         * @param primary Indicates whether this IP configuration is primary for the corresponding NIC.
         * 
         * @return builder
         * 
         */
        public Builder primary(Boolean primary) {
            return primary(Output.of(primary));
        }

        /**
         * @param privateIPAddress The IP address.
         * 
         * @return builder
         * 
         */
        public Builder privateIPAddress(@Nullable Output privateIPAddress) {
            $.privateIPAddress = privateIPAddress;
            return this;
        }

        /**
         * @param privateIPAddress The IP address.
         * 
         * @return builder
         * 
         */
        public Builder privateIPAddress(String privateIPAddress) {
            return privateIPAddress(Output.of(privateIPAddress));
        }

        /**
         * @param privateIPAllocationMethod The method that private IP address is allocated.
         * 
         * @return builder
         * 
         */
        public Builder privateIPAllocationMethod(@Nullable Output> privateIPAllocationMethod) {
            $.privateIPAllocationMethod = privateIPAllocationMethod;
            return this;
        }

        /**
         * @param privateIPAllocationMethod The method that private IP address is allocated.
         * 
         * @return builder
         * 
         */
        public Builder privateIPAllocationMethod(Either privateIPAllocationMethod) {
            return privateIPAllocationMethod(Output.of(privateIPAllocationMethod));
        }

        /**
         * @param privateIPAllocationMethod The method that private IP address is allocated.
         * 
         * @return builder
         * 
         */
        public Builder privateIPAllocationMethod(String privateIPAllocationMethod) {
            return privateIPAllocationMethod(Either.ofLeft(privateIPAllocationMethod));
        }

        /**
         * @param privateIPAllocationMethod The method that private IP address is allocated.
         * 
         * @return builder
         * 
         */
        public Builder privateIPAllocationMethod(PrivateIPAllocationMethod privateIPAllocationMethod) {
            return privateIPAllocationMethod(Either.ofRight(privateIPAllocationMethod));
        }

        /**
         * @param subnet The subnet resource id.
         * 
         * @return builder
         * 
         */
        public Builder subnet(@Nullable Output subnet) {
            $.subnet = subnet;
            return this;
        }

        /**
         * @param subnet The subnet resource id.
         * 
         * @return builder
         * 
         */
        public Builder subnet(ResourceIdArgs subnet) {
            return subnet(Output.of(subnet));
        }

        public IPConfigurationArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("IPConfigurationArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy