Condividi tramite


FunctionsSiteUpdateStrategy Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.FunctionsSiteUpdateStrategy

Implements

public final class FunctionsSiteUpdateStrategy
implements JsonSerializable<FunctionsSiteUpdateStrategy>

Function app site update strategy configuration for deployments and site config updates.

Constructor Summary

Constructor Description
FunctionsSiteUpdateStrategy()

Creates an instance of FunctionsSiteUpdateStrategy class.

Method Summary

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

Reads an instance of FunctionsSiteUpdateStrategy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
SiteUpdateStrategyType type()

Get the type property: Function app site update strategy type.

void validate()

Validates the instance.

FunctionsSiteUpdateStrategy withType(SiteUpdateStrategyType type)

Set the type property: Function app site update strategy type.

Methods inherited from java.lang.Object

Constructor Details

FunctionsSiteUpdateStrategy

public FunctionsSiteUpdateStrategy()

Creates an instance of FunctionsSiteUpdateStrategy class.

Method Details

fromJson

public static FunctionsSiteUpdateStrategy fromJson(JsonReader jsonReader)

Reads an instance of FunctionsSiteUpdateStrategy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public SiteUpdateStrategyType type()

Get the type property: Function app site update strategy type. Available options: Recreate, RollingUpdate.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public FunctionsSiteUpdateStrategy withType(SiteUpdateStrategyType type)

Set the type property: Function app site update strategy type. Available options: Recreate, RollingUpdate.

Parameters:

type - the type value to set.

Returns:

the FunctionsSiteUpdateStrategy object itself.

Applies to