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

com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigCorsArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.appservice.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WindowsWebAppSiteConfigCorsArgs Empty = new WindowsWebAppSiteConfigCorsArgs();

    /**
     * Specifies a list of origins that should be allowed to make cross-origin calls.
     * 
     */
    @Import(name="allowedOrigins")
    private @Nullable Output> allowedOrigins;

    /**
     * @return Specifies a list of origins that should be allowed to make cross-origin calls.
     * 
     */
    public Optional>> allowedOrigins() {
        return Optional.ofNullable(this.allowedOrigins);
    }

    /**
     * Whether CORS requests with credentials are allowed. Defaults to `false`
     * 
     */
    @Import(name="supportCredentials")
    private @Nullable Output supportCredentials;

    /**
     * @return Whether CORS requests with credentials are allowed. Defaults to `false`
     * 
     */
    public Optional> supportCredentials() {
        return Optional.ofNullable(this.supportCredentials);
    }

    private WindowsWebAppSiteConfigCorsArgs() {}

    private WindowsWebAppSiteConfigCorsArgs(WindowsWebAppSiteConfigCorsArgs $) {
        this.allowedOrigins = $.allowedOrigins;
        this.supportCredentials = $.supportCredentials;
    }

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

    public static final class Builder {
        private WindowsWebAppSiteConfigCorsArgs $;

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

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

        /**
         * @param allowedOrigins Specifies a list of origins that should be allowed to make cross-origin calls.
         * 
         * @return builder
         * 
         */
        public Builder allowedOrigins(@Nullable Output> allowedOrigins) {
            $.allowedOrigins = allowedOrigins;
            return this;
        }

        /**
         * @param allowedOrigins Specifies a list of origins that should be allowed to make cross-origin calls.
         * 
         * @return builder
         * 
         */
        public Builder allowedOrigins(List allowedOrigins) {
            return allowedOrigins(Output.of(allowedOrigins));
        }

        /**
         * @param allowedOrigins Specifies a list of origins that should be allowed to make cross-origin calls.
         * 
         * @return builder
         * 
         */
        public Builder allowedOrigins(String... allowedOrigins) {
            return allowedOrigins(List.of(allowedOrigins));
        }

        /**
         * @param supportCredentials Whether CORS requests with credentials are allowed. Defaults to `false`
         * 
         * @return builder
         * 
         */
        public Builder supportCredentials(@Nullable Output supportCredentials) {
            $.supportCredentials = supportCredentials;
            return this;
        }

        /**
         * @param supportCredentials Whether CORS requests with credentials are allowed. Defaults to `false`
         * 
         * @return builder
         * 
         */
        public Builder supportCredentials(Boolean supportCredentials) {
            return supportCredentials(Output.of(supportCredentials));
        }

        public WindowsWebAppSiteConfigCorsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy