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

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

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

/** Represents ValidateBackup API Response. */
@Fluent
public final class ValidateBackupResponseInner {
    /*
     * The response properties of a pre backup operation.
     */
    @JsonProperty(value = "properties")
    private ValidateBackupResponseProperties innerProperties;

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

    /**
     * Get the innerProperties property: The response properties of a pre backup operation.
     *
     * @return the innerProperties value.
     */
    private ValidateBackupResponseProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
     * up.
     *
     * @return the numberOfContainers value.
     */
    public Integer numberOfContainers() {
        return this.innerProperties() == null ? null : this.innerProperties().numberOfContainers();
    }

    /**
     * Set the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
     * up.
     *
     * @param numberOfContainers the numberOfContainers value to set.
     * @return the ValidateBackupResponseInner object itself.
     */
    public ValidateBackupResponseInner withNumberOfContainers(Integer numberOfContainers) {
        if (this.innerProperties() == null) {
            this.innerProperties = new ValidateBackupResponseProperties();
        }
        this.innerProperties().withNumberOfContainers(numberOfContainers);
        return this;
    }

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