
com.pulumi.azurenative.batch.outputs.TaskContainerSettingsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.batch.outputs;
import com.pulumi.azurenative.batch.outputs.ContainerRegistryResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TaskContainerSettingsResponse {
/**
* @return These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
*
*/
private @Nullable String containerRunOptions;
/**
* @return 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.
*
*/
private String imageName;
/**
* @return This setting can be omitted if was already provided at pool creation.
*
*/
private @Nullable ContainerRegistryResponse registry;
private @Nullable String workingDirectory;
private TaskContainerSettingsResponse() {}
/**
* @return These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
*
*/
public Optional containerRunOptions() {
return Optional.ofNullable(this.containerRunOptions);
}
/**
* @return 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.
*
*/
public String imageName() {
return this.imageName;
}
/**
* @return This setting can be omitted if was already provided at pool creation.
*
*/
public Optional registry() {
return Optional.ofNullable(this.registry);
}
public Optional workingDirectory() {
return Optional.ofNullable(this.workingDirectory);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TaskContainerSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String containerRunOptions;
private String imageName;
private @Nullable ContainerRegistryResponse registry;
private @Nullable String workingDirectory;
public Builder() {}
public Builder(TaskContainerSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.containerRunOptions = defaults.containerRunOptions;
this.imageName = defaults.imageName;
this.registry = defaults.registry;
this.workingDirectory = defaults.workingDirectory;
}
@CustomType.Setter
public Builder containerRunOptions(@Nullable String containerRunOptions) {
this.containerRunOptions = containerRunOptions;
return this;
}
@CustomType.Setter
public Builder imageName(String imageName) {
if (imageName == null) {
throw new MissingRequiredPropertyException("TaskContainerSettingsResponse", "imageName");
}
this.imageName = imageName;
return this;
}
@CustomType.Setter
public Builder registry(@Nullable ContainerRegistryResponse registry) {
this.registry = registry;
return this;
}
@CustomType.Setter
public Builder workingDirectory(@Nullable String workingDirectory) {
this.workingDirectory = workingDirectory;
return this;
}
public TaskContainerSettingsResponse build() {
final var _resultValue = new TaskContainerSettingsResponse();
_resultValue.containerRunOptions = containerRunOptions;
_resultValue.imageName = imageName;
_resultValue.registry = registry;
_resultValue.workingDirectory = workingDirectory;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy