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

com.pulumi.azure.containerservice.inputs.ConnectedRegistryNotificationArgs 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConnectedRegistryNotificationArgs Empty = new ConnectedRegistryNotificationArgs();

    /**
     * The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are `push`, `delete` and `*` (i.e. any).
     * 
     */
    @Import(name="action", required=true)
    private Output action;

    /**
     * @return The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are `push`, `delete` and `*` (i.e. any).
     * 
     */
    public Output action() {
        return this.action;
    }

    /**
     * The digest of the artifact that wants to be subscribed for the Connected Registry.
     * 
     * > **NOTE:** One of either `tag` or `digest` can be specified.
     * 
     */
    @Import(name="digest")
    private @Nullable Output digest;

    /**
     * @return The digest of the artifact that wants to be subscribed for the Connected Registry.
     * 
     * > **NOTE:** One of either `tag` or `digest` can be specified.
     * 
     */
    public Optional> digest() {
        return Optional.ofNullable(this.digest);
    }

    /**
     * The name of the artifact that wants to be subscribed for the Connected Registry.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the artifact that wants to be subscribed for the Connected Registry.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The tag of the artifact that wants to be subscribed for the Connected Registry.
     * 
     */
    @Import(name="tag")
    private @Nullable Output tag;

    /**
     * @return The tag of the artifact that wants to be subscribed for the Connected Registry.
     * 
     */
    public Optional> tag() {
        return Optional.ofNullable(this.tag);
    }

    private ConnectedRegistryNotificationArgs() {}

    private ConnectedRegistryNotificationArgs(ConnectedRegistryNotificationArgs $) {
        this.action = $.action;
        this.digest = $.digest;
        this.name = $.name;
        this.tag = $.tag;
    }

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

    public static final class Builder {
        private ConnectedRegistryNotificationArgs $;

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

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

        /**
         * @param action The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are `push`, `delete` and `*` (i.e. any).
         * 
         * @return builder
         * 
         */
        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are `push`, `delete` and `*` (i.e. any).
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param digest The digest of the artifact that wants to be subscribed for the Connected Registry.
         * 
         * > **NOTE:** One of either `tag` or `digest` can be specified.
         * 
         * @return builder
         * 
         */
        public Builder digest(@Nullable Output digest) {
            $.digest = digest;
            return this;
        }

        /**
         * @param digest The digest of the artifact that wants to be subscribed for the Connected Registry.
         * 
         * > **NOTE:** One of either `tag` or `digest` can be specified.
         * 
         * @return builder
         * 
         */
        public Builder digest(String digest) {
            return digest(Output.of(digest));
        }

        /**
         * @param name The name of the artifact that wants to be subscribed for the Connected Registry.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the artifact that wants to be subscribed for the Connected Registry.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tag The tag of the artifact that wants to be subscribed for the Connected Registry.
         * 
         * @return builder
         * 
         */
        public Builder tag(@Nullable Output tag) {
            $.tag = tag;
            return this;
        }

        /**
         * @param tag The tag of the artifact that wants to be subscribed for the Connected Registry.
         * 
         * @return builder
         * 
         */
        public Builder tag(String tag) {
            return tag(Output.of(tag));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy