// 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;

/** The insight chart query. */
@Fluent
public final class InsightQueryItemPropertiesDefaultTimeRange {
    /*
     * The padding for the start time of the query.
     */
    @JsonProperty(value = "beforeRange")
    private String beforeRange;

    /*
     * The padding for the end time of the query.
     */
    @JsonProperty(value = "afterRange")
    private String afterRange;

    /**
     * Get the beforeRange property: The padding for the start time of the query.
     *
     * @return the beforeRange value.
     */
    public String beforeRange() {
        return this.beforeRange;
    }

    /**
     * Set the beforeRange property: The padding for the start time of the query.
     *
     * @param beforeRange the beforeRange value to set.
     * @return the InsightQueryItemPropertiesDefaultTimeRange object itself.
     */
    public InsightQueryItemPropertiesDefaultTimeRange withBeforeRange(String beforeRange) {
        this.beforeRange = beforeRange;
        return this;
    }

    /**
     * Get the afterRange property: The padding for the end time of the query.
     *
     * @return the afterRange value.
     */
    public String afterRange() {
        return this.afterRange;
    }

    /**
     * Set the afterRange property: The padding for the end time of the query.
     *
     * @param afterRange the afterRange value to set.
     * @return the InsightQueryItemPropertiesDefaultTimeRange object itself.
     */
    public InsightQueryItemPropertiesDefaultTimeRange withAfterRange(String afterRange) {
        this.afterRange = afterRange;
        return this;
    }

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