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

com.pulumi.azurenative.web.WebAppSwiftVirtualNetworkConnectionSlotArgs 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.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 WebAppSwiftVirtualNetworkConnectionSlotArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebAppSwiftVirtualNetworkConnectionSlotArgs Empty = new WebAppSwiftVirtualNetworkConnectionSlotArgs();

    /**
     * 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;
    }

    /**
     * The Virtual Network subnet's resource ID. This is the subnet that this Web App will join. This subnet must have a delegation to Microsoft.Web/serverFarms defined first.
     * 
     */
    @Import(name="subnetResourceId")
    private @Nullable Output subnetResourceId;

    /**
     * @return The Virtual Network subnet's resource ID. This is the subnet that this Web App will join. This subnet must have a delegation to Microsoft.Web/serverFarms defined first.
     * 
     */
    public Optional> subnetResourceId() {
        return Optional.ofNullable(this.subnetResourceId);
    }

    /**
     * A flag that specifies if the scale unit this Web App is on supports Swift integration.
     * 
     */
    @Import(name="swiftSupported")
    private @Nullable Output swiftSupported;

    /**
     * @return A flag that specifies if the scale unit this Web App is on supports Swift integration.
     * 
     */
    public Optional> swiftSupported() {
        return Optional.ofNullable(this.swiftSupported);
    }

    private WebAppSwiftVirtualNetworkConnectionSlotArgs() {}

    private WebAppSwiftVirtualNetworkConnectionSlotArgs(WebAppSwiftVirtualNetworkConnectionSlotArgs $) {
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.slot = $.slot;
        this.subnetResourceId = $.subnetResourceId;
        this.swiftSupported = $.swiftSupported;
    }

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

    public static final class Builder {
        private WebAppSwiftVirtualNetworkConnectionSlotArgs $;

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

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

        /**
         * @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 subnetResourceId The Virtual Network subnet's resource ID. This is the subnet that this Web App will join. This subnet must have a delegation to Microsoft.Web/serverFarms defined first.
         * 
         * @return builder
         * 
         */
        public Builder subnetResourceId(@Nullable Output subnetResourceId) {
            $.subnetResourceId = subnetResourceId;
            return this;
        }

        /**
         * @param subnetResourceId The Virtual Network subnet's resource ID. This is the subnet that this Web App will join. This subnet must have a delegation to Microsoft.Web/serverFarms defined first.
         * 
         * @return builder
         * 
         */
        public Builder subnetResourceId(String subnetResourceId) {
            return subnetResourceId(Output.of(subnetResourceId));
        }

        /**
         * @param swiftSupported A flag that specifies if the scale unit this Web App is on supports Swift integration.
         * 
         * @return builder
         * 
         */
        public Builder swiftSupported(@Nullable Output swiftSupported) {
            $.swiftSupported = swiftSupported;
            return this;
        }

        /**
         * @param swiftSupported A flag that specifies if the scale unit this Web App is on supports Swift integration.
         * 
         * @return builder
         * 
         */
        public Builder swiftSupported(Boolean swiftSupported) {
            return swiftSupported(Output.of(swiftSupported));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy