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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPoint;
import com.azure.resourcemanager.dataprotection.models.DppResource;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * AzureBackupRecoveryPointResource
 *
 * <p>Azure backup recoveryPoint resource.
 */
@Fluent
public final class AzureBackupRecoveryPointResourceInner extends DppResource {
    /*
     * AzureBackupRecoveryPoint
     *
     * AzureBackupRecoveryPointResource properties
     */
    @JsonProperty(value = "properties")
    private AzureBackupRecoveryPoint properties;

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

    /**
     * Get the properties property: AzureBackupRecoveryPoint
     *
     * <p>AzureBackupRecoveryPointResource properties.
     *
     * @return the properties value.
     */
    public AzureBackupRecoveryPoint properties() {
        return this.properties;
    }

    /**
     * Set the properties property: AzureBackupRecoveryPoint
     *
     * <p>AzureBackupRecoveryPointResource properties.
     *
     * @param properties the properties value to set.
     * @return the AzureBackupRecoveryPointResourceInner object itself.
     */
    public AzureBackupRecoveryPointResourceInner withProperties(AzureBackupRecoveryPoint properties) {
        this.properties = properties;
        return this;
    }

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