All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.containerregistry.outputs.FileTaskStepResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
Show newest version
// *** 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.containerregistry.outputs;

import com.pulumi.azurenative.containerregistry.outputs.BaseImageDependencyResponse;
import com.pulumi.azurenative.containerregistry.outputs.SetValueResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FileTaskStepResponse {
    /**
     * @return List of base image dependencies for a step.
     * 
     */
    private List baseImageDependencies;
    /**
     * @return The token (git PAT or SAS token of storage account blob) associated with the context for a step.
     * 
     */
    private @Nullable String contextAccessToken;
    /**
     * @return The URL(absolute or relative) of the source context for the task step.
     * 
     */
    private @Nullable String contextPath;
    /**
     * @return The task template/definition file path relative to the source context.
     * 
     */
    private String taskFilePath;
    /**
     * @return The type of the step.
     * Expected value is 'FileTask'.
     * 
     */
    private String type;
    /**
     * @return The collection of overridable values that can be passed when running a task.
     * 
     */
    private @Nullable List values;
    /**
     * @return The task values/parameters file path relative to the source context.
     * 
     */
    private @Nullable String valuesFilePath;

    private FileTaskStepResponse() {}
    /**
     * @return List of base image dependencies for a step.
     * 
     */
    public List baseImageDependencies() {
        return this.baseImageDependencies;
    }
    /**
     * @return The token (git PAT or SAS token of storage account blob) associated with the context for a step.
     * 
     */
    public Optional contextAccessToken() {
        return Optional.ofNullable(this.contextAccessToken);
    }
    /**
     * @return The URL(absolute or relative) of the source context for the task step.
     * 
     */
    public Optional contextPath() {
        return Optional.ofNullable(this.contextPath);
    }
    /**
     * @return The task template/definition file path relative to the source context.
     * 
     */
    public String taskFilePath() {
        return this.taskFilePath;
    }
    /**
     * @return The type of the step.
     * Expected value is 'FileTask'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The collection of overridable values that can be passed when running a task.
     * 
     */
    public List values() {
        return this.values == null ? List.of() : this.values;
    }
    /**
     * @return The task values/parameters file path relative to the source context.
     * 
     */
    public Optional valuesFilePath() {
        return Optional.ofNullable(this.valuesFilePath);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(FileTaskStepResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List baseImageDependencies;
        private @Nullable String contextAccessToken;
        private @Nullable String contextPath;
        private String taskFilePath;
        private String type;
        private @Nullable List values;
        private @Nullable String valuesFilePath;
        public Builder() {}
        public Builder(FileTaskStepResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.baseImageDependencies = defaults.baseImageDependencies;
    	      this.contextAccessToken = defaults.contextAccessToken;
    	      this.contextPath = defaults.contextPath;
    	      this.taskFilePath = defaults.taskFilePath;
    	      this.type = defaults.type;
    	      this.values = defaults.values;
    	      this.valuesFilePath = defaults.valuesFilePath;
        }

        @CustomType.Setter
        public Builder baseImageDependencies(List baseImageDependencies) {
            if (baseImageDependencies == null) {
              throw new MissingRequiredPropertyException("FileTaskStepResponse", "baseImageDependencies");
            }
            this.baseImageDependencies = baseImageDependencies;
            return this;
        }
        public Builder baseImageDependencies(BaseImageDependencyResponse... baseImageDependencies) {
            return baseImageDependencies(List.of(baseImageDependencies));
        }
        @CustomType.Setter
        public Builder contextAccessToken(@Nullable String contextAccessToken) {

            this.contextAccessToken = contextAccessToken;
            return this;
        }
        @CustomType.Setter
        public Builder contextPath(@Nullable String contextPath) {

            this.contextPath = contextPath;
            return this;
        }
        @CustomType.Setter
        public Builder taskFilePath(String taskFilePath) {
            if (taskFilePath == null) {
              throw new MissingRequiredPropertyException("FileTaskStepResponse", "taskFilePath");
            }
            this.taskFilePath = taskFilePath;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("FileTaskStepResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder values(@Nullable List values) {

            this.values = values;
            return this;
        }
        public Builder values(SetValueResponse... values) {
            return values(List.of(values));
        }
        @CustomType.Setter
        public Builder valuesFilePath(@Nullable String valuesFilePath) {

            this.valuesFilePath = valuesFilePath;
            return this;
        }
        public FileTaskStepResponse build() {
            final var _resultValue = new FileTaskStepResponse();
            _resultValue.baseImageDependencies = baseImageDependencies;
            _resultValue.contextAccessToken = contextAccessToken;
            _resultValue.contextPath = contextPath;
            _resultValue.taskFilePath = taskFilePath;
            _resultValue.type = type;
            _resultValue.values = values;
            _resultValue.valuesFilePath = valuesFilePath;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy