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

package com.azure.resourcemanager.networkcloud.models;

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

/** AgentOptions are configurations that will be applied to each agent in an agent pool. */
@Fluent
public final class AgentOptions {
    /*
     * The number of hugepages to allocate.
     */
    @JsonProperty(value = "hugepagesCount", required = true)
    private long hugepagesCount;

    /*
     * The size of the hugepages to allocate.
     */
    @JsonProperty(value = "hugepagesSize")
    private HugepagesSize hugepagesSize;

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

    /**
     * Get the hugepagesCount property: The number of hugepages to allocate.
     *
     * @return the hugepagesCount value.
     */
    public long hugepagesCount() {
        return this.hugepagesCount;
    }

    /**
     * Set the hugepagesCount property: The number of hugepages to allocate.
     *
     * @param hugepagesCount the hugepagesCount value to set.
     * @return the AgentOptions object itself.
     */
    public AgentOptions withHugepagesCount(long hugepagesCount) {
        this.hugepagesCount = hugepagesCount;
        return this;
    }

    /**
     * Get the hugepagesSize property: The size of the hugepages to allocate.
     *
     * @return the hugepagesSize value.
     */
    public HugepagesSize hugepagesSize() {
        return this.hugepagesSize;
    }

    /**
     * Set the hugepagesSize property: The size of the hugepages to allocate.
     *
     * @param hugepagesSize the hugepagesSize value to set.
     * @return the AgentOptions object itself.
     */
    public AgentOptions withHugepagesSize(HugepagesSize hugepagesSize) {
        this.hugepagesSize = hugepagesSize;
        return this;
    }

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