// 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.StreamType;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Definition of source control sync job stream properties. */
@Fluent
public final class SourceControlSyncJobStreamProperties {
    /*
     * The sync job stream id.
     */
    @JsonProperty(value = "sourceControlSyncJobStreamId")
    private String sourceControlSyncJobStreamId;

    /*
     * The summary of the sync job stream.
     */
    @JsonProperty(value = "summary")
    private String summary;

    /*
     * The time of the sync job stream.
     */
    @JsonProperty(value = "time", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime time;

    /*
     * The type of the sync job stream.
     */
    @JsonProperty(value = "streamType")
    private StreamType streamType;

    /**
     * Get the sourceControlSyncJobStreamId property: The sync job stream id.
     *
     * @return the sourceControlSyncJobStreamId value.
     */
    public String sourceControlSyncJobStreamId() {
        return this.sourceControlSyncJobStreamId;
    }

    /**
     * Set the sourceControlSyncJobStreamId property: The sync job stream id.
     *
     * @param sourceControlSyncJobStreamId the sourceControlSyncJobStreamId value to set.
     * @return the SourceControlSyncJobStreamProperties object itself.
     */
    public SourceControlSyncJobStreamProperties withSourceControlSyncJobStreamId(String sourceControlSyncJobStreamId) {
        this.sourceControlSyncJobStreamId = sourceControlSyncJobStreamId;
        return this;
    }

    /**
     * Get the summary property: The summary of the sync job stream.
     *
     * @return the summary value.
     */
    public String summary() {
        return this.summary;
    }

    /**
     * Set the summary property: The summary of the sync job stream.
     *
     * @param summary the summary value to set.
     * @return the SourceControlSyncJobStreamProperties object itself.
     */
    public SourceControlSyncJobStreamProperties withSummary(String summary) {
        this.summary = summary;
        return this;
    }

    /**
     * Get the time property: The time of the sync job stream.
     *
     * @return the time value.
     */
    public OffsetDateTime time() {
        return this.time;
    }

    /**
     * Get the streamType property: The type of the sync job stream.
     *
     * @return the streamType value.
     */
    public StreamType streamType() {
        return this.streamType;
    }

    /**
     * Set the streamType property: The type of the sync job stream.
     *
     * @param streamType the streamType value to set.
     * @return the SourceControlSyncJobStreamProperties object itself.
     */
    public SourceControlSyncJobStreamProperties withStreamType(StreamType streamType) {
        this.streamType = streamType;
        return this;
    }

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