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

com.pulumi.azure.containerservice.RegistryTaskArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.containerservice;

import com.pulumi.azure.containerservice.inputs.RegistryTaskAgentSettingArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskBaseImageTriggerArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskDockerStepArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskEncodedStepArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskFileStepArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskIdentityArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskPlatformArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskRegistryCredentialArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskSourceTriggerArgs;
import com.pulumi.azure.containerservice.inputs.RegistryTaskTimerTriggerArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RegistryTaskArgs Empty = new RegistryTaskArgs();

    /**
     * The name of the dedicated Container Registry Agent Pool for this Container Registry Task.
     * 
     */
    @Import(name="agentPoolName")
    private @Nullable Output agentPoolName;

    /**
     * @return The name of the dedicated Container Registry Agent Pool for this Container Registry Task.
     * 
     */
    public Optional> agentPoolName() {
        return Optional.ofNullable(this.agentPoolName);
    }

    /**
     * A `agent_setting` block as defined below.
     * 
     */
    @Import(name="agentSetting")
    private @Nullable Output agentSetting;

    /**
     * @return A `agent_setting` block as defined below.
     * 
     */
    public Optional> agentSetting() {
        return Optional.ofNullable(this.agentSetting);
    }

    /**
     * A `base_image_trigger` block as defined below.
     * 
     */
    @Import(name="baseImageTrigger")
    private @Nullable Output baseImageTrigger;

    /**
     * @return A `base_image_trigger` block as defined below.
     * 
     */
    public Optional> baseImageTrigger() {
        return Optional.ofNullable(this.baseImageTrigger);
    }

    /**
     * The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created.
     * 
     */
    @Import(name="containerRegistryId", required=true)
    private Output containerRegistryId;

    /**
     * @return The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created.
     * 
     */
    public Output containerRegistryId() {
        return this.containerRegistryId;
    }

    /**
     * A `docker_step` block as defined below.
     * 
     */
    @Import(name="dockerStep")
    private @Nullable Output dockerStep;

    /**
     * @return A `docker_step` block as defined below.
     * 
     */
    public Optional> dockerStep() {
        return Optional.ofNullable(this.dockerStep);
    }

    /**
     * Should this Container Registry Task be enabled? Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Should this Container Registry Task be enabled? Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * A `encoded_step` block as defined below.
     * 
     */
    @Import(name="encodedStep")
    private @Nullable Output encodedStep;

    /**
     * @return A `encoded_step` block as defined below.
     * 
     */
    public Optional> encodedStep() {
        return Optional.ofNullable(this.encodedStep);
    }

    /**
     * A `file_step` block as defined below.
     * 
     * > **NOTE:** For non-system task (when `is_system_task` is set to `false`), one and only one of the `docker_step`, `encoded_step` and `file_step` should be specified.
     * 
     */
    @Import(name="fileStep")
    private @Nullable Output fileStep;

    /**
     * @return A `file_step` block as defined below.
     * 
     * > **NOTE:** For non-system task (when `is_system_task` is set to `false`), one and only one of the `docker_step`, `encoded_step` and `file_step` should be specified.
     * 
     */
    public Optional> fileStep() {
        return Optional.ofNullable(this.fileStep);
    }

    /**
     * An `identity` block as defined below.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return An `identity` block as defined below.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`.
     * 
     */
    @Import(name="isSystemTask")
    private @Nullable Output isSystemTask;

    /**
     * @return Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`.
     * 
     */
    public Optional> isSystemTask() {
        return Optional.ofNullable(this.isSystemTask);
    }

    @Import(name="logTemplate")
    private @Nullable Output logTemplate;

    public Optional> logTemplate() {
        return Optional.ofNullable(this.logTemplate);
    }

    /**
     * The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A `platform` block as defined below.
     * 
     * > **NOTE:** The `platform` is required for non-system task (when `is_system_task` is set to `false`).
     * 
     */
    @Import(name="platform")
    private @Nullable Output platform;

    /**
     * @return A `platform` block as defined below.
     * 
     * > **NOTE:** The `platform` is required for non-system task (when `is_system_task` is set to `false`).
     * 
     */
    public Optional> platform() {
        return Optional.ofNullable(this.platform);
    }

    @Import(name="registryCredential")
    private @Nullable Output registryCredential;

    public Optional> registryCredential() {
        return Optional.ofNullable(this.registryCredential);
    }

    /**
     * One or more `source_trigger` blocks as defined below.
     * 
     */
    @Import(name="sourceTriggers")
    private @Nullable Output> sourceTriggers;

    /**
     * @return One or more `source_trigger` blocks as defined below.
     * 
     */
    public Optional>> sourceTriggers() {
        return Optional.ofNullable(this.sourceTriggers);
    }

    @Import(name="tags")
    private @Nullable Output> tags;

    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    @Import(name="timeoutInSeconds")
    private @Nullable Output timeoutInSeconds;

    public Optional> timeoutInSeconds() {
        return Optional.ofNullable(this.timeoutInSeconds);
    }

    /**
     * One or more `timer_trigger` blocks as defined below.
     * 
     */
    @Import(name="timerTriggers")
    private @Nullable Output> timerTriggers;

    /**
     * @return One or more `timer_trigger` blocks as defined below.
     * 
     */
    public Optional>> timerTriggers() {
        return Optional.ofNullable(this.timerTriggers);
    }

    private RegistryTaskArgs() {}

    private RegistryTaskArgs(RegistryTaskArgs $) {
        this.agentPoolName = $.agentPoolName;
        this.agentSetting = $.agentSetting;
        this.baseImageTrigger = $.baseImageTrigger;
        this.containerRegistryId = $.containerRegistryId;
        this.dockerStep = $.dockerStep;
        this.enabled = $.enabled;
        this.encodedStep = $.encodedStep;
        this.fileStep = $.fileStep;
        this.identity = $.identity;
        this.isSystemTask = $.isSystemTask;
        this.logTemplate = $.logTemplate;
        this.name = $.name;
        this.platform = $.platform;
        this.registryCredential = $.registryCredential;
        this.sourceTriggers = $.sourceTriggers;
        this.tags = $.tags;
        this.timeoutInSeconds = $.timeoutInSeconds;
        this.timerTriggers = $.timerTriggers;
    }

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

    public static final class Builder {
        private RegistryTaskArgs $;

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

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

        /**
         * @param agentPoolName The name of the dedicated Container Registry Agent Pool for this Container Registry Task.
         * 
         * @return builder
         * 
         */
        public Builder agentPoolName(@Nullable Output agentPoolName) {
            $.agentPoolName = agentPoolName;
            return this;
        }

        /**
         * @param agentPoolName The name of the dedicated Container Registry Agent Pool for this Container Registry Task.
         * 
         * @return builder
         * 
         */
        public Builder agentPoolName(String agentPoolName) {
            return agentPoolName(Output.of(agentPoolName));
        }

        /**
         * @param agentSetting A `agent_setting` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder agentSetting(@Nullable Output agentSetting) {
            $.agentSetting = agentSetting;
            return this;
        }

        /**
         * @param agentSetting A `agent_setting` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder agentSetting(RegistryTaskAgentSettingArgs agentSetting) {
            return agentSetting(Output.of(agentSetting));
        }

        /**
         * @param baseImageTrigger A `base_image_trigger` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder baseImageTrigger(@Nullable Output baseImageTrigger) {
            $.baseImageTrigger = baseImageTrigger;
            return this;
        }

        /**
         * @param baseImageTrigger A `base_image_trigger` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder baseImageTrigger(RegistryTaskBaseImageTriggerArgs baseImageTrigger) {
            return baseImageTrigger(Output.of(baseImageTrigger));
        }

        /**
         * @param containerRegistryId The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created.
         * 
         * @return builder
         * 
         */
        public Builder containerRegistryId(Output containerRegistryId) {
            $.containerRegistryId = containerRegistryId;
            return this;
        }

        /**
         * @param containerRegistryId The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created.
         * 
         * @return builder
         * 
         */
        public Builder containerRegistryId(String containerRegistryId) {
            return containerRegistryId(Output.of(containerRegistryId));
        }

        /**
         * @param dockerStep A `docker_step` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder dockerStep(@Nullable Output dockerStep) {
            $.dockerStep = dockerStep;
            return this;
        }

        /**
         * @param dockerStep A `docker_step` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder dockerStep(RegistryTaskDockerStepArgs dockerStep) {
            return dockerStep(Output.of(dockerStep));
        }

        /**
         * @param enabled Should this Container Registry Task be enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Should this Container Registry Task be enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param encodedStep A `encoded_step` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder encodedStep(@Nullable Output encodedStep) {
            $.encodedStep = encodedStep;
            return this;
        }

        /**
         * @param encodedStep A `encoded_step` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder encodedStep(RegistryTaskEncodedStepArgs encodedStep) {
            return encodedStep(Output.of(encodedStep));
        }

        /**
         * @param fileStep A `file_step` block as defined below.
         * 
         * > **NOTE:** For non-system task (when `is_system_task` is set to `false`), one and only one of the `docker_step`, `encoded_step` and `file_step` should be specified.
         * 
         * @return builder
         * 
         */
        public Builder fileStep(@Nullable Output fileStep) {
            $.fileStep = fileStep;
            return this;
        }

        /**
         * @param fileStep A `file_step` block as defined below.
         * 
         * > **NOTE:** For non-system task (when `is_system_task` is set to `false`), one and only one of the `docker_step`, `encoded_step` and `file_step` should be specified.
         * 
         * @return builder
         * 
         */
        public Builder fileStep(RegistryTaskFileStepArgs fileStep) {
            return fileStep(Output.of(fileStep));
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(RegistryTaskIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param isSystemTask Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder isSystemTask(@Nullable Output isSystemTask) {
            $.isSystemTask = isSystemTask;
            return this;
        }

        /**
         * @param isSystemTask Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder isSystemTask(Boolean isSystemTask) {
            return isSystemTask(Output.of(isSystemTask));
        }

        public Builder logTemplate(@Nullable Output logTemplate) {
            $.logTemplate = logTemplate;
            return this;
        }

        public Builder logTemplate(String logTemplate) {
            return logTemplate(Output.of(logTemplate));
        }

        /**
         * @param name The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param platform A `platform` block as defined below.
         * 
         * > **NOTE:** The `platform` is required for non-system task (when `is_system_task` is set to `false`).
         * 
         * @return builder
         * 
         */
        public Builder platform(@Nullable Output platform) {
            $.platform = platform;
            return this;
        }

        /**
         * @param platform A `platform` block as defined below.
         * 
         * > **NOTE:** The `platform` is required for non-system task (when `is_system_task` is set to `false`).
         * 
         * @return builder
         * 
         */
        public Builder platform(RegistryTaskPlatformArgs platform) {
            return platform(Output.of(platform));
        }

        public Builder registryCredential(@Nullable Output registryCredential) {
            $.registryCredential = registryCredential;
            return this;
        }

        public Builder registryCredential(RegistryTaskRegistryCredentialArgs registryCredential) {
            return registryCredential(Output.of(registryCredential));
        }

        /**
         * @param sourceTriggers One or more `source_trigger` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder sourceTriggers(@Nullable Output> sourceTriggers) {
            $.sourceTriggers = sourceTriggers;
            return this;
        }

        /**
         * @param sourceTriggers One or more `source_trigger` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder sourceTriggers(List sourceTriggers) {
            return sourceTriggers(Output.of(sourceTriggers));
        }

        /**
         * @param sourceTriggers One or more `source_trigger` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder sourceTriggers(RegistryTaskSourceTriggerArgs... sourceTriggers) {
            return sourceTriggers(List.of(sourceTriggers));
        }

        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public Builder timeoutInSeconds(@Nullable Output timeoutInSeconds) {
            $.timeoutInSeconds = timeoutInSeconds;
            return this;
        }

        public Builder timeoutInSeconds(Integer timeoutInSeconds) {
            return timeoutInSeconds(Output.of(timeoutInSeconds));
        }

        /**
         * @param timerTriggers One or more `timer_trigger` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder timerTriggers(@Nullable Output> timerTriggers) {
            $.timerTriggers = timerTriggers;
            return this;
        }

        /**
         * @param timerTriggers One or more `timer_trigger` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder timerTriggers(List timerTriggers) {
            return timerTriggers(Output.of(timerTriggers));
        }

        /**
         * @param timerTriggers One or more `timer_trigger` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder timerTriggers(RegistryTaskTimerTriggerArgs... timerTriggers) {
            return timerTriggers(List.of(timerTriggers));
        }

        public RegistryTaskArgs build() {
            if ($.containerRegistryId == null) {
                throw new MissingRequiredPropertyException("RegistryTaskArgs", "containerRegistryId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy