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

com.pulumi.azurenative.containerregistry.PipelineRunArgs Maven / Gradle / Ivy

// *** 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;

import com.pulumi.azurenative.containerregistry.inputs.PipelineRunRequestArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class PipelineRunArgs extends com.pulumi.resources.ResourceArgs {

    public static final PipelineRunArgs Empty = new PipelineRunArgs();

    /**
     * How the pipeline run should be forced to recreate even if the pipeline run configuration has not changed.
     * 
     */
    @Import(name="forceUpdateTag")
    private @Nullable Output forceUpdateTag;

    /**
     * @return How the pipeline run should be forced to recreate even if the pipeline run configuration has not changed.
     * 
     */
    public Optional> forceUpdateTag() {
        return Optional.ofNullable(this.forceUpdateTag);
    }

    /**
     * The name of the pipeline run.
     * 
     */
    @Import(name="pipelineRunName")
    private @Nullable Output pipelineRunName;

    /**
     * @return The name of the pipeline run.
     * 
     */
    public Optional> pipelineRunName() {
        return Optional.ofNullable(this.pipelineRunName);
    }

    /**
     * The name of the container registry.
     * 
     */
    @Import(name="registryName", required=true)
    private Output registryName;

    /**
     * @return The name of the container registry.
     * 
     */
    public Output registryName() {
        return this.registryName;
    }

    /**
     * The request parameters for a pipeline run.
     * 
     */
    @Import(name="request")
    private @Nullable Output request;

    /**
     * @return The request parameters for a pipeline run.
     * 
     */
    public Optional> request() {
        return Optional.ofNullable(this.request);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private PipelineRunArgs() {}

    private PipelineRunArgs(PipelineRunArgs $) {
        this.forceUpdateTag = $.forceUpdateTag;
        this.pipelineRunName = $.pipelineRunName;
        this.registryName = $.registryName;
        this.request = $.request;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private PipelineRunArgs $;

        public Builder() {
            $ = new PipelineRunArgs();
        }

        public Builder(PipelineRunArgs defaults) {
            $ = new PipelineRunArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param forceUpdateTag How the pipeline run should be forced to recreate even if the pipeline run configuration has not changed.
         * 
         * @return builder
         * 
         */
        public Builder forceUpdateTag(@Nullable Output forceUpdateTag) {
            $.forceUpdateTag = forceUpdateTag;
            return this;
        }

        /**
         * @param forceUpdateTag How the pipeline run should be forced to recreate even if the pipeline run configuration has not changed.
         * 
         * @return builder
         * 
         */
        public Builder forceUpdateTag(String forceUpdateTag) {
            return forceUpdateTag(Output.of(forceUpdateTag));
        }

        /**
         * @param pipelineRunName The name of the pipeline run.
         * 
         * @return builder
         * 
         */
        public Builder pipelineRunName(@Nullable Output pipelineRunName) {
            $.pipelineRunName = pipelineRunName;
            return this;
        }

        /**
         * @param pipelineRunName The name of the pipeline run.
         * 
         * @return builder
         * 
         */
        public Builder pipelineRunName(String pipelineRunName) {
            return pipelineRunName(Output.of(pipelineRunName));
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(Output registryName) {
            $.registryName = registryName;
            return this;
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(String registryName) {
            return registryName(Output.of(registryName));
        }

        /**
         * @param request The request parameters for a pipeline run.
         * 
         * @return builder
         * 
         */
        public Builder request(@Nullable Output request) {
            $.request = request;
            return this;
        }

        /**
         * @param request The request parameters for a pipeline run.
         * 
         * @return builder
         * 
         */
        public Builder request(PipelineRunRequestArgs request) {
            return request(Output.of(request));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public PipelineRunArgs build() {
            if ($.registryName == null) {
                throw new MissingRequiredPropertyException("PipelineRunArgs", "registryName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PipelineRunArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy