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

com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs 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.googlenative.dialogflow.v2beta1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionArgs;
import com.pulumi.googlenative.dialogflow.v2beta1.inputs.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
 * 
 */
public final class GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs extends com.pulumi.resources.ResourceArgs {

    public static final GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs Empty = new GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs();

    /**
     * Predefined client side actions that user can choose
     * 
     */
    @Import(name="action")
    private @Nullable Output action;

    /**
     * @return Predefined client side actions that user can choose
     * 
     */
    public Optional> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * Predefined replies for user to select instead of typing
     * 
     */
    @Import(name="reply")
    private @Nullable Output reply;

    /**
     * @return Predefined replies for user to select instead of typing
     * 
     */
    public Optional> reply() {
        return Optional.ofNullable(this.reply);
    }

    private GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs() {}

    private GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs(GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs $) {
        this.action = $.action;
        this.reply = $.reply;
    }

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

    public static final class Builder {
        private GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs $;

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

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

        /**
         * @param action Predefined client side actions that user can choose
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Predefined client side actions that user can choose
         * 
         * @return builder
         * 
         */
        public Builder action(GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionArgs action) {
            return action(Output.of(action));
        }

        /**
         * @param reply Predefined replies for user to select instead of typing
         * 
         * @return builder
         * 
         */
        public Builder reply(@Nullable Output reply) {
            $.reply = reply;
            return this;
        }

        /**
         * @param reply Predefined replies for user to select instead of typing
         * 
         * @return builder
         * 
         */
        public Builder reply(GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyArgs reply) {
            return reply(Output.of(reply));
        }

        public GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy