Class CxPageState.Builder

  • Enclosing class:
    CxPageState

    public static final class CxPageState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public CxPageState.Builder displayName​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> displayName)
        Parameters:
        displayName - The human-readable name of the page, unique within the agent.
        Returns:
        builder
      • displayName

        public CxPageState.Builder displayName​(java.lang.String displayName)
        Parameters:
        displayName - The human-readable name of the page, unique within the agent.
        Returns:
        builder
      • entryFulfillment

        public CxPageState.Builder entryFulfillment​(@Nullable
                                                    com.pulumi.core.Output<CxPageEntryFulfillmentArgs> entryFulfillment)
        Parameters:
        entryFulfillment - The fulfillment to call when the session is entering the page. Structure is documented below.
        Returns:
        builder
      • entryFulfillment

        public CxPageState.Builder entryFulfillment​(CxPageEntryFulfillmentArgs entryFulfillment)
        Parameters:
        entryFulfillment - The fulfillment to call when the session is entering the page. Structure is documented below.
        Returns:
        builder
      • eventHandlers

        public CxPageState.Builder eventHandlers​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<CxPageEventHandlerArgs>> eventHandlers)
        Parameters:
        eventHandlers - Handlers associated with the page to handle events such as webhook errors, no match or no input. Structure is documented below.
        Returns:
        builder
      • eventHandlers

        public CxPageState.Builder eventHandlers​(java.util.List<CxPageEventHandlerArgs> eventHandlers)
        Parameters:
        eventHandlers - Handlers associated with the page to handle events such as webhook errors, no match or no input. Structure is documented below.
        Returns:
        builder
      • eventHandlers

        public CxPageState.Builder eventHandlers​(CxPageEventHandlerArgs... eventHandlers)
        Parameters:
        eventHandlers - Handlers associated with the page to handle events such as webhook errors, no match or no input. Structure is documented below.
        Returns:
        builder
      • form

        public CxPageState.Builder form​(@Nullable
                                        com.pulumi.core.Output<CxPageFormArgs> form)
        Parameters:
        form - The form associated with the page, used for collecting parameters relevant to the page. Structure is documented below.
        Returns:
        builder
      • form

        public CxPageState.Builder form​(CxPageFormArgs form)
        Parameters:
        form - The form associated with the page, used for collecting parameters relevant to the page. Structure is documented below.
        Returns:
        builder
      • languageCode

        public CxPageState.Builder languageCode​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> languageCode)
        Parameters:
        languageCode - The language of the following fields in page: Page.entry_fulfillment.messages Page.entry_fulfillment.conditional_cases Page.event_handlers.trigger_fulfillment.messages Page.event_handlers.trigger_fulfillment.conditional_cases Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases Page.form.parameters.fill_behavior.reprompt_event_handlers.messages Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases Page.transition_routes.trigger_fulfillment.messages Page.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.
        Returns:
        builder
      • languageCode

        public CxPageState.Builder languageCode​(java.lang.String languageCode)
        Parameters:
        languageCode - The language of the following fields in page: Page.entry_fulfillment.messages Page.entry_fulfillment.conditional_cases Page.event_handlers.trigger_fulfillment.messages Page.event_handlers.trigger_fulfillment.conditional_cases Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases Page.form.parameters.fill_behavior.reprompt_event_handlers.messages Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases Page.transition_routes.trigger_fulfillment.messages Page.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.
        Returns:
        builder
      • name

        public CxPageState.Builder name​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - (Output) The unique identifier of this transition route. (Output) The unique identifier of this event handler.
        Returns:
        builder
      • name

        public CxPageState.Builder name​(java.lang.String name)
        Parameters:
        name - (Output) The unique identifier of this transition route. (Output) The unique identifier of this event handler.
        Returns:
        builder
      • parent

        public CxPageState.Builder parent​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> parent)
        Parameters:
        parent - The flow to create a page for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.
        Returns:
        builder
      • parent

        public CxPageState.Builder parent​(java.lang.String parent)
        Parameters:
        parent - The flow to create a page for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.
        Returns:
        builder
      • transitionRouteGroups

        public CxPageState.Builder transitionRouteGroups​(@Nullable
                                                         com.pulumi.core.Output<java.util.List<java.lang.String>> transitionRouteGroups)
        Parameters:
        transitionRouteGroups - Ordered list of TransitionRouteGroups associated with the page. Transition route groups must be unique within a page. If multiple transition routes within a page scope refer to the same intent, then the precedence order is: page's transition route > page's transition route group > flow's transition routes. If multiple transition route groups within a page contain the same intent, then the first group in the ordered list takes precedence. Format:projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>.
        Returns:
        builder
      • transitionRouteGroups

        public CxPageState.Builder transitionRouteGroups​(java.util.List<java.lang.String> transitionRouteGroups)
        Parameters:
        transitionRouteGroups - Ordered list of TransitionRouteGroups associated with the page. Transition route groups must be unique within a page. If multiple transition routes within a page scope refer to the same intent, then the precedence order is: page's transition route > page's transition route group > flow's transition routes. If multiple transition route groups within a page contain the same intent, then the first group in the ordered list takes precedence. Format:projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>.
        Returns:
        builder
      • transitionRouteGroups

        public CxPageState.Builder transitionRouteGroups​(java.lang.String... transitionRouteGroups)
        Parameters:
        transitionRouteGroups - Ordered list of TransitionRouteGroups associated with the page. Transition route groups must be unique within a page. If multiple transition routes within a page scope refer to the same intent, then the precedence order is: page's transition route > page's transition route group > flow's transition routes. If multiple transition route groups within a page contain the same intent, then the first group in the ordered list takes precedence. Format:projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>.
        Returns:
        builder
      • transitionRoutes

        public CxPageState.Builder transitionRoutes​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<CxPageTransitionRouteArgs>> transitionRoutes)
        Parameters:
        transitionRoutes - A list of transitions for the transition rules of this page. They route the conversation to another page in the same flow, or another flow. When we are in a certain page, the TransitionRoutes are evalauted in the following order: TransitionRoutes defined in the page with intent specified. TransitionRoutes defined in the transition route groups with intent specified. TransitionRoutes defined in flow with intent specified. TransitionRoutes defined in the transition route groups with intent specified. TransitionRoutes defined in the page with only condition specified. TransitionRoutes defined in the transition route groups with only condition specified. Structure is documented below.
        Returns:
        builder
      • transitionRoutes

        public CxPageState.Builder transitionRoutes​(java.util.List<CxPageTransitionRouteArgs> transitionRoutes)
        Parameters:
        transitionRoutes - A list of transitions for the transition rules of this page. They route the conversation to another page in the same flow, or another flow. When we are in a certain page, the TransitionRoutes are evalauted in the following order: TransitionRoutes defined in the page with intent specified. TransitionRoutes defined in the transition route groups with intent specified. TransitionRoutes defined in flow with intent specified. TransitionRoutes defined in the transition route groups with intent specified. TransitionRoutes defined in the page with only condition specified. TransitionRoutes defined in the transition route groups with only condition specified. Structure is documented below.
        Returns:
        builder
      • transitionRoutes

        public CxPageState.Builder transitionRoutes​(CxPageTransitionRouteArgs... transitionRoutes)
        Parameters:
        transitionRoutes - A list of transitions for the transition rules of this page. They route the conversation to another page in the same flow, or another flow. When we are in a certain page, the TransitionRoutes are evalauted in the following order: TransitionRoutes defined in the page with intent specified. TransitionRoutes defined in the transition route groups with intent specified. TransitionRoutes defined in flow with intent specified. TransitionRoutes defined in the transition route groups with intent specified. TransitionRoutes defined in the page with only condition specified. TransitionRoutes defined in the transition route groups with only condition specified. Structure is documented below.
        Returns:
        builder