Class ApiProperties
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.ApiProperties
-
public final class ApiProperties extends Object
The ApiProperties model.
-
-
Constructor Summary
Constructors Constructor Description ApiProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerVersionserverVersion()Get the serverVersion property: Describes the ServerVersion of an a MongoDB account.voidvalidate()Validates the instance.ApiPropertieswithServerVersion(ServerVersion serverVersion)Set the serverVersion property: Describes the ServerVersion of an a MongoDB account.
-
-
-
Method Detail
-
serverVersion
public ServerVersion serverVersion()
Get the serverVersion property: Describes the ServerVersion of an a MongoDB account.- Returns:
- the serverVersion value.
-
withServerVersion
public ApiProperties withServerVersion(ServerVersion serverVersion)
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.
-
-