Class JobExecutionContainer
java.lang.Object
com.azure.resourcemanager.appcontainers.models.JobExecutionContainer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobExecutionContainer>
public final class JobExecutionContainer
extends Object
implements com.azure.json.JsonSerializable<JobExecutionContainer>
Container Apps Jobs execution container definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()
Get the args property: Container start command arguments.command()
Get the command property: Container start command.env()
Get the env property: Container environment variables.static JobExecutionContainer
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobExecutionContainer from the JsonReader.image()
Get the image property: Container image tag.name()
Get the name property: Custom container name.Get the resources property: Container resource requirements.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the args property: Container start command arguments.withCommand
(List<String> command) Set the command property: Container start command.withEnv
(List<EnvironmentVar> env) Set the env property: Container environment variables.Set the image property: Container image tag.Set the name property: Custom container name.withResources
(ContainerResources resources) Set the resources property: Container resource requirements.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
-
JobExecutionContainer
public JobExecutionContainer()Creates an instance of JobExecutionContainer class.
-
-
Method Details
-
image
Get the image property: Container image tag.- Returns:
- the image value.
-
withImage
Set the image property: Container image tag.- Parameters:
image
- the image value to set.- Returns:
- the JobExecutionContainer object itself.
-
name
Get the name property: Custom container name.- Returns:
- the name value.
-
withName
Set the name property: Custom container name.- Parameters:
name
- the name value to set.- Returns:
- the JobExecutionContainer object itself.
-
command
Get the command property: Container start command.- Returns:
- the command value.
-
withCommand
Set the command property: Container start command.- Parameters:
command
- the command value to set.- Returns:
- the JobExecutionContainer object itself.
-
args
Get the args property: Container start command arguments.- Returns:
- the args value.
-
withArgs
Set the args property: Container start command arguments.- Parameters:
args
- the args value to set.- Returns:
- the JobExecutionContainer object itself.
-
env
Get the env property: Container environment variables.- Returns:
- the env value.
-
withEnv
Set the env property: Container environment variables.- Parameters:
env
- the env value to set.- Returns:
- the JobExecutionContainer object itself.
-
resources
Get the resources property: Container resource requirements.- Returns:
- the resources value.
-
withResources
Set the resources property: Container resource requirements.- Parameters:
resources
- the resources value to set.- Returns:
- the JobExecutionContainer 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<JobExecutionContainer>
- Throws:
IOException
-
fromJson
public static JobExecutionContainer fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of JobExecutionContainer from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of JobExecutionContainer 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 JobExecutionContainer.
-