Class SourceControlSyncJobStreamProperties

java.lang.Object
com.azure.resourcemanager.automation.fluent.models.SourceControlSyncJobStreamProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceControlSyncJobStreamProperties>

public final class SourceControlSyncJobStreamProperties extends Object implements com.azure.json.JsonSerializable<SourceControlSyncJobStreamProperties>
Definition of source control sync job stream properties.
  • Constructor Details

    • SourceControlSyncJobStreamProperties

      public SourceControlSyncJobStreamProperties()
      Creates an instance of SourceControlSyncJobStreamProperties class.
  • Method Details

    • sourceControlSyncJobStreamId

      public String sourceControlSyncJobStreamId()
      Get the sourceControlSyncJobStreamId property: The sync job stream id.
      Returns:
      the sourceControlSyncJobStreamId value.
    • withSourceControlSyncJobStreamId

      public SourceControlSyncJobStreamProperties withSourceControlSyncJobStreamId(String sourceControlSyncJobStreamId)
      Set the sourceControlSyncJobStreamId property: The sync job stream id.
      Parameters:
      sourceControlSyncJobStreamId - the sourceControlSyncJobStreamId value to set.
      Returns:
      the SourceControlSyncJobStreamProperties object itself.
    • summary

      public String summary()
      Get the summary property: The summary of the sync job stream.
      Returns:
      the summary value.
    • withSummary

      public SourceControlSyncJobStreamProperties withSummary(String summary)
      Set the summary property: The summary of the sync job stream.
      Parameters:
      summary - the summary value to set.
      Returns:
      the SourceControlSyncJobStreamProperties object itself.
    • time

      public OffsetDateTime time()
      Get the time property: The time of the sync job stream.
      Returns:
      the time value.
    • streamType

      public StreamType streamType()
      Get the streamType property: The type of the sync job stream.
      Returns:
      the streamType value.
    • withStreamType

      public SourceControlSyncJobStreamProperties withStreamType(StreamType streamType)
      Set the streamType property: The type of the sync job stream.
      Parameters:
      streamType - the streamType value to set.
      Returns:
      the SourceControlSyncJobStreamProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SourceControlSyncJobStreamProperties>
      Throws:
      IOException
    • fromJson

      public static SourceControlSyncJobStreamProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SourceControlSyncJobStreamProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SourceControlSyncJobStreamProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SourceControlSyncJobStreamProperties.