Partager via


SelfTracing Class

  • java.lang.Object
    • com.azure.resourcemanager.iotoperations.models.SelfTracing

Implements

public final class SelfTracing
implements JsonSerializable<SelfTracing>

Diagnostic Self tracing properties.

Constructor Summary

Constructor Description
SelfTracing()

Creates an instance of SelfTracing class.

Method Summary

Modifier and Type Method and Description
static SelfTracing fromJson(JsonReader jsonReader)

Reads an instance of SelfTracing from the JsonReader.

Integer intervalSeconds()

Get the intervalSeconds property: The self tracing interval.

OperationalMode mode()

Get the mode property: The toggle to enable/disable self tracing.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SelfTracing withIntervalSeconds(Integer intervalSeconds)

Set the intervalSeconds property: The self tracing interval.

SelfTracing withMode(OperationalMode mode)

Set the mode property: The toggle to enable/disable self tracing.

Methods inherited from java.lang.Object

Constructor Details

SelfTracing

public SelfTracing()

Creates an instance of SelfTracing class.

Method Details

fromJson

public static SelfTracing fromJson(JsonReader jsonReader)

Reads an instance of SelfTracing from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

intervalSeconds

public Integer intervalSeconds()

Get the intervalSeconds property: The self tracing interval.

Returns:

the intervalSeconds value.

mode

public OperationalMode mode()

Get the mode property: The toggle to enable/disable self tracing.

Returns:

the mode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIntervalSeconds

public SelfTracing withIntervalSeconds(Integer intervalSeconds)

Set the intervalSeconds property: The self tracing interval.

Parameters:

intervalSeconds - the intervalSeconds value to set.

Returns:

the SelfTracing object itself.

withMode

public SelfTracing withMode(OperationalMode mode)

Set the mode property: The toggle to enable/disable self tracing.

Parameters:

mode - the mode value to set.

Returns:

the SelfTracing object itself.

Applies to