Share via


SqlManagedInstanceK8SSpec Class

  • java.lang.Object
    • com.azure.resourcemanager.azurearcdata.models.SqlManagedInstanceK8SSpec

Implements

public final class SqlManagedInstanceK8SSpec
implements JsonSerializable<SqlManagedInstanceK8SSpec>

The kubernetes spec information.

Constructor Summary

Constructor Description
SqlManagedInstanceK8SSpec()

Creates an instance of SqlManagedInstanceK8SSpec class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: The kubernetes spec information.

static SqlManagedInstanceK8SSpec fromJson(JsonReader jsonReader)

Reads an instance of SqlManagedInstanceK8SSpec from the JsonReader.

Integer 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.

K8SScheduling scheduling()

Get the scheduling property: The kubernetes scheduling information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlManagedInstanceK8SSpec withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: The kubernetes spec information.

SqlManagedInstanceK8SSpec 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.

SqlManagedInstanceK8SSpec withScheduling(K8SScheduling scheduling)

Set the scheduling property: The kubernetes scheduling information.

Methods inherited from java.lang.Object

Constructor Details

SqlManagedInstanceK8SSpec

public SqlManagedInstanceK8SSpec()

Creates an instance of SqlManagedInstanceK8SSpec class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: The kubernetes spec information.

Returns:

the additionalProperties value.

fromJson

public static SqlManagedInstanceK8SSpec fromJson(JsonReader jsonReader)

Reads an instance of SqlManagedInstanceK8SSpec from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlManagedInstanceK8SSpec if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SqlManagedInstanceK8SSpec.

replicas

public Integer 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.

scheduling

public K8SScheduling scheduling()

Get the scheduling property: The kubernetes scheduling information.

Returns:

the scheduling value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public SqlManagedInstanceK8SSpec withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: The kubernetes spec information.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the SqlManagedInstanceK8SSpec object itself.

withReplicas

public SqlManagedInstanceK8SSpec 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. 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.

withScheduling

public SqlManagedInstanceK8SSpec withScheduling(K8SScheduling scheduling)

Set the scheduling property: The kubernetes scheduling information.

Parameters:

scheduling - the scheduling value to set.

Returns:

the SqlManagedInstanceK8SSpec object itself.

Applies to