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

package com.azure.resourcemanager.healthcareapis.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The settings for the Cosmos DB database backing the service. */
@Fluent
public final class ServiceCosmosDbConfigurationInfo {
    /*
     * The provisioned throughput for the backing database.
     */
    @JsonProperty(value = "offerThroughput")
    private Integer offerThroughput;

    /*
     * The URI of the customer-managed key for the backing database.
     */
    @JsonProperty(value = "keyVaultKeyUri")
    private String keyVaultKeyUri;

    /**
     * Get the offerThroughput property: The provisioned throughput for the backing database.
     *
     * @return the offerThroughput value.
     */
    public Integer offerThroughput() {
        return this.offerThroughput;
    }

    /**
     * Set the offerThroughput property: The provisioned throughput for the backing database.
     *
     * @param offerThroughput the offerThroughput value to set.
     * @return the ServiceCosmosDbConfigurationInfo object itself.
     */
    public ServiceCosmosDbConfigurationInfo withOfferThroughput(Integer offerThroughput) {
        this.offerThroughput = offerThroughput;
        return this;
    }

    /**
     * Get the keyVaultKeyUri property: The URI of the customer-managed key for the backing database.
     *
     * @return the keyVaultKeyUri value.
     */
    public String keyVaultKeyUri() {
        return this.keyVaultKeyUri;
    }

    /**
     * Set the keyVaultKeyUri property: The URI of the customer-managed key for the backing database.
     *
     * @param keyVaultKeyUri the keyVaultKeyUri value to set.
     * @return the ServiceCosmosDbConfigurationInfo object itself.
     */
    public ServiceCosmosDbConfigurationInfo withKeyVaultKeyUri(String keyVaultKeyUri) {
        this.keyVaultKeyUri = keyVaultKeyUri;
        return this;
    }

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