ApiProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.ApiProperties

Implements

public final class ApiProperties
implements JsonSerializable<ApiProperties>

The ApiProperties model.

Constructor Summary

Constructor Description
ApiProperties()

Creates an instance of ApiProperties class.

Method Summary

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

Reads an instance of ApiProperties from the JsonReader.

ServerVersion serverVersion()

Get the serverVersion property: Describes the version of the MongoDB account.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApiProperties withServerVersion(ServerVersion serverVersion)

Set the serverVersion property: Describes the version of the MongoDB account.

Methods inherited from java.lang.Object

Constructor Details

ApiProperties

public ApiProperties()

Creates an instance of ApiProperties class.

Method Details

fromJson

public static ApiProperties fromJson(JsonReader jsonReader)

Reads an instance of ApiProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

serverVersion

public ServerVersion serverVersion()

Get the serverVersion property: Describes the version of the MongoDB account.

Returns:

the serverVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withServerVersion

public ApiProperties withServerVersion(ServerVersion serverVersion)

Set the serverVersion property: Describes the version of the MongoDB account.

Parameters:

serverVersion - the serverVersion value to set.

Returns:

the ApiProperties object itself.

Applies to