public final class StackMajorVersion extends Object
| Constructor and Description |
|---|
StackMajorVersion() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
applicationInsights()
Get the applicationInsights property: <code>true</code> if this supports Application Insights;
otherwise, <code>false</code>.
|
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.
|
String |
displayVersion()
Get the displayVersion property: Application stack major version (display only).
|
Boolean |
isDefault()
Get the isDefault property: <code>true</code> if this is the default major version; otherwise,
<code>false</code>.
|
Boolean |
isDeprecated()
Get the isDeprecated property: <code>true</code> if this stack has been deprecated, otherwise
<code>false</code>.
|
Boolean |
isHidden()
Get the isHidden property: <code>true</code> if this stack should be hidden for new customers on
portal, otherwise <code>false</code>.
|
Boolean |
isPreview()
Get the isPreview property: <code>true</code> if this stack is in Preview, otherwise
<code>false</code>.
|
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.
|
void |
validate()
Validates the instance.
|
StackMajorVersion |
withApplicationInsights(Boolean applicationInsights)
Set the applicationInsights property: <code>true</code> if this supports Application Insights;
otherwise, <code>false</code>.
|
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 |
withDisplayVersion(String displayVersion)
Set the displayVersion property: Application stack major version (display only).
|
StackMajorVersion |
withIsDefault(Boolean isDefault)
Set the isDefault property: <code>true</code> if this is the default major version; otherwise,
<code>false</code>.
|
StackMajorVersion |
withIsDeprecated(Boolean isDeprecated)
Set the isDeprecated property: <code>true</code> if this stack has been deprecated, otherwise
<code>false</code>.
|
StackMajorVersion |
withIsHidden(Boolean isHidden)
Set the isHidden property: <code>true</code> if this stack should be hidden for new customers on
portal, otherwise <code>false</code>.
|
StackMajorVersion |
withIsPreview(Boolean isPreview)
Set the isPreview property: <code>true</code> if this stack is in Preview, otherwise
<code>false</code>.
|
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.
|
public String displayVersion()
public StackMajorVersion withDisplayVersion(String displayVersion)
displayVersion - the displayVersion value to set.public String runtimeVersion()
public StackMajorVersion withRuntimeVersion(String runtimeVersion)
runtimeVersion - the runtimeVersion value to set.public Boolean isDefault()
public StackMajorVersion withIsDefault(Boolean isDefault)
isDefault - the isDefault value to set.public List<StackMinorVersion> minorVersions()
public StackMajorVersion withMinorVersions(List<StackMinorVersion> minorVersions)
minorVersions - the minorVersions value to set.public Boolean applicationInsights()
public StackMajorVersion withApplicationInsights(Boolean applicationInsights)
applicationInsights - the applicationInsights value to set.public Boolean isPreview()
public StackMajorVersion withIsPreview(Boolean isPreview)
isPreview - the isPreview value to set.public Boolean isDeprecated()
public StackMajorVersion withIsDeprecated(Boolean isDeprecated)
isDeprecated - the isDeprecated value to set.public Boolean isHidden()
public StackMajorVersion withIsHidden(Boolean isHidden)
isHidden - the isHidden value to set.public Map<String,Object> appSettingsDictionary()
public StackMajorVersion withAppSettingsDictionary(Map<String,Object> appSettingsDictionary)
appSettingsDictionary - the appSettingsDictionary value to set.public Map<String,Object> siteConfigPropertiesDictionary()
public StackMajorVersion withSiteConfigPropertiesDictionary(Map<String,Object> siteConfigPropertiesDictionary)
siteConfigPropertiesDictionary - the siteConfigPropertiesDictionary value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.