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

package com.azure.resourcemanager.reservations.models;

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

/** The PatchPropertiesRenewProperties model. */
@Fluent
public final class PatchPropertiesRenewProperties {
    /*
     * The request for reservation purchase
     */
    @JsonProperty(value = "purchaseProperties")
    private PurchaseRequest purchaseProperties;

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

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

    /**
     * Set the purchaseProperties property: The request for reservation purchase.
     *
     * @param purchaseProperties the purchaseProperties value to set.
     * @return the PatchPropertiesRenewProperties object itself.
     */
    public PatchPropertiesRenewProperties 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();
        }
    }
}
