Class DiagnosticParameters
java.lang.Object
com.azure.resourcemanager.appplatform.models.DiagnosticParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiagnosticParameters>
public final class DiagnosticParameters
extends Object
implements com.azure.json.JsonSerializable<DiagnosticParameters>
Diagnostic parameters of diagnostic operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the appInstance property: App instance name.duration()Get the duration property: Duration of your JFR. 1 min can be represented by 1m or 60s.filePath()Get the filePath property: Your target file path in your own BYOS.static DiagnosticParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiagnosticParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAppInstance(String appInstance) Set the appInstance property: App instance name.withDuration(String duration) Set the duration property: Duration of your JFR. 1 min can be represented by 1m or 60s.withFilePath(String filePath) Set the filePath property: Your target file path in your own BYOS.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DiagnosticParameters
public DiagnosticParameters()Creates an instance of DiagnosticParameters class.
-
-
Method Details
-
appInstance
Get the appInstance property: App instance name.- Returns:
- the appInstance value.
-
withAppInstance
Set the appInstance property: App instance name.- Parameters:
appInstance- the appInstance value to set.- Returns:
- the DiagnosticParameters object itself.
-
filePath
Get the filePath property: Your target file path in your own BYOS.- Returns:
- the filePath value.
-
withFilePath
Set the filePath property: Your target file path in your own BYOS.- Parameters:
filePath- the filePath value to set.- Returns:
- the DiagnosticParameters object itself.
-
duration
Get the duration property: Duration of your JFR. 1 min can be represented by 1m or 60s.- Returns:
- the duration value.
-
withDuration
Set the duration property: Duration of your JFR. 1 min can be represented by 1m or 60s.- Parameters:
duration- the duration value to set.- Returns:
- the DiagnosticParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiagnosticParameters>- Throws:
IOException
-
fromJson
public static DiagnosticParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiagnosticParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiagnosticParameters 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 DiagnosticParameters.
-