Class Template
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.Template
-
public final class Template extends Object
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
Constructors Constructor Description Template()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Container>containers()Get the containers property: List of container definitions for the Container App.Daprdapr()Get the dapr property: Dapr configuration for the Container App.StringrevisionSuffix()Get the revisionSuffix property: User friendly suffix that is appended to the revision name.Scalescale()Get the scale property: Scaling properties for the Container App.voidvalidate()Validates the instance.TemplatewithContainers(List<Container> containers)Set the containers property: List of container definitions for the Container App.TemplatewithDapr(Dapr dapr)Set the dapr property: Dapr configuration for the Container App.TemplatewithRevisionSuffix(String revisionSuffix)Set the revisionSuffix property: User friendly suffix that is appended to the revision name.TemplatewithScale(Scale scale)Set the scale property: Scaling properties for the Container App.
-
-
-
Method Detail
-
revisionSuffix
public String revisionSuffix()
Get the revisionSuffix property: User friendly suffix that is appended to the revision name.- Returns:
- the revisionSuffix value.
-
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.
-
containers
public List<Container> containers()
Get the containers property: List of container definitions for the Container App.- Returns:
- the containers value.
-
withContainers
public Template withContainers(List<Container> 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.
-
scale
public Scale scale()
Get the scale property: Scaling properties for the Container App.- Returns:
- the scale value.
-
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.
-
dapr
public Dapr dapr()
Get the dapr property: Dapr configuration for the Container App.- Returns:
- the dapr value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-