FunctionFlexConsumptionResourceConfiguration Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.FunctionFlexConsumptionResourceConfiguration

Implements

public final class FunctionFlexConsumptionResourceConfiguration
implements JsonSerializable<FunctionFlexConsumptionResourceConfiguration>

Resource configuration instance for a Flex Consumption based Azure Function App.

Constructor Summary

Constructor Description
FunctionFlexConsumptionResourceConfiguration()

Creates an instance of FunctionFlexConsumptionResourceConfiguration class.

Method Summary

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

Reads an instance of FunctionFlexConsumptionResourceConfiguration from the JsonReader.

Long getHttpConcurrency()

Get the httpConcurrency property: HTTP Concurrency for the function app.

long getInstanceMemoryMB()

Get the instanceMemoryMB property: Memory size of the instance.

FunctionFlexConsumptionResourceConfiguration setHttpConcurrency(Long httpConcurrency)

Set the httpConcurrency property: HTTP Concurrency for the function app.

FunctionFlexConsumptionResourceConfiguration setInstanceMemoryMB(long instanceMemoryMB)

Set the instanceMemoryMB property: Memory size of the instance.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

FunctionFlexConsumptionResourceConfiguration

public FunctionFlexConsumptionResourceConfiguration()

Creates an instance of FunctionFlexConsumptionResourceConfiguration class.

Method Details

fromJson

public static FunctionFlexConsumptionResourceConfiguration fromJson(JsonReader jsonReader)

Reads an instance of FunctionFlexConsumptionResourceConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getHttpConcurrency

public Long getHttpConcurrency()

Get the httpConcurrency property: HTTP Concurrency for the function app.

Returns:

the httpConcurrency value.

getInstanceMemoryMB

public long getInstanceMemoryMB()

Get the instanceMemoryMB property: Memory size of the instance. Supported values are 2048, 4096.

Returns:

the instanceMemoryMB value.

setHttpConcurrency

public FunctionFlexConsumptionResourceConfiguration setHttpConcurrency(Long httpConcurrency)

Set the httpConcurrency property: HTTP Concurrency for the function app.

Parameters:

httpConcurrency - the httpConcurrency value to set.

Returns:

the FunctionFlexConsumptionResourceConfiguration object itself.

setInstanceMemoryMB

public FunctionFlexConsumptionResourceConfiguration setInstanceMemoryMB(long instanceMemoryMB)

Set the instanceMemoryMB property: Memory size of the instance. Supported values are 2048, 4096.

Required when create the resource.

Parameters:

instanceMemoryMB - the instanceMemoryMB value to set.

Returns:

the FunctionFlexConsumptionResourceConfiguration object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to