Template Class

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

Implements

public final class Template
implements JsonSerializable<Template>

Container App versioned application definition. Defines the desired state of an immutable revision. Any changes to this section Will result in a new revision being created.

Constructor Summary

Constructor Description
Template()

Creates an instance of Template class.

Method Summary

Modifier and Type Method and Description
List<Container> containers()

Get the containers property: List of container definitions for the Container App.

Dapr dapr()

Get the dapr property: Dapr configuration for the Container App.

static Template fromJson(JsonReader jsonReader)

Reads an instance of Template from the JsonReader.

String revisionSuffix()

Get the revisionSuffix property: User friendly suffix that is appended to the revision name.

Scale scale()

Get the scale property: Scaling properties for the Container App.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Template withContainers(List<Container> containers)

Set the containers property: List of container definitions for the Container App.

Template withDapr(Dapr dapr)

Set the dapr property: Dapr configuration for the Container App.

Template withRevisionSuffix(String revisionSuffix)

Set the revisionSuffix property: User friendly suffix that is appended to the revision name.

Template withScale(Scale scale)

Set the scale property: Scaling properties for the Container App.

Methods inherited from java.lang.Object

Constructor Details

Template

public Template()

Creates an instance of Template class.

Method Details

containers

public List containers()

Get the containers property: List of container definitions for the Container App.

Returns:

the containers value.

dapr

public Dapr dapr()

Get the dapr property: Dapr configuration for the Container App.

Returns:

the dapr value.

fromJson

public static Template fromJson(JsonReader jsonReader)

Reads an instance of Template from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Template 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 Template.

revisionSuffix

public String revisionSuffix()

Get the revisionSuffix property: User friendly suffix that is appended to the revision name.

Returns:

the revisionSuffix value.

scale

public Scale scale()

Get the scale property: Scaling properties for the Container App.

Returns:

the scale value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContainers

public Template withContainers(List containers)

Set the containers property: List of container definitions for the Container App.

Parameters:

containers - the containers value to set.

Returns:

the Template object itself.

withDapr

public Template withDapr(Dapr dapr)

Set the dapr property: Dapr configuration for the Container App.

Parameters:

dapr - the dapr value to set.

Returns:

the Template object itself.

withRevisionSuffix

public Template withRevisionSuffix(String revisionSuffix)

Set the revisionSuffix property: User friendly suffix that is appended to the revision name.

Parameters:

revisionSuffix - the revisionSuffix value to set.

Returns:

the Template object itself.

withScale

public Template withScale(Scale scale)

Set the scale property: Scaling properties for the Container App.

Parameters:

scale - the scale value to set.

Returns:

the Template object itself.

Applies to