Class CustomContainer
java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomContainer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomContainer>
public final class CustomContainer
extends Object
implements com.azure.json.JsonSerializable<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.static CustomContainerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomContainer from the JsonReader.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CustomContainer
public CustomContainer()Creates an instance of CustomContainer class.
-
-
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. Supported values: "springboot", "", null.- Returns:
- the languageFramework value.
-
withLanguageFramework
Set the languageFramework property: Language framework of the container image uploaded. Supported values: "springboot", "", null.- 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CustomContainer>- Throws:
IOException
-
fromJson
Reads an instance of CustomContainer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomContainer 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 CustomContainer.
-