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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.automation.models.JobStreamType;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Map;

/** Definition of the job stream. */
@Fluent
public final class JobStreamProperties {
    /*
     * Gets or sets the id of the job stream.
     */
    @JsonProperty(value = "jobStreamId")
    private String jobStreamId;

    /*
     * Gets or sets the creation time of the job.
     */
    @JsonProperty(value = "time")
    private OffsetDateTime time;

    /*
     * Gets or sets the stream type.
     */
    @JsonProperty(value = "streamType")
    private JobStreamType streamType;

    /*
     * Gets or sets the stream text.
     */
    @JsonProperty(value = "streamText")
    private String streamText;

    /*
     * Gets or sets the summary.
     */
    @JsonProperty(value = "summary")
    private String summary;

    /*
     * Gets or sets the values of the job stream.
     */
    @JsonProperty(value = "value")
    @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
    private Map<String, Object> value;

    /**
     * Get the jobStreamId property: Gets or sets the id of the job stream.
     *
     * @return the jobStreamId value.
     */
    public String jobStreamId() {
        return this.jobStreamId;
    }

    /**
     * Set the jobStreamId property: Gets or sets the id of the job stream.
     *
     * @param jobStreamId the jobStreamId value to set.
     * @return the JobStreamProperties object itself.
     */
    public JobStreamProperties withJobStreamId(String jobStreamId) {
        this.jobStreamId = jobStreamId;
        return this;
    }

    /**
     * Get the time property: Gets or sets the creation time of the job.
     *
     * @return the time value.
     */
    public OffsetDateTime time() {
        return this.time;
    }

    /**
     * Set the time property: Gets or sets the creation time of the job.
     *
     * @param time the time value to set.
     * @return the JobStreamProperties object itself.
     */
    public JobStreamProperties withTime(OffsetDateTime time) {
        this.time = time;
        return this;
    }

    /**
     * Get the streamType property: Gets or sets the stream type.
     *
     * @return the streamType value.
     */
    public JobStreamType streamType() {
        return this.streamType;
    }

    /**
     * Set the streamType property: Gets or sets the stream type.
     *
     * @param streamType the streamType value to set.
     * @return the JobStreamProperties object itself.
     */
    public JobStreamProperties withStreamType(JobStreamType streamType) {
        this.streamType = streamType;
        return this;
    }

    /**
     * Get the streamText property: Gets or sets the stream text.
     *
     * @return the streamText value.
     */
    public String streamText() {
        return this.streamText;
    }

    /**
     * Set the streamText property: Gets or sets the stream text.
     *
     * @param streamText the streamText value to set.
     * @return the JobStreamProperties object itself.
     */
    public JobStreamProperties withStreamText(String streamText) {
        this.streamText = streamText;
        return this;
    }

    /**
     * Get the summary property: Gets or sets the summary.
     *
     * @return the summary value.
     */
    public String summary() {
        return this.summary;
    }

    /**
     * Set the summary property: Gets or sets the summary.
     *
     * @param summary the summary value to set.
     * @return the JobStreamProperties object itself.
     */
    public JobStreamProperties withSummary(String summary) {
        this.summary = summary;
        return this;
    }

    /**
     * Get the value property: Gets or sets the values of the job stream.
     *
     * @return the value value.
     */
    public Map<String, Object> value() {
        return this.value;
    }

    /**
     * Set the value property: Gets or sets the values of the job stream.
     *
     * @param value the value value to set.
     * @return the JobStreamProperties object itself.
     */
    public JobStreamProperties withValue(Map<String, Object> value) {
        this.value = value;
        return this;
    }

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