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

com.pulumi.azure.containerservice.inputs.RegistryTaskBaseImageTriggerArgs 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.inputs;

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


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

    public static final RegistryTaskBaseImageTriggerArgs Empty = new RegistryTaskBaseImageTriggerArgs();

    /**
     * Should the trigger be enabled? Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

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

    /**
     * The name which should be used for this trigger.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name which should be used for this trigger.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The type of the trigger. Possible values are `All` and `Runtime`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of the trigger. Possible values are `All` and `Runtime`.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The endpoint URL for receiving the trigger.
     * 
     */
    @Import(name="updateTriggerEndpoint")
    private @Nullable Output updateTriggerEndpoint;

    /**
     * @return The endpoint URL for receiving the trigger.
     * 
     */
    public Optional> updateTriggerEndpoint() {
        return Optional.ofNullable(this.updateTriggerEndpoint);
    }

    /**
     * Type of payload body for the trigger. Possible values are `Default` and `Token`.
     * 
     */
    @Import(name="updateTriggerPayloadType")
    private @Nullable Output updateTriggerPayloadType;

    /**
     * @return Type of payload body for the trigger. Possible values are `Default` and `Token`.
     * 
     */
    public Optional> updateTriggerPayloadType() {
        return Optional.ofNullable(this.updateTriggerPayloadType);
    }

    private RegistryTaskBaseImageTriggerArgs() {}

    private RegistryTaskBaseImageTriggerArgs(RegistryTaskBaseImageTriggerArgs $) {
        this.enabled = $.enabled;
        this.name = $.name;
        this.type = $.type;
        this.updateTriggerEndpoint = $.updateTriggerEndpoint;
        this.updateTriggerPayloadType = $.updateTriggerPayloadType;
    }

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

    public static final class Builder {
        private RegistryTaskBaseImageTriggerArgs $;

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

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

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

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

        /**
         * @param name The name which should be used for this trigger.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this trigger.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param type The type of the trigger. Possible values are `All` and `Runtime`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the trigger. Possible values are `All` and `Runtime`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param updateTriggerEndpoint The endpoint URL for receiving the trigger.
         * 
         * @return builder
         * 
         */
        public Builder updateTriggerEndpoint(@Nullable Output updateTriggerEndpoint) {
            $.updateTriggerEndpoint = updateTriggerEndpoint;
            return this;
        }

        /**
         * @param updateTriggerEndpoint The endpoint URL for receiving the trigger.
         * 
         * @return builder
         * 
         */
        public Builder updateTriggerEndpoint(String updateTriggerEndpoint) {
            return updateTriggerEndpoint(Output.of(updateTriggerEndpoint));
        }

        /**
         * @param updateTriggerPayloadType Type of payload body for the trigger. Possible values are `Default` and `Token`.
         * 
         * @return builder
         * 
         */
        public Builder updateTriggerPayloadType(@Nullable Output updateTriggerPayloadType) {
            $.updateTriggerPayloadType = updateTriggerPayloadType;
            return this;
        }

        /**
         * @param updateTriggerPayloadType Type of payload body for the trigger. Possible values are `Default` and `Token`.
         * 
         * @return builder
         * 
         */
        public Builder updateTriggerPayloadType(String updateTriggerPayloadType) {
            return updateTriggerPayloadType(Output.of(updateTriggerPayloadType));
        }

        public RegistryTaskBaseImageTriggerArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("RegistryTaskBaseImageTriggerArgs", "name");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("RegistryTaskBaseImageTriggerArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy