Partager via


JsonSchemaInner Class

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

Implements

public final class JsonSchemaInner
implements JsonSerializable<JsonSchemaInner>

The JSON schema.

Constructor Summary

Constructor Description
JsonSchemaInner()

Creates an instance of JsonSchemaInner class.

Method Summary

Modifier and Type Method and Description
String content()

Get the content property: The JSON content.

static JsonSchemaInner fromJson(JsonReader jsonReader)

Reads an instance of JsonSchemaInner from the JsonReader.

String title()

Get the title property: The JSON title.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

JsonSchemaInner withContent(String content)

Set the content property: The JSON content.

JsonSchemaInner withTitle(String title)

Set the title property: The JSON title.

Methods inherited from java.lang.Object

Constructor Details

JsonSchemaInner

public JsonSchemaInner()

Creates an instance of JsonSchemaInner class.

Method Details

content

public String content()

Get the content property: The JSON content.

Returns:

the content value.

fromJson

public static JsonSchemaInner fromJson(JsonReader jsonReader)

Reads an instance of JsonSchemaInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

title

public String title()

Get the title property: The JSON title.

Returns:

the title value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContent

public JsonSchemaInner withContent(String content)

Set the content property: The JSON content.

Parameters:

content - the content value to set.

Returns:

the JsonSchemaInner object itself.

withTitle

public JsonSchemaInner withTitle(String title)

Set the title property: The JSON title.

Parameters:

title - the title value to set.

Returns:

the JsonSchemaInner object itself.

Applies to