Configuration Class

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

Implements

public final class Configuration
implements JsonSerializable<Configuration>

Non versioned Container App configuration properties that define the mutable settings of a Container app.

Constructor Summary

Constructor Description
Configuration()

Creates an instance of Configuration class.

Method Summary

Modifier and Type Method and Description
ActiveRevisionsMode activeRevisionsMode()

Get the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: Multiple: multiple revisions can be active.

static Configuration fromJson(JsonReader jsonReader)

Reads an instance of Configuration from the JsonReader.

Ingress ingress()

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Configuration withActiveRevisionsMode(ActiveRevisionsMode activeRevisionsMode)

Set the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: Multiple: multiple revisions can be active.

Configuration withIngress(Ingress ingress)

Set the ingress property: Ingress configurations.

Configuration withRegistries(List<RegistryCredentials> registries)

Set the registries property: Collection of private container registry credentials for containers used by the Container app.

Configuration withSecrets(List<Secret> secrets)

Set the secrets property: Collection of secrets used by a Container app.

Methods inherited from java.lang.Object

Constructor Details

Configuration

public Configuration()

Creates an instance of Configuration class.

Method Details

activeRevisionsMode

public ActiveRevisionsMode activeRevisionsMode()

Get the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: Multiple: multiple revisions can be active. If no value if provided, this is the defaultSingle: Only one revision can be active at a time. Revision weights can not be used in this mode.

Returns:

the activeRevisionsMode value.

fromJson

public static Configuration fromJson(JsonReader jsonReader)

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.

ingress

public Ingress ingress()

Get the ingress property: Ingress configurations.

Returns:

the ingress value.

registries

public List registries()

Get the registries property: Collection of private container registry credentials for containers used by the Container app.

Returns:

the registries value.

secrets

public List secrets()

Get the secrets property: Collection of secrets used by a Container app.

Returns:

the secrets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActiveRevisionsMode

public Configuration withActiveRevisionsMode(ActiveRevisionsMode activeRevisionsMode)

Set the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the Container app: Multiple: multiple revisions can be active. If no value if provided, this is the defaultSingle: Only one revision can be active at a time. Revision weights can not be used in this mode.

Parameters:

activeRevisionsMode - the activeRevisionsMode value to set.

Returns:

the Configuration object itself.

withIngress

public Configuration withIngress(Ingress ingress)

Set the ingress property: Ingress configurations.

Parameters:

ingress - the ingress value to set.

Returns:

the Configuration object itself.

withRegistries

public Configuration withRegistries(List 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.

withSecrets

public Configuration withSecrets(List 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.

Applies to