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

package com.azure.resourcemanager.avs.models;

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

/** The properties of a vSphere Replication (VR) addon. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "addonType")
@JsonTypeName("VR")
@Fluent
public final class AddonVrProperties extends AddonProperties {
    /*
     * The vSphere Replication Server (VRS) count
     */
    @JsonProperty(value = "vrsCount", required = true)
    private int vrsCount;

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

    /**
     * Get the vrsCount property: The vSphere Replication Server (VRS) count.
     *
     * @return the vrsCount value.
     */
    public int vrsCount() {
        return this.vrsCount;
    }

    /**
     * Set the vrsCount property: The vSphere Replication Server (VRS) count.
     *
     * @param vrsCount the vrsCount value to set.
     * @return the AddonVrProperties object itself.
     */
    public AddonVrProperties withVrsCount(int vrsCount) {
        this.vrsCount = vrsCount;
        return this;
    }

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