DiagnosticParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.DiagnosticParameters

Implements

public final class DiagnosticParameters
implements JsonSerializable<DiagnosticParameters>

Diagnostic parameters of diagnostic operations.

Constructor Summary

Constructor Description
DiagnosticParameters()

Creates an instance of DiagnosticParameters class.

Method Summary

Modifier and Type Method and Description
String appInstance()

Get the appInstance property: App instance name.

String duration()

Get the duration property: Duration of your JFR.

String filePath()

Get the filePath property: Your target file path in your own BYOS.

static DiagnosticParameters fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticParameters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiagnosticParameters withAppInstance(String appInstance)

Set the appInstance property: App instance name.

DiagnosticParameters withDuration(String duration)

Set the duration property: Duration of your JFR.

DiagnosticParameters withFilePath(String filePath)

Set the filePath property: Your target file path in your own BYOS.

Methods inherited from java.lang.Object

Constructor Details

DiagnosticParameters

public DiagnosticParameters()

Creates an instance of DiagnosticParameters class.

Method Details

appInstance

public String appInstance()

Get the appInstance property: App instance name.

Returns:

the appInstance value.

duration

public String duration()

Get the duration property: Duration of your JFR. 1 min can be represented by 1m or 60s.

Returns:

the duration value.

filePath

public String filePath()

Get the filePath property: Your target file path in your own BYOS.

Returns:

the filePath value.

fromJson

public static DiagnosticParameters fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAppInstance

public DiagnosticParameters withAppInstance(String appInstance)

Set the appInstance property: App instance name.

Parameters:

appInstance - the appInstance value to set.

Returns:

the DiagnosticParameters object itself.

withDuration

public DiagnosticParameters withDuration(String duration)

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.

withFilePath

public DiagnosticParameters withFilePath(String filePath)

Set the filePath property: Your target file path in your own BYOS.

Parameters:

filePath - the filePath value to set.

Returns:

the DiagnosticParameters object itself.

Applies to

Azure SDK for Java

Latest