Class StackMajorVersion
java.lang.Object
com.azure.resourcemanager.appservice.models.StackMajorVersion
Application stack major version.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the applicationInsights property: <code>true</code> if this supports Application Insights; otherwise, <code>false</code>.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.Get the displayVersion property: Application stack major version (display only).Get the isDefault property: <code>true</code> if this is the default major version; otherwise, <code>false</code>.Get the isDeprecated property: <code>true</code> if this stack has been deprecated, otherwise <code>false</code>.isHidden()
Get the isHidden property: <code>true</code> if this stack should be hidden for new customers on portal, otherwise <code>false</code>.Get the isPreview property: <code>true</code> if this stack is in Preview, otherwise <code>false</code>.Get the minorVersions property: Minor versions associated with the major version.Get the runtimeVersion property: Application stack major version (runtime only).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.withApplicationInsights
(Boolean applicationInsights) Set the applicationInsights property: <code>true</code> if this supports Application Insights; otherwise, <code>false</code>.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.withDisplayVersion
(String displayVersion) Set the displayVersion property: Application stack major version (display only).withIsDefault
(Boolean isDefault) Set the isDefault property: <code>true</code> if this is the default major version; otherwise, <code>false</code>.withIsDeprecated
(Boolean isDeprecated) Set the isDeprecated property: <code>true</code> if this stack has been deprecated, otherwise <code>false</code>.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>.withIsPreview
(Boolean isPreview) Set the isPreview property: <code>true</code> if this stack is in Preview, otherwise <code>false</code>.withMinorVersions
(List<StackMinorVersion> minorVersions) Set the minorVersions property: Minor versions associated with the major version.withRuntimeVersion
(String runtimeVersion) Set the runtimeVersion property: Application stack major version (runtime only).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.
-
Constructor Details
-
StackMajorVersion
public StackMajorVersion()
-
-
Method Details
-
displayVersion
Get the displayVersion property: Application stack major version (display only).- Returns:
- the displayVersion value.
-
withDisplayVersion
Set the displayVersion property: Application stack major version (display only).- Parameters:
displayVersion
- the displayVersion value to set.- Returns:
- the StackMajorVersion object itself.
-
runtimeVersion
Get the runtimeVersion property: Application stack major version (runtime only).- Returns:
- the runtimeVersion value.
-
withRuntimeVersion
Set the runtimeVersion property: Application stack major version (runtime only).- Parameters:
runtimeVersion
- the runtimeVersion value to set.- Returns:
- the StackMajorVersion object itself.
-
isDefault
Get the isDefault property: <code>true</code> if this is the default major version; otherwise, <code>false</code>.- Returns:
- the isDefault value.
-
withIsDefault
Set the isDefault property: <code>true</code> if this is the default major version; otherwise, <code>false</code>.- Parameters:
isDefault
- the isDefault value to set.- Returns:
- the StackMajorVersion object itself.
-
minorVersions
Get the minorVersions property: Minor versions associated with the major version.- Returns:
- the minorVersions value.
-
withMinorVersions
Set the minorVersions property: Minor versions associated with the major version.- Parameters:
minorVersions
- the minorVersions value to set.- Returns:
- the StackMajorVersion object itself.
-
applicationInsights
Get the applicationInsights property: <code>true</code> if this supports Application Insights; otherwise, <code>false</code>.- Returns:
- the applicationInsights value.
-
withApplicationInsights
Set the applicationInsights property: <code>true</code> if this supports Application Insights; otherwise, <code>false</code>.- Parameters:
applicationInsights
- the applicationInsights value to set.- Returns:
- the StackMajorVersion object itself.
-
isPreview
Get the isPreview property: <code>true</code> if this stack is in Preview, otherwise <code>false</code>.- Returns:
- the isPreview value.
-
withIsPreview
Set the isPreview property: <code>true</code> if this stack is in Preview, otherwise <code>false</code>.- Parameters:
isPreview
- the isPreview value to set.- Returns:
- the StackMajorVersion object itself.
-
isDeprecated
Get the isDeprecated property: <code>true</code> if this stack has been deprecated, otherwise <code>false</code>.- Returns:
- the isDeprecated value.
-
withIsDeprecated
Set the isDeprecated property: <code>true</code> if this stack has been deprecated, otherwise <code>false</code>.- Parameters:
isDeprecated
- the isDeprecated value to set.- Returns:
- the StackMajorVersion object itself.
-
isHidden
Get the isHidden property: <code>true</code> if this stack should be hidden for new customers on portal, otherwise <code>false</code>.- Returns:
- the isHidden value.
-
withIsHidden
Set the isHidden property: <code>true</code> if this stack should be hidden for new customers on portal, otherwise <code>false</code>.- Parameters:
isHidden
- the isHidden value to set.- Returns:
- the StackMajorVersion object itself.
-
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.- Returns:
- the appSettingsDictionary value.
-
withAppSettingsDictionary
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.- Parameters:
appSettingsDictionary
- the appSettingsDictionary value to set.- Returns:
- the StackMajorVersion object itself.
-
siteConfigPropertiesDictionary
Get the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0.- Returns:
- the siteConfigPropertiesDictionary value.
-
withSiteConfigPropertiesDictionary
public 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.- Parameters:
siteConfigPropertiesDictionary
- the siteConfigPropertiesDictionary value to set.- Returns:
- the StackMajorVersion object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-