Class ProcessThreadInfoProperties
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.ProcessThreadInfoProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProcessThreadInfoProperties>
public final class ProcessThreadInfoProperties
extends Object
implements com.azure.json.JsonSerializable<ProcessThreadInfoProperties>
ProcessThreadInfo resource specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ProcessThreadInfoProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the basePriority property: Base priority.Get the currentPriority property: Current thread priority.static ProcessThreadInfoProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ProcessThreadInfoProperties from the JsonReader.href()
Get the href property: HRef URI.Get the identifier property: Site extension ID.Get the priorityLevel property: Thread priority level.process()
Get the process property: Process URI.Get the startAddress property: Start address.Get the startTime property: Start time.state()
Get the state property: Thread state.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the totalProcessorTime property: Total processor time.Get the userProcessorTime property: User processor time.void
validate()
Validates the instance.Get the waitReason property: Wait reason.withBasePriority
(Integer basePriority) Set the basePriority property: Base priority.withCurrentPriority
(Integer currentPriority) Set the currentPriority property: Current thread priority.Set the href property: HRef URI.withPriorityLevel
(String priorityLevel) Set the priorityLevel property: Thread priority level.withProcess
(String process) Set the process property: Process URI.withStartAddress
(String startAddress) Set the startAddress property: Start address.withStartTime
(OffsetDateTime startTime) Set the startTime property: Start time.Set the state property: Thread state.withTotalProcessorTime
(String totalProcessorTime) Set the totalProcessorTime property: Total processor time.withUserProcessorTime
(String userProcessorTime) Set the userProcessorTime property: User processor time.withWaitReason
(String waitReason) Set the waitReason property: Wait reason.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
-
ProcessThreadInfoProperties
public ProcessThreadInfoProperties()Creates an instance of ProcessThreadInfoProperties class.
-
-
Method Details
-
identifier
Get the identifier property: Site extension ID.- Returns:
- the identifier value.
-
href
Get the href property: HRef URI.- Returns:
- the href value.
-
withHref
Set the href property: HRef URI.- Parameters:
href
- the href value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
process
Get the process property: Process URI.- Returns:
- the process value.
-
withProcess
Set the process property: Process URI.- Parameters:
process
- the process value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
startAddress
Get the startAddress property: Start address.- Returns:
- the startAddress value.
-
withStartAddress
Set the startAddress property: Start address.- Parameters:
startAddress
- the startAddress value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
currentPriority
Get the currentPriority property: Current thread priority.- Returns:
- the currentPriority value.
-
withCurrentPriority
Set the currentPriority property: Current thread priority.- Parameters:
currentPriority
- the currentPriority value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
priorityLevel
Get the priorityLevel property: Thread priority level.- Returns:
- the priorityLevel value.
-
withPriorityLevel
Set the priorityLevel property: Thread priority level.- Parameters:
priorityLevel
- the priorityLevel value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
basePriority
Get the basePriority property: Base priority.- Returns:
- the basePriority value.
-
withBasePriority
Set the basePriority property: Base priority.- Parameters:
basePriority
- the basePriority value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
startTime
Get the startTime property: Start time.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Start time.- Parameters:
startTime
- the startTime value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
totalProcessorTime
Get the totalProcessorTime property: Total processor time.- Returns:
- the totalProcessorTime value.
-
withTotalProcessorTime
Set the totalProcessorTime property: Total processor time.- Parameters:
totalProcessorTime
- the totalProcessorTime value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
userProcessorTime
Get the userProcessorTime property: User processor time.- Returns:
- the userProcessorTime value.
-
withUserProcessorTime
Set the userProcessorTime property: User processor time.- Parameters:
userProcessorTime
- the userProcessorTime value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
state
Get the state property: Thread state.- Returns:
- the state value.
-
withState
Set the state property: Thread state.- Parameters:
state
- the state value to set.- Returns:
- the ProcessThreadInfoProperties object itself.
-
waitReason
Get the waitReason property: Wait reason.- Returns:
- the waitReason value.
-
withWaitReason
Set the waitReason property: Wait reason.- Parameters:
waitReason
- the waitReason value to set.- Returns:
- the ProcessThreadInfoProperties 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<ProcessThreadInfoProperties>
- Throws:
IOException
-
fromJson
public static ProcessThreadInfoProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ProcessThreadInfoProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ProcessThreadInfoProperties 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 ProcessThreadInfoProperties.
-