Class CustomContainer
java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomContainer
Custom container payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()Get the args property: Arguments to the entrypoint.command()Get the command property: Entrypoint array.Get the containerImage property: Container image of the custom container.Get the imageRegistryCredential property: Credential of the image registry.Get the languageFramework property: Language framework of the container image uploaded.server()Get the server property: The name of the registry that contains the container image.voidvalidate()Validates the instance.Set the args property: Arguments to the entrypoint.withCommand(List<String> command) Set the command property: Entrypoint array.withContainerImage(String containerImage) Set the containerImage property: Container image of the custom container.withImageRegistryCredential(ImageRegistryCredential imageRegistryCredential) Set the imageRegistryCredential property: Credential of the image registry.withLanguageFramework(String languageFramework) Set the languageFramework property: Language framework of the container image uploaded.withServer(String server) Set the server property: The name of the registry that contains the container image.
-
Constructor Details
-
CustomContainer
public CustomContainer()
-
-
Method Details
-
server
Get the server property: The name of the registry that contains the container image.- Returns:
- the server value.
-
withServer
Set the server property: The name of the registry that contains the container image.- Parameters:
server- the server value to set.- Returns:
- the CustomContainer object itself.
-
containerImage
Get the containerImage property: Container image of the custom container. This should be in the form of <repository>:<tag> without the server name of the registry.- Returns:
- the containerImage value.
-
withContainerImage
Set the containerImage property: Container image of the custom container. This should be in the form of <repository>:<tag> without the server name of the registry.- Parameters:
containerImage- the containerImage value to set.- Returns:
- the CustomContainer object itself.
-
command
Get the command property: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.- Returns:
- the command value.
-
withCommand
Set the command property: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.- Parameters:
command- the command value to set.- Returns:
- the CustomContainer object itself.
-
args
Get the args property: Arguments to the entrypoint. The docker image's CMD is used if this is not provided.- Returns:
- the args value.
-
withArgs
Set the args property: Arguments to the entrypoint. The docker image's CMD is used if this is not provided.- Parameters:
args- the args value to set.- Returns:
- the CustomContainer object itself.
-
imageRegistryCredential
Get the imageRegistryCredential property: Credential of the image registry.- Returns:
- the imageRegistryCredential value.
-
withImageRegistryCredential
Set the imageRegistryCredential property: Credential of the image registry.- Parameters:
imageRegistryCredential- the imageRegistryCredential value to set.- Returns:
- the CustomContainer object itself.
-
languageFramework
Get the languageFramework property: Language framework of the container image uploaded.- Returns:
- the languageFramework value.
-
withLanguageFramework
Set the languageFramework property: Language framework of the container image uploaded.- Parameters:
languageFramework- the languageFramework value to set.- Returns:
- the CustomContainer object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-