Class JobStreamProperties

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

public final class JobStreamProperties extends Object implements com.azure.json.JsonSerializable<JobStreamProperties>
Definition of the job stream.
  • Constructor Details

    • JobStreamProperties

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

    • jobStreamId

      public String jobStreamId()
      Get the jobStreamId property: Gets or sets the id of the job stream.
      Returns:
      the jobStreamId value.
    • withJobStreamId

      public JobStreamProperties withJobStreamId(String jobStreamId)
      Set the jobStreamId property: Gets or sets the id of the job stream.
      Parameters:
      jobStreamId - the jobStreamId value to set.
      Returns:
      the JobStreamProperties object itself.
    • time

      public OffsetDateTime time()
      Get the time property: Gets or sets the creation time of the job.
      Returns:
      the time value.
    • withTime

      public JobStreamProperties withTime(OffsetDateTime time)
      Set the time property: Gets or sets the creation time of the job.
      Parameters:
      time - the time value to set.
      Returns:
      the JobStreamProperties object itself.
    • streamType

      public JobStreamType streamType()
      Get the streamType property: Gets or sets the stream type.
      Returns:
      the streamType value.
    • withStreamType

      public JobStreamProperties withStreamType(JobStreamType streamType)
      Set the streamType property: Gets or sets the stream type.
      Parameters:
      streamType - the streamType value to set.
      Returns:
      the JobStreamProperties object itself.
    • streamText

      public String streamText()
      Get the streamText property: Gets or sets the stream text.
      Returns:
      the streamText value.
    • withStreamText

      public JobStreamProperties withStreamText(String streamText)
      Set the streamText property: Gets or sets the stream text.
      Parameters:
      streamText - the streamText value to set.
      Returns:
      the JobStreamProperties object itself.
    • summary

      public String summary()
      Get the summary property: Gets or sets the summary.
      Returns:
      the summary value.
    • withSummary

      public JobStreamProperties withSummary(String summary)
      Set the summary property: Gets or sets the summary.
      Parameters:
      summary - the summary value to set.
      Returns:
      the JobStreamProperties object itself.
    • value

      public Map<String,Object> value()
      Get the value property: Gets or sets the values of the job stream.
      Returns:
      the value value.
    • withValue

      public JobStreamProperties withValue(Map<String,Object> value)
      Set the value property: Gets or sets the values of the job stream.
      Parameters:
      value - the value value to set.
      Returns:
      the JobStreamProperties 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<JobStreamProperties>
      Throws:
      IOException
    • fromJson

      public static JobStreamProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JobStreamProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JobStreamProperties 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 JobStreamProperties.