LiveTraceCategory Class

  • java.lang.Object
    • com.azure.resourcemanager.signalr.models.LiveTraceCategory

Implements

public final class LiveTraceCategory
implements JsonSerializable<LiveTraceCategory>

Live trace category configuration of a Microsoft.SignalRService resource.

Constructor Summary

Constructor Description
LiveTraceCategory()

Creates an instance of LiveTraceCategory class.

Method Summary

Modifier and Type Method and Description
String enabled()

Get the enabled property: Indicates whether or the live trace category is enabled.

static LiveTraceCategory fromJson(JsonReader jsonReader)

Reads an instance of LiveTraceCategory from the JsonReader.

String name()

Get the name property: Gets or sets the live trace category's name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LiveTraceCategory withEnabled(String enabled)

Set the enabled property: Indicates whether or the live trace category is enabled.

LiveTraceCategory withName(String name)

Set the name property: Gets or sets the live trace category's name.

Methods inherited from java.lang.Object

Constructor Details

LiveTraceCategory

public LiveTraceCategory()

Creates an instance of LiveTraceCategory class.

Method Details

enabled

public String enabled()

Get the enabled property: Indicates whether or the live trace category is enabled. Available values: true, false. Case insensitive.

Returns:

the enabled value.

fromJson

public static LiveTraceCategory fromJson(JsonReader jsonReader)

Reads an instance of LiveTraceCategory from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Gets or sets the live trace category's name. Available values: ConnectivityLogs, MessagingLogs. Case insensitive.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public LiveTraceCategory withEnabled(String enabled)

Set the enabled property: Indicates whether or the live trace category is enabled. Available values: true, false. Case insensitive.

Parameters:

enabled - the enabled value to set.

Returns:

the LiveTraceCategory object itself.

withName

public LiveTraceCategory withName(String name)

Set the name property: Gets or sets the live trace category's name. Available values: ConnectivityLogs, MessagingLogs. Case insensitive.

Parameters:

name - the name value to set.

Returns:

the LiveTraceCategory object itself.

Applies to