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

package com.azure.resourcemanager.billingbenefits.models;

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

/** The RenewProperties model. */
@Fluent
public final class RenewProperties {
    /*
     * The purchaseProperties property.
     */
    @JsonProperty(value = "purchaseProperties")
    private PurchaseRequest purchaseProperties;

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

    /**
     * Get the purchaseProperties property: The purchaseProperties property.
     *
     * @return the purchaseProperties value.
     */
    public PurchaseRequest purchaseProperties() {
        return this.purchaseProperties;
    }

    /**
     * Set the purchaseProperties property: The purchaseProperties property.
     *
     * @param purchaseProperties the purchaseProperties value to set.
     * @return the RenewProperties object itself.
     */
    public RenewProperties withPurchaseProperties(PurchaseRequest purchaseProperties) {
        this.purchaseProperties = purchaseProperties;
        return this;
    }

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