Container Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Container
- com.
Implements
public final class Container
implements JsonSerializable<Container>
Container App container definition.
Constructor Summary
Constructor | Description |
---|---|
Container() |
Creates an instance of Container class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
args()
Get the args property: Container start command arguments. |
List<String> |
command()
Get the command property: Container start command. |
List<Environment |
env()
Get the env property: Container environment variables. |
static Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container from the Json |
String |
image()
Get the image property: Container image tag. |
String |
name()
Get the name property: Custom container name. |
Container |
resources()
Get the resources property: Container resource requirements. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Container |
withArgs(List<String> args)
Set the args property: Container start command arguments. |
Container |
withCommand(List<String> command)
Set the command property: Container start command. |
Container |
withEnv(List<EnvironmentVar> env)
Set the env property: Container environment variables. |
Container |
withImage(String image)
Set the image property: Container image tag. |
Container |
withName(String name)
Set the name property: Custom container name. |
Container |
withResources(ContainerResources resources)
Set the resources property: Container resource requirements. |
Methods inherited from java.lang.Object
Constructor Details
Container
public Container()
Creates an instance of Container class.
Method Details
args
public List
Get the args property: Container start command arguments.
Returns:
command
public List
Get the command property: Container start command.
Returns:
env
public List
Get the env property: Container environment variables.
Returns:
fromJson
public static Container fromJson(JsonReader jsonReader)
Reads an instance of Container from the JsonReader.
Parameters:
Returns:
Throws:
image
public String image()
Get the image property: Container image tag.
Returns:
name
public String name()
Get the name property: Custom container name.
Returns:
resources
public ContainerResources resources()
Get the resources property: Container resource requirements.
Returns:
toJson
validate
public void validate()
Validates the instance.
withArgs
public Container withArgs(List
Set the args property: Container start command arguments.
Parameters:
Returns:
withCommand
public Container withCommand(List
Set the command property: Container start command.
Parameters:
Returns:
withEnv
public Container withEnv(List
Set the env property: Container environment variables.
Parameters:
Returns:
withImage
public Container withImage(String image)
Set the image property: Container image tag.
Parameters:
Returns:
withName
public Container withName(String name)
Set the name property: Custom container name.
Parameters:
Returns:
withResources
public Container withResources(ContainerResources resources)
Set the resources property: Container resource requirements.
Parameters:
Returns:
Applies to
Azure SDK for Java