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

com.pulumi.azurenative.web.WebAppVnetConnectionSlotArgs 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.web;

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;


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

    public static final WebAppVnetConnectionSlotArgs Empty = new WebAppVnetConnectionSlotArgs();

    /**
     * A certificate file (.cer) blob containing the public key of the private key used to authenticate a
     * Point-To-Site VPN connection.
     * 
     */
    @Import(name="certBlob")
    private @Nullable Output certBlob;

    /**
     * @return A certificate file (.cer) blob containing the public key of the private key used to authenticate a
     * Point-To-Site VPN connection.
     * 
     */
    public Optional> certBlob() {
        return Optional.ofNullable(this.certBlob);
    }

    /**
     * DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses.
     * 
     */
    @Import(name="dnsServers")
    private @Nullable Output dnsServers;

    /**
     * @return DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses.
     * 
     */
    public Optional> dnsServers() {
        return Optional.ofNullable(this.dnsServers);
    }

    /**
     * Flag that is used to denote if this is VNET injection
     * 
     */
    @Import(name="isSwift")
    private @Nullable Output isSwift;

    /**
     * @return Flag that is used to denote if this is VNET injection
     * 
     */
    public Optional> isSwift() {
        return Optional.ofNullable(this.isSwift);
    }

    /**
     * Kind of resource.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Kind of resource.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Name of the app.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the app.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Name of the resource group to which the resource belongs.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group to which the resource belongs.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot.
     * 
     */
    @Import(name="slot", required=true)
    private Output slot;

    /**
     * @return Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot.
     * 
     */
    public Output slot() {
        return this.slot;
    }

    /**
     * Name of an existing Virtual Network.
     * 
     */
    @Import(name="vnetName")
    private @Nullable Output vnetName;

    /**
     * @return Name of an existing Virtual Network.
     * 
     */
    public Optional> vnetName() {
        return Optional.ofNullable(this.vnetName);
    }

    /**
     * The Virtual Network's resource ID.
     * 
     */
    @Import(name="vnetResourceId")
    private @Nullable Output vnetResourceId;

    /**
     * @return The Virtual Network's resource ID.
     * 
     */
    public Optional> vnetResourceId() {
        return Optional.ofNullable(this.vnetResourceId);
    }

    private WebAppVnetConnectionSlotArgs() {}

    private WebAppVnetConnectionSlotArgs(WebAppVnetConnectionSlotArgs $) {
        this.certBlob = $.certBlob;
        this.dnsServers = $.dnsServers;
        this.isSwift = $.isSwift;
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.slot = $.slot;
        this.vnetName = $.vnetName;
        this.vnetResourceId = $.vnetResourceId;
    }

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

    public static final class Builder {
        private WebAppVnetConnectionSlotArgs $;

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

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

        /**
         * @param certBlob A certificate file (.cer) blob containing the public key of the private key used to authenticate a
         * Point-To-Site VPN connection.
         * 
         * @return builder
         * 
         */
        public Builder certBlob(@Nullable Output certBlob) {
            $.certBlob = certBlob;
            return this;
        }

        /**
         * @param certBlob A certificate file (.cer) blob containing the public key of the private key used to authenticate a
         * Point-To-Site VPN connection.
         * 
         * @return builder
         * 
         */
        public Builder certBlob(String certBlob) {
            return certBlob(Output.of(certBlob));
        }

        /**
         * @param dnsServers DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses.
         * 
         * @return builder
         * 
         */
        public Builder dnsServers(@Nullable Output dnsServers) {
            $.dnsServers = dnsServers;
            return this;
        }

        /**
         * @param dnsServers DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses.
         * 
         * @return builder
         * 
         */
        public Builder dnsServers(String dnsServers) {
            return dnsServers(Output.of(dnsServers));
        }

        /**
         * @param isSwift Flag that is used to denote if this is VNET injection
         * 
         * @return builder
         * 
         */
        public Builder isSwift(@Nullable Output isSwift) {
            $.isSwift = isSwift;
            return this;
        }

        /**
         * @param isSwift Flag that is used to denote if this is VNET injection
         * 
         * @return builder
         * 
         */
        public Builder isSwift(Boolean isSwift) {
            return isSwift(Output.of(isSwift));
        }

        /**
         * @param kind Kind of resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

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

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

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot.
         * 
         * @return builder
         * 
         */
        public Builder slot(Output slot) {
            $.slot = slot;
            return this;
        }

        /**
         * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot.
         * 
         * @return builder
         * 
         */
        public Builder slot(String slot) {
            return slot(Output.of(slot));
        }

        /**
         * @param vnetName Name of an existing Virtual Network.
         * 
         * @return builder
         * 
         */
        public Builder vnetName(@Nullable Output vnetName) {
            $.vnetName = vnetName;
            return this;
        }

        /**
         * @param vnetName Name of an existing Virtual Network.
         * 
         * @return builder
         * 
         */
        public Builder vnetName(String vnetName) {
            return vnetName(Output.of(vnetName));
        }

        /**
         * @param vnetResourceId The Virtual Network's resource ID.
         * 
         * @return builder
         * 
         */
        public Builder vnetResourceId(@Nullable Output vnetResourceId) {
            $.vnetResourceId = vnetResourceId;
            return this;
        }

        /**
         * @param vnetResourceId The Virtual Network's resource ID.
         * 
         * @return builder
         * 
         */
        public Builder vnetResourceId(String vnetResourceId) {
            return vnetResourceId(Output.of(vnetResourceId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy