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

com.pulumi.azurenative.web.StaticSiteUserProvidedFunctionAppForStaticSiteArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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 StaticSiteUserProvidedFunctionAppForStaticSiteArgs extends com.pulumi.resources.ResourceArgs {

    public static final StaticSiteUserProvidedFunctionAppForStaticSiteArgs Empty = new StaticSiteUserProvidedFunctionAppForStaticSiteArgs();

    /**
     * Name of the function app to register with the static site.
     * 
     */
    @Import(name="functionAppName")
    private @Nullable Output functionAppName;

    /**
     * @return Name of the function app to register with the static site.
     * 
     */
    public Optional> functionAppName() {
        return Optional.ofNullable(this.functionAppName);
    }

    /**
     * The region of the function app registered with the static site
     * 
     */
    @Import(name="functionAppRegion")
    private @Nullable Output functionAppRegion;

    /**
     * @return The region of the function app registered with the static site
     * 
     */
    public Optional> functionAppRegion() {
        return Optional.ofNullable(this.functionAppRegion);
    }

    /**
     * The resource id of the function app registered with the static site
     * 
     */
    @Import(name="functionAppResourceId")
    private @Nullable Output functionAppResourceId;

    /**
     * @return The resource id of the function app registered with the static site
     * 
     */
    public Optional> functionAppResourceId() {
        return Optional.ofNullable(this.functionAppResourceId);
    }

    /**
     * Specify <code>true</code> to force the update of the auth configuration on the function app even if an AzureStaticWebApps provider is already configured on the function app. The default is <code>false</code>.
     * 
     */
    @Import(name="isForced")
    private @Nullable Output isForced;

    /**
     * @return Specify <code>true</code> to force the update of the auth configuration on the function app even if an AzureStaticWebApps provider is already configured on the function app. The default is <code>false</code>.
     * 
     */
    public Optional> isForced() {
        return Optional.ofNullable(this.isForced);
    }

    /**
     * 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 static site.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the static site.
     * 
     */
    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;
    }

    private StaticSiteUserProvidedFunctionAppForStaticSiteArgs() {}

    private StaticSiteUserProvidedFunctionAppForStaticSiteArgs(StaticSiteUserProvidedFunctionAppForStaticSiteArgs $) {
        this.functionAppName = $.functionAppName;
        this.functionAppRegion = $.functionAppRegion;
        this.functionAppResourceId = $.functionAppResourceId;
        this.isForced = $.isForced;
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private StaticSiteUserProvidedFunctionAppForStaticSiteArgs $;

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

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

        /**
         * @param functionAppName Name of the function app to register with the static site.
         * 
         * @return builder
         * 
         */
        public Builder functionAppName(@Nullable Output functionAppName) {
            $.functionAppName = functionAppName;
            return this;
        }

        /**
         * @param functionAppName Name of the function app to register with the static site.
         * 
         * @return builder
         * 
         */
        public Builder functionAppName(String functionAppName) {
            return functionAppName(Output.of(functionAppName));
        }

        /**
         * @param functionAppRegion The region of the function app registered with the static site
         * 
         * @return builder
         * 
         */
        public Builder functionAppRegion(@Nullable Output functionAppRegion) {
            $.functionAppRegion = functionAppRegion;
            return this;
        }

        /**
         * @param functionAppRegion The region of the function app registered with the static site
         * 
         * @return builder
         * 
         */
        public Builder functionAppRegion(String functionAppRegion) {
            return functionAppRegion(Output.of(functionAppRegion));
        }

        /**
         * @param functionAppResourceId The resource id of the function app registered with the static site
         * 
         * @return builder
         * 
         */
        public Builder functionAppResourceId(@Nullable Output functionAppResourceId) {
            $.functionAppResourceId = functionAppResourceId;
            return this;
        }

        /**
         * @param functionAppResourceId The resource id of the function app registered with the static site
         * 
         * @return builder
         * 
         */
        public Builder functionAppResourceId(String functionAppResourceId) {
            return functionAppResourceId(Output.of(functionAppResourceId));
        }

        /**
         * @param isForced Specify <code>true</code> to force the update of the auth configuration on the function app even if an AzureStaticWebApps provider is already configured on the function app. The default is <code>false</code>.
         * 
         * @return builder
         * 
         */
        public Builder isForced(@Nullable Output isForced) {
            $.isForced = isForced;
            return this;
        }

        /**
         * @param isForced Specify <code>true</code> to force the update of the auth configuration on the function app even if an AzureStaticWebApps provider is already configured on the function app. The default is <code>false</code>.
         * 
         * @return builder
         * 
         */
        public Builder isForced(Boolean isForced) {
            return isForced(Output.of(isForced));
        }

        /**
         * @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 static site.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the static site.
         * 
         * @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));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy