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

com.pulumi.aws.pinpoint.inputs.GcmChannelState Maven / Gradle / Ivy

// *** 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.aws.pinpoint.inputs;

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


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

    public static final GcmChannelState Empty = new GcmChannelState();

    /**
     * Platform credential API key from Google.
     * 
     */
    @Import(name="apiKey")
    private @Nullable Output apiKey;

    /**
     * @return Platform credential API key from Google.
     * 
     */
    public Optional> apiKey() {
        return Optional.ofNullable(this.apiKey);
    }

    /**
     * The application ID.
     * 
     */
    @Import(name="applicationId")
    private @Nullable Output applicationId;

    /**
     * @return The application ID.
     * 
     */
    public Optional> applicationId() {
        return Optional.ofNullable(this.applicationId);
    }

    @Import(name="defaultAuthenticationMethod")
    private @Nullable Output defaultAuthenticationMethod;

    public Optional> defaultAuthenticationMethod() {
        return Optional.ofNullable(this.defaultAuthenticationMethod);
    }

    /**
     * Whether the channel is enabled or disabled. Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether the channel is enabled or disabled. Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    @Import(name="serviceJson")
    private @Nullable Output serviceJson;

    public Optional> serviceJson() {
        return Optional.ofNullable(this.serviceJson);
    }

    private GcmChannelState() {}

    private GcmChannelState(GcmChannelState $) {
        this.apiKey = $.apiKey;
        this.applicationId = $.applicationId;
        this.defaultAuthenticationMethod = $.defaultAuthenticationMethod;
        this.enabled = $.enabled;
        this.serviceJson = $.serviceJson;
    }

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

    public static final class Builder {
        private GcmChannelState $;

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

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

        /**
         * @param apiKey Platform credential API key from Google.
         * 
         * @return builder
         * 
         */
        public Builder apiKey(@Nullable Output apiKey) {
            $.apiKey = apiKey;
            return this;
        }

        /**
         * @param apiKey Platform credential API key from Google.
         * 
         * @return builder
         * 
         */
        public Builder apiKey(String apiKey) {
            return apiKey(Output.of(apiKey));
        }

        /**
         * @param applicationId The application ID.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(@Nullable Output applicationId) {
            $.applicationId = applicationId;
            return this;
        }

        /**
         * @param applicationId The application ID.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(String applicationId) {
            return applicationId(Output.of(applicationId));
        }

        public Builder defaultAuthenticationMethod(@Nullable Output defaultAuthenticationMethod) {
            $.defaultAuthenticationMethod = defaultAuthenticationMethod;
            return this;
        }

        public Builder defaultAuthenticationMethod(String defaultAuthenticationMethod) {
            return defaultAuthenticationMethod(Output.of(defaultAuthenticationMethod));
        }

        /**
         * @param enabled Whether the channel is enabled or disabled. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether the channel is enabled or disabled. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        public Builder serviceJson(@Nullable Output serviceJson) {
            $.serviceJson = serviceJson;
            return this;
        }

        public Builder serviceJson(String serviceJson) {
            return serviceJson(Output.of(serviceJson));
        }

        public GcmChannelState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy