Class Configuration
java.lang.Object
com.azure.resourcemanager.appcontainers.models.Configuration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Configuration>
public final class Configuration
extends Object
implements com.azure.json.JsonSerializable<Configuration>
Non versioned Container App configuration properties that define the mutable settings of a Container app.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time.dapr()Get the dapr property: Dapr configuration for the Container App.static ConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Configuration from the JsonReader.Get the identitySettings property: Optional settings for Managed Identities that are assigned to the Container App.ingress()Get the ingress property: Ingress configurations.Get the maxInactiveRevisions property: Optional.Get the registries property: Collection of private container registry credentials for containers used by the Container app.runtime()Get the runtime property: App runtime configuration for the Container App.secrets()Get the secrets property: Collection of secrets used by a Container app.service()Get the service property: Container App to be a dev Container App Service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.</item><item>Single: Only one revision can be active at a time.Set the dapr property: Dapr configuration for the Container App.withIdentitySettings(List<IdentitySettings> identitySettings) Set the identitySettings property: Optional settings for Managed Identities that are assigned to the Container App.withIngress(Ingress ingress) Set the ingress property: Ingress configurations.withMaxInactiveRevisions(Integer maxInactiveRevisions) Set the maxInactiveRevisions property: Optional.withRegistries(List<RegistryCredentials> registries) Set the registries property: Collection of private container registry credentials for containers used by the Container app.withRuntime(Runtime runtime) Set the runtime property: App runtime configuration for the Container App.withSecrets(List<Secret> secrets) Set the secrets property: Collection of secrets used by a Container app.withService(Service service) Set the service property: Container App to be a dev Container App Service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Configuration
public Configuration()Creates an instance of Configuration class.
-
-
Method Details
-
secrets
Get the secrets property: Collection of secrets used by a Container app.- Returns:
- the secrets value.
-
withSecrets
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
Get the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>.- Returns:
- the activeRevisionsMode value.
-
withActiveRevisionsMode
Set the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>.- Parameters:
activeRevisionsMode- the activeRevisionsMode value to set.- Returns:
- the Configuration object itself.
-
ingress
Get the ingress property: Ingress configurations.- Returns:
- the ingress value.
-
withIngress
Set the ingress property: Ingress configurations.- Parameters:
ingress- the ingress value to set.- Returns:
- the Configuration object itself.
-
registries
Get the registries property: Collection of private container registry credentials for containers used by the Container app.- Returns:
- the registries value.
-
withRegistries
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.
-
dapr
Get the dapr property: Dapr configuration for the Container App.- Returns:
- the dapr value.
-
withDapr
Set the dapr property: Dapr configuration for the Container App.- Parameters:
dapr- the dapr value to set.- Returns:
- the Configuration object itself.
-
runtime
Get the runtime property: App runtime configuration for the Container App.- Returns:
- the runtime value.
-
withRuntime
Set the runtime property: App runtime configuration for the Container App.- Parameters:
runtime- the runtime value to set.- Returns:
- the Configuration object itself.
-
maxInactiveRevisions
Get the maxInactiveRevisions property: Optional. Max inactive revisions a Container App can have.- Returns:
- the maxInactiveRevisions value.
-
withMaxInactiveRevisions
Set the maxInactiveRevisions property: Optional. Max inactive revisions a Container App can have.- Parameters:
maxInactiveRevisions- the maxInactiveRevisions value to set.- Returns:
- the Configuration object itself.
-
service
Get the service property: Container App to be a dev Container App Service.- Returns:
- the service value.
-
withService
Set the service property: Container App to be a dev Container App Service.- Parameters:
service- the service value to set.- Returns:
- the Configuration object itself.
-
identitySettings
Get the identitySettings property: Optional settings for Managed Identities that are assigned to the Container App. If a Managed Identity is not specified here, default settings will be used.- Returns:
- the identitySettings value.
-
withIdentitySettings
Set the identitySettings property: Optional settings for Managed Identities that are assigned to the Container App. If a Managed Identity is not specified here, default settings will be used.- Parameters:
identitySettings- the identitySettings value to set.- Returns:
- the Configuration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Configuration>- Throws:
IOException
-
fromJson
Reads an instance of Configuration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Configuration 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 Configuration.
-