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

com.pulumi.azurenative.web.inputs.PushSettingsArgs Maven / Gradle / Ivy

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

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;


/**
 * Push settings for the App.
 * 
 */
public final class PushSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PushSettingsArgs Empty = new PushSettingsArgs();

    /**
     * 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);
    }

    /**
     * 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 PushSettingsArgs() {}

    private PushSettingsArgs(PushSettingsArgs $) {
        this.dynamicTagsJson = $.dynamicTagsJson;
        this.isPushEnabled = $.isPushEnabled;
        this.kind = $.kind;
        this.tagWhitelistJson = $.tagWhitelistJson;
        this.tagsRequiringAuth = $.tagsRequiringAuth;
    }

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

    public static final class Builder {
        private PushSettingsArgs $;

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

        public Builder(PushSettingsArgs defaults) {
            $ = new PushSettingsArgs(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 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 PushSettingsArgs build() {
            if ($.isPushEnabled == null) {
                throw new MissingRequiredPropertyException("PushSettingsArgs", "isPushEnabled");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy