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

com.pulumi.azurenative.web.WebAppSitePushSettingsArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.web;

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


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

    public static final WebAppSitePushSettingsArgs Empty = new WebAppSitePushSettingsArgs();

    /**
     * Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint.
     * 
     */
    @Import(name="dynamicTagsJson")
    private @Nullable Output dynamicTagsJson;

    /**
     * @return Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint.
     * 
     */
    public Optional> dynamicTagsJson() {
        return Optional.ofNullable(this.dynamicTagsJson);
    }

    /**
     * Gets or sets a flag indicating whether the Push endpoint is enabled.
     * 
     */
    @Import(name="isPushEnabled", required=true)
    private Output isPushEnabled;

    /**
     * @return Gets or sets a flag indicating whether the Push endpoint is enabled.
     * 
     */
    public Output isPushEnabled() {
        return this.isPushEnabled;
    }

    /**
     * Kind of resource.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Kind of resource.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Name of web app.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of web app.
     * 
     */
    public Output name() {
        return this.name;
    }

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

    /**
     * @return Name of the resource group to which the resource belongs.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint.
     * 
     */
    @Import(name="tagWhitelistJson")
    private @Nullable Output tagWhitelistJson;

    /**
     * @return Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint.
     * 
     */
    public Optional> tagWhitelistJson() {
        return Optional.ofNullable(this.tagWhitelistJson);
    }

    /**
     * Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint.
     * Tags can consist of alphanumeric characters and the following:
     * '_', '{@literal @}', '#', '.', ':', '-'.
     * Validation should be performed at the PushRequestHandler.
     * 
     */
    @Import(name="tagsRequiringAuth")
    private @Nullable Output tagsRequiringAuth;

    /**
     * @return Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint.
     * Tags can consist of alphanumeric characters and the following:
     * '_', '{@literal @}', '#', '.', ':', '-'.
     * Validation should be performed at the PushRequestHandler.
     * 
     */
    public Optional> tagsRequiringAuth() {
        return Optional.ofNullable(this.tagsRequiringAuth);
    }

    private WebAppSitePushSettingsArgs() {}

    private WebAppSitePushSettingsArgs(WebAppSitePushSettingsArgs $) {
        this.dynamicTagsJson = $.dynamicTagsJson;
        this.isPushEnabled = $.isPushEnabled;
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tagWhitelistJson = $.tagWhitelistJson;
        this.tagsRequiringAuth = $.tagsRequiringAuth;
    }

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

    public static final class Builder {
        private WebAppSitePushSettingsArgs $;

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

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

        /**
         * @param dynamicTagsJson Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint.
         * 
         * @return builder
         * 
         */
        public Builder dynamicTagsJson(@Nullable Output dynamicTagsJson) {
            $.dynamicTagsJson = dynamicTagsJson;
            return this;
        }

        /**
         * @param dynamicTagsJson Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint.
         * 
         * @return builder
         * 
         */
        public Builder dynamicTagsJson(String dynamicTagsJson) {
            return dynamicTagsJson(Output.of(dynamicTagsJson));
        }

        /**
         * @param isPushEnabled Gets or sets a flag indicating whether the Push endpoint is enabled.
         * 
         * @return builder
         * 
         */
        public Builder isPushEnabled(Output isPushEnabled) {
            $.isPushEnabled = isPushEnabled;
            return this;
        }

        /**
         * @param isPushEnabled Gets or sets a flag indicating whether the Push endpoint is enabled.
         * 
         * @return builder
         * 
         */
        public Builder isPushEnabled(Boolean isPushEnabled) {
            return isPushEnabled(Output.of(isPushEnabled));
        }

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

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

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

        /**
         * @param name Name of web app.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tagWhitelistJson Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint.
         * 
         * @return builder
         * 
         */
        public Builder tagWhitelistJson(@Nullable Output tagWhitelistJson) {
            $.tagWhitelistJson = tagWhitelistJson;
            return this;
        }

        /**
         * @param tagWhitelistJson Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint.
         * 
         * @return builder
         * 
         */
        public Builder tagWhitelistJson(String tagWhitelistJson) {
            return tagWhitelistJson(Output.of(tagWhitelistJson));
        }

        /**
         * @param tagsRequiringAuth Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint.
         * Tags can consist of alphanumeric characters and the following:
         * '_', '{@literal @}', '#', '.', ':', '-'.
         * Validation should be performed at the PushRequestHandler.
         * 
         * @return builder
         * 
         */
        public Builder tagsRequiringAuth(@Nullable Output tagsRequiringAuth) {
            $.tagsRequiringAuth = tagsRequiringAuth;
            return this;
        }

        /**
         * @param tagsRequiringAuth Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint.
         * Tags can consist of alphanumeric characters and the following:
         * '_', '{@literal @}', '#', '.', ':', '-'.
         * Validation should be performed at the PushRequestHandler.
         * 
         * @return builder
         * 
         */
        public Builder tagsRequiringAuth(String tagsRequiringAuth) {
            return tagsRequiringAuth(Output.of(tagsRequiringAuth));
        }

        public WebAppSitePushSettingsArgs build() {
            if ($.isPushEnabled == null) {
                throw new MissingRequiredPropertyException("WebAppSitePushSettingsArgs", "isPushEnabled");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("WebAppSitePushSettingsArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WebAppSitePushSettingsArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy