ApiDefinitionInfo Class

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

Implements

public final class ApiDefinitionInfo
implements JsonSerializable<ApiDefinitionInfo>

Information about the formal API definition for the app.

Constructor Summary

Constructor Description
ApiDefinitionInfo()

Creates an instance of ApiDefinitionInfo class.

Method Summary

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

Reads an instance of ApiDefinitionInfo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String url()

Get the url property: The URL of the API definition.

void validate()

Validates the instance.

ApiDefinitionInfo withUrl(String url)

Set the url property: The URL of the API definition.

Methods inherited from java.lang.Object

Constructor Details

ApiDefinitionInfo

public ApiDefinitionInfo()

Creates an instance of ApiDefinitionInfo class.

Method Details

fromJson

public static ApiDefinitionInfo fromJson(JsonReader jsonReader)

Reads an instance of ApiDefinitionInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

url

public String url()

Get the url property: The URL of the API definition.

Returns:

the url value.

validate

public void validate()

Validates the instance.

withUrl

public ApiDefinitionInfo withUrl(String url)

Set the url property: The URL of the API definition.

Parameters:

url - the url value to set.

Returns:

the ApiDefinitionInfo object itself.

Applies to