Class SqlInstanceSettings
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.SqlInstanceSettings
Set the server/instance-level settings for SQL Server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the collation property: SQL Server Collation.Get the isIfiEnabled property: SQL Server IFI.Get the isLpimEnabled property: SQL Server LPIM.Get the isOptimizeForAdHocWorkloadsEnabled property: SQL Server Optimize for Adhoc workloads.maxDop()
Get the maxDop property: SQL Server MAXDOP.Get the maxServerMemoryMB property: SQL Server maximum memory.Get the minServerMemoryMB property: SQL Server minimum memory.void
validate()
Validates the instance.withCollation
(String collation) Set the collation property: SQL Server Collation.withIsIfiEnabled
(Boolean isIfiEnabled) Set the isIfiEnabled property: SQL Server IFI.withIsLpimEnabled
(Boolean isLpimEnabled) Set the isLpimEnabled property: SQL Server LPIM.withIsOptimizeForAdHocWorkloadsEnabled
(Boolean isOptimizeForAdHocWorkloadsEnabled) Set the isOptimizeForAdHocWorkloadsEnabled property: SQL Server Optimize for Adhoc workloads.withMaxDop
(Integer maxDop) Set the maxDop property: SQL Server MAXDOP.withMaxServerMemoryMB
(Integer maxServerMemoryMB) Set the maxServerMemoryMB property: SQL Server maximum memory.withMinServerMemoryMB
(Integer minServerMemoryMB) Set the minServerMemoryMB property: SQL Server minimum memory.
-
Constructor Details
-
SqlInstanceSettings
public SqlInstanceSettings()
-
-
Method Details
-
collation
Get the collation property: SQL Server Collation.- Returns:
- the collation value.
-
withCollation
Set the collation property: SQL Server Collation.- Parameters:
collation
- the collation value to set.- Returns:
- the SqlInstanceSettings object itself.
-
maxDop
Get the maxDop property: SQL Server MAXDOP.- Returns:
- the maxDop value.
-
withMaxDop
Set the maxDop property: SQL Server MAXDOP.- Parameters:
maxDop
- the maxDop value to set.- Returns:
- the SqlInstanceSettings object itself.
-
isOptimizeForAdHocWorkloadsEnabled
Get the isOptimizeForAdHocWorkloadsEnabled property: SQL Server Optimize for Adhoc workloads.- Returns:
- the isOptimizeForAdHocWorkloadsEnabled value.
-
withIsOptimizeForAdHocWorkloadsEnabled
public SqlInstanceSettings withIsOptimizeForAdHocWorkloadsEnabled(Boolean isOptimizeForAdHocWorkloadsEnabled) Set the isOptimizeForAdHocWorkloadsEnabled property: SQL Server Optimize for Adhoc workloads.- Parameters:
isOptimizeForAdHocWorkloadsEnabled
- the isOptimizeForAdHocWorkloadsEnabled value to set.- Returns:
- the SqlInstanceSettings object itself.
-
minServerMemoryMB
Get the minServerMemoryMB property: SQL Server minimum memory.- Returns:
- the minServerMemoryMB value.
-
withMinServerMemoryMB
Set the minServerMemoryMB property: SQL Server minimum memory.- Parameters:
minServerMemoryMB
- the minServerMemoryMB value to set.- Returns:
- the SqlInstanceSettings object itself.
-
maxServerMemoryMB
Get the maxServerMemoryMB property: SQL Server maximum memory.- Returns:
- the maxServerMemoryMB value.
-
withMaxServerMemoryMB
Set the maxServerMemoryMB property: SQL Server maximum memory.- Parameters:
maxServerMemoryMB
- the maxServerMemoryMB value to set.- Returns:
- the SqlInstanceSettings object itself.
-
isLpimEnabled
Get the isLpimEnabled property: SQL Server LPIM.- Returns:
- the isLpimEnabled value.
-
withIsLpimEnabled
Set the isLpimEnabled property: SQL Server LPIM.- Parameters:
isLpimEnabled
- the isLpimEnabled value to set.- Returns:
- the SqlInstanceSettings object itself.
-
isIfiEnabled
Get the isIfiEnabled property: SQL Server IFI.- Returns:
- the isIfiEnabled value.
-
withIsIfiEnabled
Set the isIfiEnabled property: SQL Server IFI.- Parameters:
isIfiEnabled
- the isIfiEnabled value to set.- Returns:
- the SqlInstanceSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-