// *** 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.signalr.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;


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

    public static final ServiceCorArgs Empty = new ServiceCorArgs();

    /**
     * A list of origins which should be able to make cross-origin calls. `*` can be used to allow all calls.
     * 
     */
    @Import(name="allowedOrigins", required=true)
    private Output<List<String>> allowedOrigins;

    /**
     * @return A list of origins which should be able to make cross-origin calls. `*` can be used to allow all calls.
     * 
     */
    public Output<List<String>> allowedOrigins() {
        return this.allowedOrigins;
    }

    private ServiceCorArgs() {}

    private ServiceCorArgs(ServiceCorArgs $) {
        this.allowedOrigins = $.allowedOrigins;
    }

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

    public static final class Builder {
        private ServiceCorArgs $;

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

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

        /**
         * @param allowedOrigins A list of origins which should be able to make cross-origin calls. `*` can be used to allow all calls.
         * 
         * @return builder
         * 
         */
        public Builder allowedOrigins(Output<List<String>> allowedOrigins) {
            $.allowedOrigins = allowedOrigins;
            return this;
        }

        /**
         * @param allowedOrigins A list of origins which should be able to make cross-origin calls. `*` can be used to allow all calls.
         * 
         * @return builder
         * 
         */
        public Builder allowedOrigins(List<String> allowedOrigins) {
            return allowedOrigins(Output.of(allowedOrigins));
        }

        /**
         * @param allowedOrigins A list of origins which should be able to make cross-origin calls. `*` can be used to allow all calls.
         * 
         * @return builder
         * 
         */
        public Builder allowedOrigins(String... allowedOrigins) {
            return allowedOrigins(List.of(allowedOrigins));
        }

        public ServiceCorArgs build() {
            $.allowedOrigins = Objects.requireNonNull($.allowedOrigins, "expected parameter 'allowedOrigins' to be non-null");
            return $;
        }
    }

}
