Class Configuration
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.Configuration
-
public final class Configuration extends Object
Non versioned Container App configuration properties that define the mutable settings of a Container app.
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActiveRevisionsModeactiveRevisionsMode()Get the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: <list><item>Multiple: multiple revisions can be active.Ingressingress()Get the ingress property: Ingress configurations.List<RegistryCredentials>registries()Get the registries property: Collection of private container registry credentials for containers used by the Container app.List<Secret>secrets()Get the secrets property: Collection of secrets used by a Container app.voidvalidate()Validates the instance.ConfigurationwithActiveRevisionsMode(ActiveRevisionsMode activeRevisionsMode)Set the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: <list><item>Multiple: multiple revisions can be active.ConfigurationwithIngress(Ingress ingress)Set the ingress property: Ingress configurations.ConfigurationwithRegistries(List<RegistryCredentials> registries)Set the registries property: Collection of private container registry credentials for containers used by the Container app.ConfigurationwithSecrets(List<Secret> secrets)Set the secrets property: Collection of secrets used by a Container app.
-
-
-
Method Detail
-
secrets
public List<Secret> secrets()
Get the secrets property: Collection of secrets used by a Container app.- Returns:
- the secrets value.
-
withSecrets
public Configuration withSecrets(List<Secret> secrets)
Set the secrets property: Collection of secrets used by a Container app.- Parameters:
secrets- the secrets value to set.- Returns:
- the Configuration object itself.
-
activeRevisionsMode
public ActiveRevisionsMode activeRevisionsMode()
Get the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: <list><item>Multiple: multiple revisions can be active. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</item></list>.- Returns:
- the activeRevisionsMode value.
-
withActiveRevisionsMode
public Configuration withActiveRevisionsMode(ActiveRevisionsMode activeRevisionsMode)
Set the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: <list><item>Multiple: multiple revisions can be active. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</item></list>.- Parameters:
activeRevisionsMode- the activeRevisionsMode value to set.- Returns:
- the Configuration object itself.
-
ingress
public Ingress ingress()
Get the ingress property: Ingress configurations.- Returns:
- the ingress value.
-
withIngress
public Configuration withIngress(Ingress ingress)
Set the ingress property: Ingress configurations.- Parameters:
ingress- the ingress value to set.- Returns:
- the Configuration object itself.
-
registries
public List<RegistryCredentials> registries()
Get the registries property: Collection of private container registry credentials for containers used by the Container app.- Returns:
- the registries value.
-
withRegistries
public Configuration withRegistries(List<RegistryCredentials> registries)
Set the registries property: Collection of private container registry credentials for containers used by the Container app.- Parameters:
registries- the registries value to set.- Returns:
- the Configuration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-