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

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

import com.pulumi.azure.notificationhub.inputs.HubApnsCredentialArgs;
import com.pulumi.azure.notificationhub.inputs.HubBrowserCredentialArgs;
import com.pulumi.azure.notificationhub.inputs.HubGcmCredentialArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HubState Empty = new HubState();

    /**
     * A `apns_credential` block as defined below.
     * 
     * > **NOTE:** Removing the `apns_credential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed.
     * 
     */
    @Import(name="apnsCredential")
    private @Nullable Output apnsCredential;

    /**
     * @return A `apns_credential` block as defined below.
     * 
     * > **NOTE:** Removing the `apns_credential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed.
     * 
     */
    public Optional> apnsCredential() {
        return Optional.ofNullable(this.apnsCredential);
    }

    /**
     * A `browser_credential` block as defined below.
     * 
     */
    @Import(name="browserCredential")
    private @Nullable Output browserCredential;

    /**
     * @return A `browser_credential` block as defined below.
     * 
     */
    public Optional> browserCredential() {
        return Optional.ofNullable(this.browserCredential);
    }

    /**
     * A `gcm_credential` block as defined below.
     * 
     * > **NOTE:** Removing the `gcm_credential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed.
     * 
     */
    @Import(name="gcmCredential")
    private @Nullable Output gcmCredential;

    /**
     * @return A `gcm_credential` block as defined below.
     * 
     * > **NOTE:** Removing the `gcm_credential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed.
     * 
     */
    public Optional> gcmCredential() {
        return Optional.ofNullable(this.gcmCredential);
    }

    /**
     * The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name to use for this Notification Hub. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name to use for this Notification Hub. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="namespaceName")
    private @Nullable Output namespaceName;

    /**
     * @return The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
     * 
     */
    public Optional> namespaceName() {
        return Optional.ofNullable(this.namespaceName);
    }

    /**
     * The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private HubState() {}

    private HubState(HubState $) {
        this.apnsCredential = $.apnsCredential;
        this.browserCredential = $.browserCredential;
        this.gcmCredential = $.gcmCredential;
        this.location = $.location;
        this.name = $.name;
        this.namespaceName = $.namespaceName;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private HubState $;

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

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

        /**
         * @param apnsCredential A `apns_credential` block as defined below.
         * 
         * > **NOTE:** Removing the `apns_credential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed.
         * 
         * @return builder
         * 
         */
        public Builder apnsCredential(@Nullable Output apnsCredential) {
            $.apnsCredential = apnsCredential;
            return this;
        }

        /**
         * @param apnsCredential A `apns_credential` block as defined below.
         * 
         * > **NOTE:** Removing the `apns_credential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed.
         * 
         * @return builder
         * 
         */
        public Builder apnsCredential(HubApnsCredentialArgs apnsCredential) {
            return apnsCredential(Output.of(apnsCredential));
        }

        /**
         * @param browserCredential A `browser_credential` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder browserCredential(@Nullable Output browserCredential) {
            $.browserCredential = browserCredential;
            return this;
        }

        /**
         * @param browserCredential A `browser_credential` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder browserCredential(HubBrowserCredentialArgs browserCredential) {
            return browserCredential(Output.of(browserCredential));
        }

        /**
         * @param gcmCredential A `gcm_credential` block as defined below.
         * 
         * > **NOTE:** Removing the `gcm_credential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed.
         * 
         * @return builder
         * 
         */
        public Builder gcmCredential(@Nullable Output gcmCredential) {
            $.gcmCredential = gcmCredential;
            return this;
        }

        /**
         * @param gcmCredential A `gcm_credential` block as defined below.
         * 
         * > **NOTE:** Removing the `gcm_credential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed.
         * 
         * @return builder
         * 
         */
        public Builder gcmCredential(HubGcmCredentialArgs gcmCredential) {
            return gcmCredential(Output.of(gcmCredential));
        }

        /**
         * @param location The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name to use for this Notification Hub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name to use for this Notification Hub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param namespaceName The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(@Nullable Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public HubState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy