Class ApiProperties
java.lang.Object
com.azure.resourcemanager.cosmos.models.ApiProperties
The ApiProperties model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the serverVersion property: Describes the ServerVersion of an a MongoDB account.voidvalidate()Validates the instance.withServerVersion(ServerVersion serverVersion) Set the serverVersion property: Describes the ServerVersion of an a MongoDB account.
-
Constructor Details
-
ApiProperties
public ApiProperties()Creates an instance of ApiProperties class.
-
-
Method Details
-
serverVersion
Get the serverVersion property: Describes the ServerVersion of an a MongoDB account.- Returns:
- the serverVersion value.
-
withServerVersion
Set the serverVersion property: Describes the ServerVersion of an a MongoDB account.- Parameters:
serverVersion- the serverVersion value to set.- Returns:
- the ApiProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-