Class Template
java.lang.Object
com.azure.resourcemanager.appcontainers.models.Template
- All Implemented Interfaces:
com.azure.json.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the containers property: List of container definitions for the Container App.static Template
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Template from the JsonReader.Get the initContainers property: List of specialized containers that run before app containers.Get the revisionSuffix property: User friendly suffix that is appended to the revision name.scale()
Get the scale property: Scaling properties for the Container App.Get the serviceBinds property: List of container app services bound to the app.Get the terminationGracePeriodSeconds property: Optional duration in seconds the Container App Instance needs to terminate gracefully.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.volumes()
Get the volumes property: List of volume definitions for the Container App.withContainers
(List<Container> containers) Set the containers property: List of container definitions for the Container App.withInitContainers
(List<InitContainer> initContainers) Set the initContainers property: List of specialized containers that run before app containers.withRevisionSuffix
(String revisionSuffix) Set the revisionSuffix property: User friendly suffix that is appended to the revision name.Set the scale property: Scaling properties for the Container App.withServiceBinds
(List<ServiceBind> serviceBinds) Set the serviceBinds property: List of container app services bound to the app.withTerminationGracePeriodSeconds
(Long terminationGracePeriodSeconds) Set the terminationGracePeriodSeconds property: Optional duration in seconds the Container App Instance needs to terminate gracefully.withVolumes
(List<Volume> volumes) Set the volumes property: List of volume definitions for the Container App.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Template
public Template()Creates an instance of Template class.
-
-
Method Details
-
revisionSuffix
Get the revisionSuffix property: User friendly suffix that is appended to the revision name.- Returns:
- the revisionSuffix value.
-
withRevisionSuffix
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.
-
terminationGracePeriodSeconds
Get the terminationGracePeriodSeconds property: Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.- Returns:
- the terminationGracePeriodSeconds value.
-
withTerminationGracePeriodSeconds
Set the terminationGracePeriodSeconds property: Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.- Parameters:
terminationGracePeriodSeconds
- the terminationGracePeriodSeconds value to set.- Returns:
- the Template object itself.
-
initContainers
Get the initContainers property: List of specialized containers that run before app containers.- Returns:
- the initContainers value.
-
withInitContainers
Set the initContainers property: List of specialized containers that run before app containers.- Parameters:
initContainers
- the initContainers value to set.- Returns:
- the Template object itself.
-
containers
Get the containers property: List of container definitions for the Container App.- Returns:
- the containers value.
-
withContainers
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
Get the scale property: Scaling properties for the Container App.- Returns:
- the scale value.
-
withScale
Set the scale property: Scaling properties for the Container App.- Parameters:
scale
- the scale value to set.- Returns:
- the Template object itself.
-
volumes
Get the volumes property: List of volume definitions for the Container App.- Returns:
- the volumes value.
-
withVolumes
Set the volumes property: List of volume definitions for the Container App.- Parameters:
volumes
- the volumes value to set.- Returns:
- the Template object itself.
-
serviceBinds
Get the serviceBinds property: List of container app services bound to the app.- Returns:
- the serviceBinds value.
-
withServiceBinds
Set the serviceBinds property: List of container app services bound to the app.- Parameters:
serviceBinds
- the serviceBinds value to set.- Returns:
- the Template object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Template>
- Throws:
IOException
-
fromJson
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.
-