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

package com.azure.resourcemanager.billing.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.billing.models.ViewCharges;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The properties of a customer's policy. */
@Fluent
public final class CustomerPolicyProperties {
    /*
     * The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices.
     */
    @JsonProperty(value = "viewCharges")
    private ViewCharges viewCharges;

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

    /**
     * Get the viewCharges property: The policy that controls whether the users in customer's organization can view
     * charges at pay-as-you-go prices.
     *
     * @return the viewCharges value.
     */
    public ViewCharges viewCharges() {
        return this.viewCharges;
    }

    /**
     * Set the viewCharges property: The policy that controls whether the users in customer's organization can view
     * charges at pay-as-you-go prices.
     *
     * @param viewCharges the viewCharges value to set.
     * @return the CustomerPolicyProperties object itself.
     */
    public CustomerPolicyProperties withViewCharges(ViewCharges viewCharges) {
        this.viewCharges = viewCharges;
        return this;
    }

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