Class SqlManagedInstanceK8SSpec
java.lang.Object
com.azure.resourcemanager.azurearcdata.models.SqlManagedInstanceK8SSpec
The kubernetes spec information.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SqlManagedInstanceK8SSpec class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: The kubernetes spec information.replicas()
Get the replicas property: This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes.Get the scheduling property: The kubernetes scheduling information.void
validate()
Validates the instance.withAdditionalProperties
(Map<String, Object> additionalProperties) Set the additionalProperties property: The kubernetes spec information.withReplicas
(Integer replicas) Set the replicas property: This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes.withScheduling
(K8SScheduling scheduling) Set the scheduling property: The kubernetes scheduling information.
-
Constructor Details
-
SqlManagedInstanceK8SSpec
public SqlManagedInstanceK8SSpec()Creates an instance of SqlManagedInstanceK8SSpec class.
-
-
Method Details
-
scheduling
Get the scheduling property: The kubernetes scheduling information.- Returns:
- the scheduling value.
-
withScheduling
Set the scheduling property: The kubernetes scheduling information.- Parameters:
scheduling
- the scheduling value to set.- Returns:
- the SqlManagedInstanceK8SSpec object itself.
-
replicas
Get the replicas property: This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes. If sku.tier is BusinessCritical, allowed values are '2' or '3' with default of '3'. If sku.tier is GeneralPurpose, replicas must be '1'.- Returns:
- the replicas value.
-
withReplicas
Set the replicas property: This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes. If sku.tier is BusinessCritical, allowed values are '2' or '3' with default of '3'. If sku.tier is GeneralPurpose, replicas must be '1'.- Parameters:
replicas
- the replicas value to set.- Returns:
- the SqlManagedInstanceK8SSpec object itself.
-
additionalProperties
Get the additionalProperties property: The kubernetes spec information.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: The kubernetes spec information.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the SqlManagedInstanceK8SSpec object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-