StackMajorVersion Class

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

Implements

public final class StackMajorVersion
implements JsonSerializable<StackMajorVersion>

Application stack major version.

Constructor Summary

Constructor Description
StackMajorVersion()

Creates an instance of StackMajorVersion class.

Method Summary

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

Get the appSettingsDictionary property: <appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: "FUNCTIONS_WORKER_RUNTIME" to be set stack name.

Boolean applicationInsights()

Get the applicationInsights property: true if this supports Application Insights; otherwise, false.

String displayVersion()

Get the displayVersion property: Application stack major version (display only).

static StackMajorVersion fromJson(JsonReader jsonReader)

Reads an instance of StackMajorVersion from the JsonReader.

Boolean isDefault()

Get the isDefault property: true if this is the default major version; otherwise, false.

Boolean isDeprecated()

Get the isDeprecated property: true if this stack has been deprecated, otherwise false.

Boolean isHidden()

Get the isHidden property: true if this stack should be hidden for new customers on portal, otherwise false.

Boolean isPreview()

Get the isPreview property: true if this stack is in Preview, otherwise false.

List<StackMinorVersion> minorVersions()

Get the minorVersions property: Minor versions associated with the major version.

String runtimeVersion()

Get the runtimeVersion property: Application stack major version (runtime only).

Map<String,Object> siteConfigPropertiesDictionary()

Get the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StackMajorVersion withAppSettingsDictionary(Map<String,Object> appSettingsDictionary)

Set the appSettingsDictionary property: <appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: "FUNCTIONS_WORKER_RUNTIME" to be set stack name.

StackMajorVersion withApplicationInsights(Boolean applicationInsights)

Set the applicationInsights property: true if this supports Application Insights; otherwise, false.

StackMajorVersion withDisplayVersion(String displayVersion)

Set the displayVersion property: Application stack major version (display only).

StackMajorVersion withIsDefault(Boolean isDefault)

Set the isDefault property: true if this is the default major version; otherwise, false.

StackMajorVersion withIsDeprecated(Boolean isDeprecated)

Set the isDeprecated property: true if this stack has been deprecated, otherwise false.

StackMajorVersion withIsHidden(Boolean isHidden)

Set the isHidden property: true if this stack should be hidden for new customers on portal, otherwise false.

StackMajorVersion withIsPreview(Boolean isPreview)

Set the isPreview property: true if this stack is in Preview, otherwise false.

StackMajorVersion withMinorVersions(List<StackMinorVersion> minorVersions)

Set the minorVersions property: Minor versions associated with the major version.

StackMajorVersion withRuntimeVersion(String runtimeVersion)

Set the runtimeVersion property: Application stack major version (runtime only).

StackMajorVersion withSiteConfigPropertiesDictionary(Map<String,Object> siteConfigPropertiesDictionary)

Set the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0.

Methods inherited from java.lang.Object

Constructor Details

StackMajorVersion

public StackMajorVersion()

Creates an instance of StackMajorVersion class.

Method Details

appSettingsDictionary

public Map appSettingsDictionary()

Get the appSettingsDictionary property: Example: All the function apps need AppSetting: "FUNCTIONS_WORKER_RUNTIME" to be set stack name.

Returns:

the appSettingsDictionary value.

applicationInsights

public Boolean applicationInsights()

Get the applicationInsights property: true if this supports Application Insights; otherwise, false.

Returns:

the applicationInsights value.

displayVersion

public String displayVersion()

Get the displayVersion property: Application stack major version (display only).

Returns:

the displayVersion value.

fromJson

public static StackMajorVersion fromJson(JsonReader jsonReader)

Reads an instance of StackMajorVersion from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDefault

public Boolean isDefault()

Get the isDefault property: true if this is the default major version; otherwise, false.

Returns:

the isDefault value.

isDeprecated

public Boolean isDeprecated()

Get the isDeprecated property: true if this stack has been deprecated, otherwise false.

Returns:

the isDeprecated value.

isHidden

public Boolean isHidden()

Get the isHidden property: true if this stack should be hidden for new customers on portal, otherwise false.

Returns:

the isHidden value.

isPreview

public Boolean isPreview()

Get the isPreview property: true if this stack is in Preview, otherwise false.

Returns:

the isPreview value.

minorVersions

public List minorVersions()

Get the minorVersions property: Minor versions associated with the major version.

Returns:

the minorVersions value.

runtimeVersion

public String runtimeVersion()

Get the runtimeVersion property: Application stack major version (runtime only).

Returns:

the runtimeVersion value.

siteConfigPropertiesDictionary

public Map siteConfigPropertiesDictionary()

Get the siteConfigPropertiesDictionary property: Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0.

Returns:

the siteConfigPropertiesDictionary value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAppSettingsDictionary

public StackMajorVersion withAppSettingsDictionary(Map appSettingsDictionary)

Set the appSettingsDictionary property: Example: All the function apps need AppSetting: "FUNCTIONS_WORKER_RUNTIME" to be set stack name.

Parameters:

appSettingsDictionary - the appSettingsDictionary value to set.

Returns:

the StackMajorVersion object itself.

withApplicationInsights

public StackMajorVersion withApplicationInsights(Boolean applicationInsights)

Set the applicationInsights property: true if this supports Application Insights; otherwise, false.

Parameters:

applicationInsights - the applicationInsights value to set.

Returns:

the StackMajorVersion object itself.

withDisplayVersion

public StackMajorVersion withDisplayVersion(String displayVersion)

Set the displayVersion property: Application stack major version (display only).

Parameters:

displayVersion - the displayVersion value to set.

Returns:

the StackMajorVersion object itself.

withIsDefault

public StackMajorVersion withIsDefault(Boolean isDefault)

Set the isDefault property: true if this is the default major version; otherwise, false.

Parameters:

isDefault - the isDefault value to set.

Returns:

the StackMajorVersion object itself.

withIsDeprecated

public StackMajorVersion withIsDeprecated(Boolean isDeprecated)

Set the isDeprecated property: true if this stack has been deprecated, otherwise false.

Parameters:

isDeprecated - the isDeprecated value to set.

Returns:

the StackMajorVersion object itself.

withIsHidden

public StackMajorVersion withIsHidden(Boolean isHidden)

Set the isHidden property: true if this stack should be hidden for new customers on portal, otherwise false.

Parameters:

isHidden - the isHidden value to set.

Returns:

the StackMajorVersion object itself.

withIsPreview

public StackMajorVersion withIsPreview(Boolean isPreview)

Set the isPreview property: true if this stack is in Preview, otherwise false.

Parameters:

isPreview - the isPreview value to set.

Returns:

the StackMajorVersion object itself.

withMinorVersions

public StackMajorVersion withMinorVersions(List minorVersions)

Set the minorVersions property: Minor versions associated with the major version.

Parameters:

minorVersions - the minorVersions value to set.

Returns:

the StackMajorVersion object itself.

withRuntimeVersion

public StackMajorVersion withRuntimeVersion(String runtimeVersion)

Set the runtimeVersion property: Application stack major version (runtime only).

Parameters:

runtimeVersion - the runtimeVersion value to set.

Returns:

the StackMajorVersion object itself.

withSiteConfigPropertiesDictionary

public StackMajorVersion withSiteConfigPropertiesDictionary(Map siteConfigPropertiesDictionary)

Set the siteConfigPropertiesDictionary property: Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0.

Parameters:

siteConfigPropertiesDictionary - the siteConfigPropertiesDictionary value to set.

Returns:

the StackMajorVersion object itself.

Applies to