次の方法で共有


AvailableServiceSkuCapacity Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.AvailableServiceSkuCapacity

Implements

public final class AvailableServiceSkuCapacity
implements JsonSerializable<AvailableServiceSkuCapacity>

A description of the scaling capacities of the SKU.

Constructor Summary

Constructor Description
AvailableServiceSkuCapacity()

Creates an instance of AvailableServiceSkuCapacity class.

Method Summary

Modifier and Type Method and Description
Integer defaultProperty()

Get the defaultProperty property: The default capacity.

static AvailableServiceSkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of AvailableServiceSkuCapacity from the JsonReader.

Integer maximum()

Get the maximum property: The maximum capacity.

Integer minimum()

Get the minimum property: The minimum capacity, usually 0 or 1.

ServiceScalability scaleType()

Get the scaleType property: The scalability approach.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailableServiceSkuCapacity withDefaultProperty(Integer defaultProperty)

Set the defaultProperty property: The default capacity.

AvailableServiceSkuCapacity withMaximum(Integer maximum)

Set the maximum property: The maximum capacity.

AvailableServiceSkuCapacity withMinimum(Integer minimum)

Set the minimum property: The minimum capacity, usually 0 or 1.

AvailableServiceSkuCapacity withScaleType(ServiceScalability scaleType)

Set the scaleType property: The scalability approach.

Methods inherited from java.lang.Object

Constructor Details

AvailableServiceSkuCapacity

public AvailableServiceSkuCapacity()

Creates an instance of AvailableServiceSkuCapacity class.

Method Details

defaultProperty

public Integer defaultProperty()

Get the defaultProperty property: The default capacity.

Returns:

the defaultProperty value.

fromJson

public static AvailableServiceSkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of AvailableServiceSkuCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maximum

public Integer maximum()

Get the maximum property: The maximum capacity.

Returns:

the maximum value.

minimum

public Integer minimum()

Get the minimum property: The minimum capacity, usually 0 or 1.

Returns:

the minimum value.

scaleType

public ServiceScalability scaleType()

Get the scaleType property: The scalability approach.

Returns:

the scaleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDefaultProperty

public AvailableServiceSkuCapacity withDefaultProperty(Integer defaultProperty)

Set the defaultProperty property: The default capacity.

Parameters:

defaultProperty - the defaultProperty value to set.

Returns:

the AvailableServiceSkuCapacity object itself.

withMaximum

public AvailableServiceSkuCapacity withMaximum(Integer maximum)

Set the maximum property: The maximum capacity.

Parameters:

maximum - the maximum value to set.

Returns:

the AvailableServiceSkuCapacity object itself.

withMinimum

public AvailableServiceSkuCapacity withMinimum(Integer minimum)

Set the minimum property: The minimum capacity, usually 0 or 1.

Parameters:

minimum - the minimum value to set.

Returns:

the AvailableServiceSkuCapacity object itself.

withScaleType

public AvailableServiceSkuCapacity withScaleType(ServiceScalability scaleType)

Set the scaleType property: The scalability approach.

Parameters:

scaleType - the scaleType value to set.

Returns:

the AvailableServiceSkuCapacity object itself.

Applies to