TroubleshootingResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.TroubleshootingResultInner

Implements

public final class TroubleshootingResultInner
implements JsonSerializable<TroubleshootingResultInner>

Troubleshooting information gained from specified resource.

Constructor Summary

Constructor Description
TroubleshootingResultInner()

Creates an instance of TroubleshootingResultInner class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The result code of the troubleshooting.

OffsetDateTime endTime()

Get the endTime property: The end time of the troubleshooting.

static TroubleshootingResultInner fromJson(JsonReader jsonReader)

Reads an instance of TroubleshootingResultInner from the JsonReader.

List<TroubleshootingDetails> results()

Get the results property: Information from troubleshooting.

OffsetDateTime startTime()

Get the startTime property: The start time of the troubleshooting.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TroubleshootingResultInner withCode(String code)

Set the code property: The result code of the troubleshooting.

TroubleshootingResultInner withEndTime(OffsetDateTime endTime)

Set the endTime property: The end time of the troubleshooting.

TroubleshootingResultInner withResults(List<TroubleshootingDetails> results)

Set the results property: Information from troubleshooting.

TroubleshootingResultInner withStartTime(OffsetDateTime startTime)

Set the startTime property: The start time of the troubleshooting.

Methods inherited from java.lang.Object

Constructor Details

TroubleshootingResultInner

public TroubleshootingResultInner()

Creates an instance of TroubleshootingResultInner class.

Method Details

code

public String code()

Get the code property: The result code of the troubleshooting.

Returns:

the code value.

endTime

public OffsetDateTime endTime()

Get the endTime property: The end time of the troubleshooting.

Returns:

the endTime value.

fromJson

public static TroubleshootingResultInner fromJson(JsonReader jsonReader)

Reads an instance of TroubleshootingResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

results

public List results()

Get the results property: Information from troubleshooting.

Returns:

the results value.

startTime

public OffsetDateTime startTime()

Get the startTime property: The start time of the troubleshooting.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public TroubleshootingResultInner withCode(String code)

Set the code property: The result code of the troubleshooting.

Parameters:

code - the code value to set.

Returns:

the TroubleshootingResultInner object itself.

withEndTime

public TroubleshootingResultInner withEndTime(OffsetDateTime endTime)

Set the endTime property: The end time of the troubleshooting.

Parameters:

endTime - the endTime value to set.

Returns:

the TroubleshootingResultInner object itself.

withResults

public TroubleshootingResultInner withResults(List results)

Set the results property: Information from troubleshooting.

Parameters:

results - the results value to set.

Returns:

the TroubleshootingResultInner object itself.

withStartTime

public TroubleshootingResultInner withStartTime(OffsetDateTime startTime)

Set the startTime property: The start time of the troubleshooting.

Parameters:

startTime - the startTime value to set.

Returns:

the TroubleshootingResultInner object itself.

Applies to