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

package com.azure.resourcemanager.devcenter.models;

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

/** Image reference information. */
@Fluent
public final class ImageReference {
    /*
     * Image ID, or Image version ID. When Image ID is provided, its latest version will be used.
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * The actual version of the image after use. When id references a gallery image latest version, this will indicate
     * the actual version in use.
     */
    @JsonProperty(value = "exactVersion", access = JsonProperty.Access.WRITE_ONLY)
    private String exactVersion;

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

    /**
     * Get the id property: Image ID, or Image version ID. When Image ID is provided, its latest version will be used.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: Image ID, or Image version ID. When Image ID is provided, its latest version will be used.
     *
     * @param id the id value to set.
     * @return the ImageReference object itself.
     */
    public ImageReference withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the exactVersion property: The actual version of the image after use. When id references a gallery image
     * latest version, this will indicate the actual version in use.
     *
     * @return the exactVersion value.
     */
    public String exactVersion() {
        return this.exactVersion;
    }

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