ApiProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ApiProperties
- com.
Implements
public final class ApiProperties
implements JsonSerializable<ApiProperties>
The ApiProperties model.
Constructor Summary
Constructor | Description |
---|---|
ApiProperties() |
Creates an instance of Api |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Api |
fromJson(JsonReader jsonReader)
Reads an instance of Api |
Server |
serverVersion()
Get the server |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Api |
withServerVersion(ServerVersion serverVersion)
Set the server |
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:
Returns:
Throws:
serverVersion
public ServerVersion serverVersion()
Get the serverVersion property: Describes the version of the MongoDB account.
Returns:
toJson
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:
Returns:
Applies to
Azure SDK for Java