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

com.pulumi.aws.lex.inputs.V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs 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.lex.inputs;

import com.pulumi.aws.lex.inputs.V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationStartResponseArgs;
import com.pulumi.aws.lex.inputs.V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationUpdateResponseArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs Empty = new V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs();

    /**
     * Whether fulfillment updates are sent to the user. When this field is true, updates are sent. If the active field is set to true, the `start_response`, `update_response`, and `timeout_in_seconds` fields are required.
     * 
     */
    @Import(name="active", required=true)
    private Output active;

    /**
     * @return Whether fulfillment updates are sent to the user. When this field is true, updates are sent. If the active field is set to true, the `start_response`, `update_response`, and `timeout_in_seconds` fields are required.
     * 
     */
    public Output active() {
        return this.active;
    }

    /**
     * Configuration block for the message sent to users when the fulfillment Lambda functions starts running.
     * 
     */
    @Import(name="startResponse")
    private @Nullable Output startResponse;

    /**
     * @return Configuration block for the message sent to users when the fulfillment Lambda functions starts running.
     * 
     */
    public Optional> startResponse() {
        return Optional.ofNullable(this.startResponse);
    }

    /**
     * Length of time that the fulfillment Lambda function should run before it times out.
     * 
     */
    @Import(name="timeoutInSeconds")
    private @Nullable Output timeoutInSeconds;

    /**
     * @return Length of time that the fulfillment Lambda function should run before it times out.
     * 
     */
    public Optional> timeoutInSeconds() {
        return Optional.ofNullable(this.timeoutInSeconds);
    }

    /**
     * Configuration block for messages sent periodically to the user while the fulfillment Lambda function is running.
     * 
     */
    @Import(name="updateResponse")
    private @Nullable Output updateResponse;

    /**
     * @return Configuration block for messages sent periodically to the user while the fulfillment Lambda function is running.
     * 
     */
    public Optional> updateResponse() {
        return Optional.ofNullable(this.updateResponse);
    }

    private V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs() {}

    private V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs(V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs $) {
        this.active = $.active;
        this.startResponse = $.startResponse;
        this.timeoutInSeconds = $.timeoutInSeconds;
        this.updateResponse = $.updateResponse;
    }

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

    public static final class Builder {
        private V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs $;

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

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

        /**
         * @param active Whether fulfillment updates are sent to the user. When this field is true, updates are sent. If the active field is set to true, the `start_response`, `update_response`, and `timeout_in_seconds` fields are required.
         * 
         * @return builder
         * 
         */
        public Builder active(Output active) {
            $.active = active;
            return this;
        }

        /**
         * @param active Whether fulfillment updates are sent to the user. When this field is true, updates are sent. If the active field is set to true, the `start_response`, `update_response`, and `timeout_in_seconds` fields are required.
         * 
         * @return builder
         * 
         */
        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

        /**
         * @param startResponse Configuration block for the message sent to users when the fulfillment Lambda functions starts running.
         * 
         * @return builder
         * 
         */
        public Builder startResponse(@Nullable Output startResponse) {
            $.startResponse = startResponse;
            return this;
        }

        /**
         * @param startResponse Configuration block for the message sent to users when the fulfillment Lambda functions starts running.
         * 
         * @return builder
         * 
         */
        public Builder startResponse(V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationStartResponseArgs startResponse) {
            return startResponse(Output.of(startResponse));
        }

        /**
         * @param timeoutInSeconds Length of time that the fulfillment Lambda function should run before it times out.
         * 
         * @return builder
         * 
         */
        public Builder timeoutInSeconds(@Nullable Output timeoutInSeconds) {
            $.timeoutInSeconds = timeoutInSeconds;
            return this;
        }

        /**
         * @param timeoutInSeconds Length of time that the fulfillment Lambda function should run before it times out.
         * 
         * @return builder
         * 
         */
        public Builder timeoutInSeconds(Integer timeoutInSeconds) {
            return timeoutInSeconds(Output.of(timeoutInSeconds));
        }

        /**
         * @param updateResponse Configuration block for messages sent periodically to the user while the fulfillment Lambda function is running.
         * 
         * @return builder
         * 
         */
        public Builder updateResponse(@Nullable Output updateResponse) {
            $.updateResponse = updateResponse;
            return this;
        }

        /**
         * @param updateResponse Configuration block for messages sent periodically to the user while the fulfillment Lambda function is running.
         * 
         * @return builder
         * 
         */
        public Builder updateResponse(V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationUpdateResponseArgs updateResponse) {
            return updateResponse(Output.of(updateResponse));
        }

        public V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs build() {
            if ($.active == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationArgs", "active");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy