RuntimeJavaAgent Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgent

Implements

public final class RuntimeJavaAgent
implements JsonSerializable<RuntimeJavaAgent>

Diagnostic capabilities achieved by java agent.

Constructor Summary

Constructor Description
RuntimeJavaAgent()

Creates an instance of RuntimeJavaAgent class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Enable java agent injection for the java app.

static RuntimeJavaAgent fromJson(JsonReader jsonReader)

Reads an instance of RuntimeJavaAgent from the JsonReader.

RuntimeJavaAgentLogging logging()

Get the logging property: Capabilities on the java logging scenario.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RuntimeJavaAgent withEnabled(Boolean enabled)

Set the enabled property: Enable java agent injection for the java app.

RuntimeJavaAgent withLogging(RuntimeJavaAgentLogging logging)

Set the logging property: Capabilities on the java logging scenario.

Methods inherited from java.lang.Object

Constructor Details

RuntimeJavaAgent

public RuntimeJavaAgent()

Creates an instance of RuntimeJavaAgent class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Enable java agent injection for the java app.

Returns:

the enabled value.

fromJson

public static RuntimeJavaAgent fromJson(JsonReader jsonReader)

Reads an instance of RuntimeJavaAgent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RuntimeJavaAgent 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 RuntimeJavaAgent.

logging

public RuntimeJavaAgentLogging logging()

Get the logging property: Capabilities on the java logging scenario.

Returns:

the logging value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public RuntimeJavaAgent withEnabled(Boolean enabled)

Set the enabled property: Enable java agent injection for the java app.

Parameters:

enabled - the enabled value to set.

Returns:

the RuntimeJavaAgent object itself.

withLogging

public RuntimeJavaAgent withLogging(RuntimeJavaAgentLogging logging)

Set the logging property: Capabilities on the java logging scenario.

Parameters:

logging - the logging value to set.

Returns:

the RuntimeJavaAgent object itself.

Applies to