ResponseMetadata Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ResponseMetadata

Implements

public final class ResponseMetadata
implements JsonSerializable<ResponseMetadata>

The ResponseMetadata model.

Constructor Summary

Constructor Description
ResponseMetadata()

Creates an instance of ResponseMetadata class.

Method Summary

Modifier and Type Method and Description
DataSource dataSource()

Get the dataSource property: Source of the Data.

static ResponseMetadata fromJson(JsonReader jsonReader)

Reads an instance of ResponseMetadata from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResponseMetadata withDataSource(DataSource dataSource)

Set the dataSource property: Source of the Data.

Methods inherited from java.lang.Object

Constructor Details

ResponseMetadata

public ResponseMetadata()

Creates an instance of ResponseMetadata class.

Method Details

dataSource

public DataSource dataSource()

Get the dataSource property: Source of the Data.

Returns:

the dataSource value.

fromJson

public static ResponseMetadata fromJson(JsonReader jsonReader)

Reads an instance of ResponseMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataSource

public ResponseMetadata withDataSource(DataSource dataSource)

Set the dataSource property: Source of the Data.

Parameters:

dataSource - the dataSource value to set.

Returns:

the ResponseMetadata object itself.

Applies to