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

package com.azure.resourcemanager.imagebuilder.models;

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

/** Optimization is applied on the image for a faster VM boot. */
@Fluent
public final class ImageTemplatePropertiesOptimizeVmBoot {
    /*
     * Enabling this field will improve VM boot time by optimizing the final customized image output.
     */
    @JsonProperty(value = "state")
    private VMBootOptimizationState state;

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

    /**
     * Get the state property: Enabling this field will improve VM boot time by optimizing the final customized image
     * output.
     *
     * @return the state value.
     */
    public VMBootOptimizationState state() {
        return this.state;
    }

    /**
     * Set the state property: Enabling this field will improve VM boot time by optimizing the final customized image
     * output.
     *
     * @param state the state value to set.
     * @return the ImageTemplatePropertiesOptimizeVmBoot object itself.
     */
    public ImageTemplatePropertiesOptimizeVmBoot withState(VMBootOptimizationState state) {
        this.state = state;
        return this;
    }

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