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

com.pulumi.azurenative.virtualmachineimages.TriggerArgs 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.virtualmachineimages;

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 TriggerArgs extends com.pulumi.resources.ResourceArgs {

    public static final TriggerArgs Empty = new TriggerArgs();

    /**
     * The name of the image Template
     * 
     */
    @Import(name="imageTemplateName", required=true)
    private Output imageTemplateName;

    /**
     * @return The name of the image Template
     * 
     */
    public Output imageTemplateName() {
        return this.imageTemplateName;
    }

    /**
     * The kind of trigger.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return The kind of trigger.
     * 
     */
    public Output kind() {
        return this.kind;
    }

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

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

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

    /**
     * @return The name of the trigger
     * 
     */
    public Optional> triggerName() {
        return Optional.ofNullable(this.triggerName);
    }

    private TriggerArgs() {}

    private TriggerArgs(TriggerArgs $) {
        this.imageTemplateName = $.imageTemplateName;
        this.kind = $.kind;
        this.resourceGroupName = $.resourceGroupName;
        this.triggerName = $.triggerName;
    }

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

    public static final class Builder {
        private TriggerArgs $;

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

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

        /**
         * @param imageTemplateName The name of the image Template
         * 
         * @return builder
         * 
         */
        public Builder imageTemplateName(Output imageTemplateName) {
            $.imageTemplateName = imageTemplateName;
            return this;
        }

        /**
         * @param imageTemplateName The name of the image Template
         * 
         * @return builder
         * 
         */
        public Builder imageTemplateName(String imageTemplateName) {
            return imageTemplateName(Output.of(imageTemplateName));
        }

        /**
         * @param kind The kind of trigger.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The kind of trigger.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

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

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

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

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

        public TriggerArgs build() {
            if ($.imageTemplateName == null) {
                throw new MissingRequiredPropertyException("TriggerArgs", "imageTemplateName");
            }
            if ($.kind == null) {
                throw new MissingRequiredPropertyException("TriggerArgs", "kind");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("TriggerArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy