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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JobStreamProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobStreamProperties from the JsonReader.Get the jobStreamId property: Gets or sets the id of the job stream.Get the streamText property: Gets or sets the stream text.Get the streamType property: Gets or sets the stream type.summary()
Get the summary property: Gets or sets the summary.time()
Get the time property: Gets or sets the creation time of the job.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.value()
Get the value property: Gets or sets the values of the job stream.withJobStreamId
(String jobStreamId) Set the jobStreamId property: Gets or sets the id of the job stream.withStreamText
(String streamText) Set the streamText property: Gets or sets the stream text.withStreamType
(JobStreamType streamType) Set the streamType property: Gets or sets the stream type.withSummary
(String summary) Set the summary property: Gets or sets the summary.withTime
(OffsetDateTime time) Set the time property: Gets or sets the creation time of the job.Set the value property: Gets or sets the values of the job stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobStreamProperties
public JobStreamProperties()Creates an instance of JobStreamProperties class.
-
-
Method Details
-
jobStreamId
Get the jobStreamId property: Gets or sets the id of the job stream.- Returns:
- the jobStreamId value.
-
withJobStreamId
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
Get the time property: Gets or sets the creation time of the job.- Returns:
- the time value.
-
withTime
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
Get the streamType property: Gets or sets the stream type.- Returns:
- the streamType value.
-
withStreamType
Set the streamType property: Gets or sets the stream type.- Parameters:
streamType
- the streamType value to set.- Returns:
- the JobStreamProperties object itself.
-
streamText
Get the streamText property: Gets or sets the stream text.- Returns:
- the streamText value.
-
withStreamText
Set the streamText property: Gets or sets the stream text.- Parameters:
streamText
- the streamText value to set.- Returns:
- the JobStreamProperties object itself.
-
summary
Get the summary property: Gets or sets the summary.- Returns:
- the summary value.
-
withSummary
Set the summary property: Gets or sets the summary.- Parameters:
summary
- the summary value to set.- Returns:
- the JobStreamProperties object itself.
-
value
Get the value property: Gets or sets the values of the job stream.- Returns:
- the value value.
-
withValue
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<JobStreamProperties>
- Throws:
IOException
-
fromJson
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.
-