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

package com.azure.resourcemanager.edgeorder.models;

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

/** Cost information for the product system. */
@Immutable
public final class CostInformation {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(CostInformation.class);

    /*
     * Details on the various billing aspects for the product system.
     */
    @JsonProperty(value = "billingMeterDetails", access = JsonProperty.Access.WRITE_ONLY)
    private List<BillingMeterDetails> billingMeterDetails;

    /*
     * Default url to display billing information
     */
    @JsonProperty(value = "billingInfoUrl", access = JsonProperty.Access.WRITE_ONLY)
    private String billingInfoUrl;

    /**
     * Get the billingMeterDetails property: Details on the various billing aspects for the product system.
     *
     * @return the billingMeterDetails value.
     */
    public List<BillingMeterDetails> billingMeterDetails() {
        return this.billingMeterDetails;
    }

    /**
     * Get the billingInfoUrl property: Default url to display billing information.
     *
     * @return the billingInfoUrl value.
     */
    public String billingInfoUrl() {
        return this.billingInfoUrl;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (billingMeterDetails() != null) {
            billingMeterDetails().forEach(e -> e.validate());
        }
    }
}
