// 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;

/** Refund policy result. */
@Fluent
public final class RefundPolicyResult {
    /*
     * Refund policy result property
     */
    @JsonProperty(value = "properties")
    private RefundPolicyResultProperty properties;

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

    /**
     * Get the properties property: Refund policy result property.
     *
     * @return the properties value.
     */
    public RefundPolicyResultProperty properties() {
        return this.properties;
    }

    /**
     * Set the properties property: Refund policy result property.
     *
     * @param properties the properties value to set.
     * @return the RefundPolicyResult object itself.
     */
    public RefundPolicyResult withProperties(RefundPolicyResultProperty properties) {
        this.properties = properties;
        return this;
    }

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