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

package com.azure.resourcemanager.streamanalytics.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Parameters supplied to the Start Streaming Job operation. */
@Fluent
public final class StartStreamingJobParameters {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(StartStreamingJobParameters.class);

    /*
     * Value may be JobStartTime, CustomTime, or LastOutputEventTime to
     * indicate whether the starting point of the output event stream should
     * start whenever the job is started, start at a custom user time stamp
     * specified via the outputStartTime property, or start from the last event
     * output time.
     */
    @JsonProperty(value = "outputStartMode")
    private OutputStartMode outputStartMode;

    /*
     * Value is either an ISO-8601 formatted time stamp that indicates the
     * starting point of the output event stream, or null to indicate that the
     * output event stream will start whenever the streaming job is started.
     * This property must have a value if outputStartMode is set to CustomTime.
     */
    @JsonProperty(value = "outputStartTime")
    private OffsetDateTime outputStartTime;

    /**
     * Get the outputStartMode property: Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate
     * whether the starting point of the output event stream should start whenever the job is started, start at a custom
     * user time stamp specified via the outputStartTime property, or start from the last event output time.
     *
     * @return the outputStartMode value.
     */
    public OutputStartMode outputStartMode() {
        return this.outputStartMode;
    }

    /**
     * Set the outputStartMode property: Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate
     * whether the starting point of the output event stream should start whenever the job is started, start at a custom
     * user time stamp specified via the outputStartTime property, or start from the last event output time.
     *
     * @param outputStartMode the outputStartMode value to set.
     * @return the StartStreamingJobParameters object itself.
     */
    public StartStreamingJobParameters withOutputStartMode(OutputStartMode outputStartMode) {
        this.outputStartMode = outputStartMode;
        return this;
    }

    /**
     * Get the outputStartTime property: Value is either an ISO-8601 formatted time stamp that indicates the starting
     * point of the output event stream, or null to indicate that the output event stream will start whenever the
     * streaming job is started. This property must have a value if outputStartMode is set to CustomTime.
     *
     * @return the outputStartTime value.
     */
    public OffsetDateTime outputStartTime() {
        return this.outputStartTime;
    }

    /**
     * Set the outputStartTime property: Value is either an ISO-8601 formatted time stamp that indicates the starting
     * point of the output event stream, or null to indicate that the output event stream will start whenever the
     * streaming job is started. This property must have a value if outputStartMode is set to CustomTime.
     *
     * @param outputStartTime the outputStartTime value to set.
     * @return the StartStreamingJobParameters object itself.
     */
    public StartStreamingJobParameters withOutputStartTime(OffsetDateTime outputStartTime) {
        this.outputStartTime = outputStartTime;
        return this;
    }

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