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

com.pulumi.digitalocean.inputs.AppSpecJobImageDeployOnPushArgs Maven / Gradle / Ivy

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

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


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

    public static final AppSpecJobImageDeployOnPushArgs Empty = new AppSpecJobImageDeployOnPushArgs();

    /**
     * Whether to automatically deploy images pushed to DOCR.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether to automatically deploy images pushed to DOCR.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    private AppSpecJobImageDeployOnPushArgs() {}

    private AppSpecJobImageDeployOnPushArgs(AppSpecJobImageDeployOnPushArgs $) {
        this.enabled = $.enabled;
    }

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

    public static final class Builder {
        private AppSpecJobImageDeployOnPushArgs $;

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

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

        /**
         * @param enabled Whether to automatically deploy images pushed to DOCR.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether to automatically deploy images pushed to DOCR.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        public AppSpecJobImageDeployOnPushArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy