DatabaseInner Class

public final class DatabaseInner
extends ProxyResource

Represents a Database.

Constructor Summary

Constructor Description
DatabaseInner()

Creates an instance of DatabaseInner class.

Method Summary

Modifier and Type Method and Description
String charset()

Get the charset property: The charset of the database.

String collation()

Get the collation property: The collation of the database.

static DatabaseInner fromJson(JsonReader jsonReader)

Reads an instance of DatabaseInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DatabaseInner withCharset(String charset)

Set the charset property: The charset of the database.

DatabaseInner withCollation(String collation)

Set the collation property: The collation of the database.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DatabaseInner

public DatabaseInner()

Creates an instance of DatabaseInner class.

Method Details

charset

public String charset()

Get the charset property: The charset of the database.

Returns:

the charset value.

collation

public String collation()

Get the collation property: The collation of the database.

Returns:

the collation value.

fromJson

public static DatabaseInner fromJson(JsonReader jsonReader)

Reads an instance of DatabaseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DatabaseInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DatabaseInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DatabaseInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DatabaseInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCharset

public DatabaseInner withCharset(String charset)

Set the charset property: The charset of the database.

Parameters:

charset - the charset value to set.

Returns:

the DatabaseInner object itself.

withCollation

public DatabaseInner withCollation(String collation)

Set the collation property: The collation of the database.

Parameters:

collation - the collation value to set.

Returns:

the DatabaseInner object itself.

Applies to