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

com.pulumi.azure.notificationhub.inputs.HubBrowserCredentialArgs 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.15.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.azure.notificationhub.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;


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

    public static final HubBrowserCredentialArgs Empty = new HubBrowserCredentialArgs();

    /**
     * The subject name of web push.
     * 
     */
    @Import(name="subject", required=true)
    private Output subject;

    /**
     * @return The subject name of web push.
     * 
     */
    public Output subject() {
        return this.subject;
    }

    /**
     * The Voluntary Application Server Identification (VAPID) private key.
     * 
     */
    @Import(name="vapidPrivateKey", required=true)
    private Output vapidPrivateKey;

    /**
     * @return The Voluntary Application Server Identification (VAPID) private key.
     * 
     */
    public Output vapidPrivateKey() {
        return this.vapidPrivateKey;
    }

    /**
     * The Voluntary Application Server Identification (VAPID) public key.
     * 
     */
    @Import(name="vapidPublicKey", required=true)
    private Output vapidPublicKey;

    /**
     * @return The Voluntary Application Server Identification (VAPID) public key.
     * 
     */
    public Output vapidPublicKey() {
        return this.vapidPublicKey;
    }

    private HubBrowserCredentialArgs() {}

    private HubBrowserCredentialArgs(HubBrowserCredentialArgs $) {
        this.subject = $.subject;
        this.vapidPrivateKey = $.vapidPrivateKey;
        this.vapidPublicKey = $.vapidPublicKey;
    }

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

    public static final class Builder {
        private HubBrowserCredentialArgs $;

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

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

        /**
         * @param subject The subject name of web push.
         * 
         * @return builder
         * 
         */
        public Builder subject(Output subject) {
            $.subject = subject;
            return this;
        }

        /**
         * @param subject The subject name of web push.
         * 
         * @return builder
         * 
         */
        public Builder subject(String subject) {
            return subject(Output.of(subject));
        }

        /**
         * @param vapidPrivateKey The Voluntary Application Server Identification (VAPID) private key.
         * 
         * @return builder
         * 
         */
        public Builder vapidPrivateKey(Output vapidPrivateKey) {
            $.vapidPrivateKey = vapidPrivateKey;
            return this;
        }

        /**
         * @param vapidPrivateKey The Voluntary Application Server Identification (VAPID) private key.
         * 
         * @return builder
         * 
         */
        public Builder vapidPrivateKey(String vapidPrivateKey) {
            return vapidPrivateKey(Output.of(vapidPrivateKey));
        }

        /**
         * @param vapidPublicKey The Voluntary Application Server Identification (VAPID) public key.
         * 
         * @return builder
         * 
         */
        public Builder vapidPublicKey(Output vapidPublicKey) {
            $.vapidPublicKey = vapidPublicKey;
            return this;
        }

        /**
         * @param vapidPublicKey The Voluntary Application Server Identification (VAPID) public key.
         * 
         * @return builder
         * 
         */
        public Builder vapidPublicKey(String vapidPublicKey) {
            return vapidPublicKey(Output.of(vapidPublicKey));
        }

        public HubBrowserCredentialArgs build() {
            if ($.subject == null) {
                throw new MissingRequiredPropertyException("HubBrowserCredentialArgs", "subject");
            }
            if ($.vapidPrivateKey == null) {
                throw new MissingRequiredPropertyException("HubBrowserCredentialArgs", "vapidPrivateKey");
            }
            if ($.vapidPublicKey == null) {
                throw new MissingRequiredPropertyException("HubBrowserCredentialArgs", "vapidPublicKey");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy