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

package com.azure.resourcemanager.postgresqlflexibleserver.models;

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

/** Details about the target where the backup content will be stored. */
@Fluent
public final class BackupStoreDetails {
    /*
     * List of SAS uri of storage containers where backup data is to be streamed/copied.
     */
    @JsonProperty(value = "sasUriList", required = true)
    private List<String> sasUriList;

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

    /**
     * Get the sasUriList property: List of SAS uri of storage containers where backup data is to be streamed/copied.
     *
     * @return the sasUriList value.
     */
    public List<String> sasUriList() {
        return this.sasUriList;
    }

    /**
     * Set the sasUriList property: List of SAS uri of storage containers where backup data is to be streamed/copied.
     *
     * @param sasUriList the sasUriList value to set.
     * @return the BackupStoreDetails object itself.
     */
    public BackupStoreDetails withSasUriList(List<String> sasUriList) {
        this.sasUriList = sasUriList;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (sasUriList() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException("Missing required property sasUriList in model BackupStoreDetails"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(BackupStoreDetails.class);
}
