PerfMonResponseInner Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.PerfMonResponseInner

Implements

public final class PerfMonResponseInner
implements JsonSerializable<PerfMonResponseInner>

Performance monitor API response.

Constructor Summary

Constructor Description
PerfMonResponseInner()

Creates an instance of PerfMonResponseInner class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The response code.

PerfMonSet data()

Get the data property: The performance monitor counters.

static PerfMonResponseInner fromJson(JsonReader jsonReader)

Reads an instance of PerfMonResponseInner from the JsonReader.

String message()

Get the message property: The message.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PerfMonResponseInner withCode(String code)

Set the code property: The response code.

PerfMonResponseInner withData(PerfMonSet data)

Set the data property: The performance monitor counters.

PerfMonResponseInner withMessage(String message)

Set the message property: The message.

Methods inherited from java.lang.Object

Constructor Details

PerfMonResponseInner

public PerfMonResponseInner()

Creates an instance of PerfMonResponseInner class.

Method Details

code

public String code()

Get the code property: The response code.

Returns:

the code value.

data

public PerfMonSet data()

Get the data property: The performance monitor counters.

Returns:

the data value.

fromJson

public static PerfMonResponseInner fromJson(JsonReader jsonReader)

Reads an instance of PerfMonResponseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: The message.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public PerfMonResponseInner withCode(String code)

Set the code property: The response code.

Parameters:

code - the code value to set.

Returns:

the PerfMonResponseInner object itself.

withData

public PerfMonResponseInner withData(PerfMonSet data)

Set the data property: The performance monitor counters.

Parameters:

data - the data value to set.

Returns:

the PerfMonResponseInner object itself.

withMessage

public PerfMonResponseInner withMessage(String message)

Set the message property: The message.

Parameters:

message - the message value to set.

Returns:

the PerfMonResponseInner object itself.

Applies to