Class JobTemplate
java.lang.Object
com.azure.resourcemanager.appcontainers.models.JobTemplate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobTemplate>
public final class JobTemplate
extends Object
implements com.azure.json.JsonSerializable<JobTemplate>
Container Apps Job 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 JobTemplate
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobTemplate from the JsonReader.Get the initContainers property: List of specialized containers that run before app containers.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.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
-
JobTemplate
public JobTemplate()Creates an instance of JobTemplate class.
-
-
Method Details
-
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 JobTemplate 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 JobTemplate 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 JobTemplate 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<JobTemplate>
- Throws:
IOException
-
fromJson
Reads an instance of JobTemplate from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of JobTemplate 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 JobTemplate.
-