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

package com.azure.resourcemanager.timeseriesinsights.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.timeseriesinsights.models.IngressStartAtType;
import com.fasterxml.jackson.annotation.JsonProperty;

/** An object that contains the details about the starting point in time to ingest events. */
@Fluent
public final class IngressStartAtProperties {
    /*
     * The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".
     */
    @JsonProperty(value = "type")
    private IngressStartAtType type;

    /*
     * ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will
     * be the starting point for Events to be consumed.
     */
    @JsonProperty(value = "time")
    private String time;

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

    /**
     * Get the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime",
     * "CustomEnqueuedTime".
     *
     * @return the type value.
     */
    public IngressStartAtType type() {
        return this.type;
    }

    /**
     * Set the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime",
     * "CustomEnqueuedTime".
     *
     * @param type the type value to set.
     * @return the IngressStartAtProperties object itself.
     */
    public IngressStartAtProperties withType(IngressStartAtType type) {
        this.type = type;
        return this;
    }

    /**
     * Get the time property: ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the
     * date and time that will be the starting point for Events to be consumed.
     *
     * @return the time value.
     */
    public String time() {
        return this.time;
    }

    /**
     * Set the time property: ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the
     * date and time that will be the starting point for Events to be consumed.
     *
     * @param time the time value to set.
     * @return the IngressStartAtProperties object itself.
     */
    public IngressStartAtProperties withTime(String time) {
        this.time = time;
        return this;
    }

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