다음을 통해 공유


Sku Class

  • java.lang.Object
    • com.azure.resourcemanager.search.models.Sku

Implements

public final class Sku
implements JsonSerializable<Sku>

Defines the SKU of a search service, which determines billing rate and capacity limits.

Constructor Summary

Constructor Description
Sku()

Creates an instance of Sku class.

Method Summary

Modifier and Type Method and Description
static Sku fromJson(JsonReader jsonReader)

Reads an instance of Sku from the JsonReader.

SkuName name()

Get the name property: The SKU of the search service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Sku withName(SkuName name)

Set the name property: The SKU of the search service.

Methods inherited from java.lang.Object

Constructor Details

Sku

public Sku()

Creates an instance of Sku class.

Method Details

fromJson

public static Sku fromJson(JsonReader jsonReader)

Reads an instance of Sku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Sku 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 Sku.

name

public SkuName name()

Get the name property: The SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public Sku withName(SkuName name)

Set the name property: The SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'.

Parameters:

name - the name value to set.

Returns:

the Sku object itself.

Applies to