com.pulumi.azure.maps.inputs.AccountCorsArgs Maven / Gradle / Ivy
// *** 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.maps.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class AccountCorsArgs extends com.pulumi.resources.ResourceArgs {
public static final AccountCorsArgs Empty = new AccountCorsArgs();
/**
* A list of origins that should be allowed to make cross-origin calls.
*
*/
@Import(name="allowedOrigins", required=true)
private Output> allowedOrigins;
/**
* @return A list of origins that should be allowed to make cross-origin calls.
*
*/
public Output> allowedOrigins() {
return this.allowedOrigins;
}
private AccountCorsArgs() {}
private AccountCorsArgs(AccountCorsArgs $) {
this.allowedOrigins = $.allowedOrigins;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AccountCorsArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AccountCorsArgs $;
public Builder() {
$ = new AccountCorsArgs();
}
public Builder(AccountCorsArgs defaults) {
$ = new AccountCorsArgs(Objects.requireNonNull(defaults));
}
/**
* @param allowedOrigins A list of origins that should be allowed to make cross-origin calls.
*
* @return builder
*
*/
public Builder allowedOrigins(Output> allowedOrigins) {
$.allowedOrigins = allowedOrigins;
return this;
}
/**
* @param allowedOrigins 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 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));
}
public AccountCorsArgs build() {
if ($.allowedOrigins == null) {
throw new MissingRequiredPropertyException("AccountCorsArgs", "allowedOrigins");
}
return $;
}
}
}