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

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

There is a newer version: 2.82.0
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.ArgumentResponse;
import com.pulumi.azurenative.containerregistry.outputs.SetValueResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OverrideTaskStepPropertiesResponse {
    /**
     * @return Gets or sets the collection of override arguments to be used when
     * executing a build step.
     * 
     */
    private @Nullable List arguments;
    /**
     * @return The source context against which run has to be queued.
     * 
     */
    private @Nullable String contextPath;
    /**
     * @return The file against which run has to be queued.
     * 
     */
    private @Nullable String file;
    /**
     * @return The name of the target build stage for the docker build.
     * 
     */
    private @Nullable String target;
    /**
     * @return Base64 encoded update trigger token that will be attached with the base image trigger webhook.
     * 
     */
    private @Nullable String updateTriggerToken;
    /**
     * @return The collection of overridable values that can be passed when running a Task.
     * 
     */
    private @Nullable List values;

    private OverrideTaskStepPropertiesResponse() {}
    /**
     * @return Gets or sets the collection of override arguments to be used when
     * executing a build step.
     * 
     */
    public List arguments() {
        return this.arguments == null ? List.of() : this.arguments;
    }
    /**
     * @return The source context against which run has to be queued.
     * 
     */
    public Optional contextPath() {
        return Optional.ofNullable(this.contextPath);
    }
    /**
     * @return The file against which run has to be queued.
     * 
     */
    public Optional file() {
        return Optional.ofNullable(this.file);
    }
    /**
     * @return The name of the target build stage for the docker build.
     * 
     */
    public Optional target() {
        return Optional.ofNullable(this.target);
    }
    /**
     * @return Base64 encoded update trigger token that will be attached with the base image trigger webhook.
     * 
     */
    public Optional updateTriggerToken() {
        return Optional.ofNullable(this.updateTriggerToken);
    }
    /**
     * @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;
    }

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

    public static Builder builder(OverrideTaskStepPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List arguments;
        private @Nullable String contextPath;
        private @Nullable String file;
        private @Nullable String target;
        private @Nullable String updateTriggerToken;
        private @Nullable List values;
        public Builder() {}
        public Builder(OverrideTaskStepPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arguments = defaults.arguments;
    	      this.contextPath = defaults.contextPath;
    	      this.file = defaults.file;
    	      this.target = defaults.target;
    	      this.updateTriggerToken = defaults.updateTriggerToken;
    	      this.values = defaults.values;
        }

        @CustomType.Setter
        public Builder arguments(@Nullable List arguments) {

            this.arguments = arguments;
            return this;
        }
        public Builder arguments(ArgumentResponse... arguments) {
            return arguments(List.of(arguments));
        }
        @CustomType.Setter
        public Builder contextPath(@Nullable String contextPath) {

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

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

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

            this.updateTriggerToken = updateTriggerToken;
            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));
        }
        public OverrideTaskStepPropertiesResponse build() {
            final var _resultValue = new OverrideTaskStepPropertiesResponse();
            _resultValue.arguments = arguments;
            _resultValue.contextPath = contextPath;
            _resultValue.file = file;
            _resultValue.target = target;
            _resultValue.updateTriggerToken = updateTriggerToken;
            _resultValue.values = values;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy