// 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 com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Billing type Purchase meter details. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "billingType")
@JsonTypeName("Purchase")
@Immutable
public final class PurchaseMeterDetails extends MeterDetails {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(PurchaseMeterDetails.class);

    /*
     * Product Id
     */
    @JsonProperty(value = "productId", access = JsonProperty.Access.WRITE_ONLY)
    private String productId;

    /*
     * Sku Id
     */
    @JsonProperty(value = "skuId", access = JsonProperty.Access.WRITE_ONLY)
    private String skuId;

    /*
     * Term Id
     */
    @JsonProperty(value = "termId", access = JsonProperty.Access.WRITE_ONLY)
    private String termId;

    /**
     * Get the productId property: Product Id.
     *
     * @return the productId value.
     */
    public String productId() {
        return this.productId;
    }

    /**
     * Get the skuId property: Sku Id.
     *
     * @return the skuId value.
     */
    public String skuId() {
        return this.skuId;
    }

    /**
     * Get the termId property: Term Id.
     *
     * @return the termId value.
     */
    public String termId() {
        return this.termId;
    }

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