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

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** The Time interval that the query actually executed on. */
@Fluent
public final class EntityInsightItemQueryTimeInterval {
    /*
     * Insight query start time
     */
    @JsonProperty(value = "startTime")
    private OffsetDateTime startTime;

    /*
     * Insight query end time
     */
    @JsonProperty(value = "endTime")
    private OffsetDateTime endTime;

    /**
     * Get the startTime property: Insight query start time.
     *
     * @return the startTime value.
     */
    public OffsetDateTime startTime() {
        return this.startTime;
    }

    /**
     * Set the startTime property: Insight query start time.
     *
     * @param startTime the startTime value to set.
     * @return the EntityInsightItemQueryTimeInterval object itself.
     */
    public EntityInsightItemQueryTimeInterval withStartTime(OffsetDateTime startTime) {
        this.startTime = startTime;
        return this;
    }

    /**
     * Get the endTime property: Insight query end time.
     *
     * @return the endTime value.
     */
    public OffsetDateTime endTime() {
        return this.endTime;
    }

    /**
     * Set the endTime property: Insight query end time.
     *
     * @param endTime the endTime value to set.
     * @return the EntityInsightItemQueryTimeInterval object itself.
     */
    public EntityInsightItemQueryTimeInterval withEndTime(OffsetDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

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