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

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

There is a newer version: 2.78.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;

import com.pulumi.azurenative.containerregistry.inputs.DockerBuildRequestArgs;
import com.pulumi.azurenative.containerregistry.inputs.EncodedTaskRunRequestArgs;
import com.pulumi.azurenative.containerregistry.inputs.FileTaskRunRequestArgs;
import com.pulumi.azurenative.containerregistry.inputs.IdentityPropertiesArgs;
import com.pulumi.azurenative.containerregistry.inputs.TaskRunRequestArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TaskRunArgs Empty = new TaskRunArgs();

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

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

    /**
     * Identity for the resource.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Identity for the resource.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The location of the resource
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of the resource
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * 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 name of the resource group to which the container registry belongs.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group to which the container registry belongs.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The request (parameters) for the run
     * 
     */
    @Import(name="runRequest")
    private @Nullable Output runRequest;

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

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

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

    private TaskRunArgs() {}

    private TaskRunArgs(TaskRunArgs $) {
        this.forceUpdateTag = $.forceUpdateTag;
        this.identity = $.identity;
        this.location = $.location;
        this.registryName = $.registryName;
        this.resourceGroupName = $.resourceGroupName;
        this.runRequest = $.runRequest;
        this.taskRunName = $.taskRunName;
    }

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

    public static final class Builder {
        private TaskRunArgs $;

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

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

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

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

        /**
         * @param identity Identity for the resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Identity for the resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(IdentityPropertiesArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The location of the resource
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location of the resource
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 resourceGroupName The name of the resource group to which the container registry belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group to which the container registry belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

        /**
         * @param runRequest The request (parameters) for the run
         * 
         * @return builder
         * 
         */
        public Builder runRequest(Object runRequest) {
            return runRequest(Output.of(runRequest));
        }

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

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

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

}