// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.apimanagement.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The developer portal Cross-Origin Resource Sharing (CORS) settings. */
@Fluent
public final class PortalConfigCorsProperties {
    /*
     * Allowed origins, e.g. `https://trusted.com`.
     */
    @JsonProperty(value = "allowedOrigins")
    private List<String> allowedOrigins;

    /** Creates an instance of PortalConfigCorsProperties class. */
    public PortalConfigCorsProperties() {
    }

    /**
     * Get the allowedOrigins property: Allowed origins, e.g. `https://trusted.com`.
     *
     * @return the allowedOrigins value.
     */
    public List<String> allowedOrigins() {
        return this.allowedOrigins;
    }

    /**
     * Set the allowedOrigins property: Allowed origins, e.g. `https://trusted.com`.
     *
     * @param allowedOrigins the allowedOrigins value to set.
     * @return the PortalConfigCorsProperties object itself.
     */
    public PortalConfigCorsProperties withAllowedOrigins(List<String> allowedOrigins) {
        this.allowedOrigins = allowedOrigins;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
