Template Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Template
- com.
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 Json |
String |
revisionSuffix()
Get the revision |
Scale |
scale()
Get the scale property: Scaling properties for the Container App. |
Json |
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 revision |
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
Get the containers property: List of container definitions for the Container App.
Returns:
dapr
public Dapr dapr()
Get the dapr property: Dapr configuration for the Container App.
Returns:
fromJson
public static Template fromJson(JsonReader jsonReader)
Reads an instance of Template from the JsonReader.
Parameters:
Returns:
Throws:
revisionSuffix
public String revisionSuffix()
Get the revisionSuffix property: User friendly suffix that is appended to the revision name.
Returns:
scale
public Scale scale()
Get the scale property: Scaling properties for the Container App.
Returns:
toJson
validate
public void validate()
Validates the instance.
withContainers
public Template withContainers(List
Set the containers property: List of container definitions for the Container App.
Parameters:
Returns:
withDapr
public Template withDapr(Dapr dapr)
Set the dapr property: Dapr configuration for the Container App.
Parameters:
Returns:
withRevisionSuffix
public Template withRevisionSuffix(String revisionSuffix)
Set the revisionSuffix property: User friendly suffix that is appended to the revision name.
Parameters:
Returns:
withScale
public Template withScale(Scale scale)
Set the scale property: Scaling properties for the Container App.
Parameters:
Returns:
Applies to
Azure SDK for Java