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

package com.azure.resourcemanager.redisenterprise.models;

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

/**
 * Forcibly unlink another database from this database.
 *
 * <p>Parameters for a Redis Enterprise Active Geo Replication Force Unlink operation.
 */
@Fluent
public final class ForceUnlinkParameters {
    /*
     * The resource IDs of the database resources to be unlinked.
     */
    @JsonProperty(value = "ids", required = true)
    private List<String> ids;

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

    /**
     * Get the ids property: The resource IDs of the database resources to be unlinked.
     *
     * @return the ids value.
     */
    public List<String> ids() {
        return this.ids;
    }

    /**
     * Set the ids property: The resource IDs of the database resources to be unlinked.
     *
     * @param ids the ids value to set.
     * @return the ForceUnlinkParameters object itself.
     */
    public ForceUnlinkParameters withIds(List<String> ids) {
        this.ids = ids;
        return this;
    }

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

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