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

com.pulumi.azure.healthcare.outputs.GetServiceCorsConfiguration 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.healthcare.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetServiceCorsConfiguration {
    /**
     * @return Are credentials are allowed via CORS?
     * 
     */
    private Boolean allowCredentials;
    /**
     * @return The set of headers to be allowed via CORS.
     * 
     */
    private List allowedHeaders;
    /**
     * @return The methods to be allowed via CORS.
     * 
     */
    private List allowedMethods;
    /**
     * @return The set of origins to be allowed via CORS.
     * 
     */
    private List allowedOrigins;
    /**
     * @return The max age to be allowed via CORS.
     * 
     */
    private Integer maxAgeInSeconds;

    private GetServiceCorsConfiguration() {}
    /**
     * @return Are credentials are allowed via CORS?
     * 
     */
    public Boolean allowCredentials() {
        return this.allowCredentials;
    }
    /**
     * @return The set of headers to be allowed via CORS.
     * 
     */
    public List allowedHeaders() {
        return this.allowedHeaders;
    }
    /**
     * @return The methods to be allowed via CORS.
     * 
     */
    public List allowedMethods() {
        return this.allowedMethods;
    }
    /**
     * @return The set of origins to be allowed via CORS.
     * 
     */
    public List allowedOrigins() {
        return this.allowedOrigins;
    }
    /**
     * @return The max age to be allowed via CORS.
     * 
     */
    public Integer maxAgeInSeconds() {
        return this.maxAgeInSeconds;
    }

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

    public static Builder builder(GetServiceCorsConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean allowCredentials;
        private List allowedHeaders;
        private List allowedMethods;
        private List allowedOrigins;
        private Integer maxAgeInSeconds;
        public Builder() {}
        public Builder(GetServiceCorsConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowCredentials = defaults.allowCredentials;
    	      this.allowedHeaders = defaults.allowedHeaders;
    	      this.allowedMethods = defaults.allowedMethods;
    	      this.allowedOrigins = defaults.allowedOrigins;
    	      this.maxAgeInSeconds = defaults.maxAgeInSeconds;
        }

        @CustomType.Setter
        public Builder allowCredentials(Boolean allowCredentials) {
            if (allowCredentials == null) {
              throw new MissingRequiredPropertyException("GetServiceCorsConfiguration", "allowCredentials");
            }
            this.allowCredentials = allowCredentials;
            return this;
        }
        @CustomType.Setter
        public Builder allowedHeaders(List allowedHeaders) {
            if (allowedHeaders == null) {
              throw new MissingRequiredPropertyException("GetServiceCorsConfiguration", "allowedHeaders");
            }
            this.allowedHeaders = allowedHeaders;
            return this;
        }
        public Builder allowedHeaders(String... allowedHeaders) {
            return allowedHeaders(List.of(allowedHeaders));
        }
        @CustomType.Setter
        public Builder allowedMethods(List allowedMethods) {
            if (allowedMethods == null) {
              throw new MissingRequiredPropertyException("GetServiceCorsConfiguration", "allowedMethods");
            }
            this.allowedMethods = allowedMethods;
            return this;
        }
        public Builder allowedMethods(String... allowedMethods) {
            return allowedMethods(List.of(allowedMethods));
        }
        @CustomType.Setter
        public Builder allowedOrigins(List allowedOrigins) {
            if (allowedOrigins == null) {
              throw new MissingRequiredPropertyException("GetServiceCorsConfiguration", "allowedOrigins");
            }
            this.allowedOrigins = allowedOrigins;
            return this;
        }
        public Builder allowedOrigins(String... allowedOrigins) {
            return allowedOrigins(List.of(allowedOrigins));
        }
        @CustomType.Setter
        public Builder maxAgeInSeconds(Integer maxAgeInSeconds) {
            if (maxAgeInSeconds == null) {
              throw new MissingRequiredPropertyException("GetServiceCorsConfiguration", "maxAgeInSeconds");
            }
            this.maxAgeInSeconds = maxAgeInSeconds;
            return this;
        }
        public GetServiceCorsConfiguration build() {
            final var _resultValue = new GetServiceCorsConfiguration();
            _resultValue.allowCredentials = allowCredentials;
            _resultValue.allowedHeaders = allowedHeaders;
            _resultValue.allowedMethods = allowedMethods;
            _resultValue.allowedOrigins = allowedOrigins;
            _resultValue.maxAgeInSeconds = maxAgeInSeconds;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy