Class TaskContainerSettings
java.lang.Object
com.microsoft.azure.management.batch.TaskContainerSettings
The container settings for a task.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet these additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.Get this is the full image reference, as would be specified to "docker pull".registry()
Get this setting can be omitted if was already provided at pool creation.withContainerRunOptions
(String containerRunOptions) Set these additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.withImageName
(String imageName) Set this is the full image reference, as would be specified to "docker pull".withRegistry
(ContainerRegistry registry) Set this setting can be omitted if was already provided at pool creation.withWorkingDirectory
(ContainerWorkingDirectory workingDirectory) Set possible values include: 'TaskWorkingDirectory', 'ContainerImageDefault'.Get possible values include: 'TaskWorkingDirectory', 'ContainerImageDefault'.
-
Constructor Details
-
TaskContainerSettings
public TaskContainerSettings()
-
-
Method Details
-
containerRunOptions
Get these additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.- Returns:
- the containerRunOptions value
-
withContainerRunOptions
Set these additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.- Parameters:
containerRunOptions
- the containerRunOptions value to set- Returns:
- the TaskContainerSettings object itself.
-
imageName
Get this is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.- Returns:
- the imageName value
-
withImageName
Set this is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.- Parameters:
imageName
- the imageName value to set- Returns:
- the TaskContainerSettings object itself.
-
registry
Get this setting can be omitted if was already provided at pool creation.- Returns:
- the registry value
-
withRegistry
Set this setting can be omitted if was already provided at pool creation.- Parameters:
registry
- the registry value to set- Returns:
- the TaskContainerSettings object itself.
-
workingDirectory
Get possible values include: 'TaskWorkingDirectory', 'ContainerImageDefault'.- Returns:
- the workingDirectory value
-
withWorkingDirectory
Set possible values include: 'TaskWorkingDirectory', 'ContainerImageDefault'.- Parameters:
workingDirectory
- the workingDirectory value to set- Returns:
- the TaskContainerSettings object itself.
-