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

com.pulumi.aws.lex.outputs.IntentSlotValueElicitationPromptMessage Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
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.aws.lex.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class IntentSlotValueElicitationPromptMessage {
    /**
     * @return The text of the message. Must be less than or equal to 1000 characters in length.
     * 
     */
    private String content;
    /**
     * @return The content type of the message string.
     * 
     */
    private String contentType;
    /**
     * @return Identifies the message group that the message belongs to. When a group
     * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).
     * 
     */
    private @Nullable Integer groupNumber;

    private IntentSlotValueElicitationPromptMessage() {}
    /**
     * @return The text of the message. Must be less than or equal to 1000 characters in length.
     * 
     */
    public String content() {
        return this.content;
    }
    /**
     * @return The content type of the message string.
     * 
     */
    public String contentType() {
        return this.contentType;
    }
    /**
     * @return Identifies the message group that the message belongs to. When a group
     * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).
     * 
     */
    public Optional groupNumber() {
        return Optional.ofNullable(this.groupNumber);
    }

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

    public static Builder builder(IntentSlotValueElicitationPromptMessage defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String content;
        private String contentType;
        private @Nullable Integer groupNumber;
        public Builder() {}
        public Builder(IntentSlotValueElicitationPromptMessage defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.content = defaults.content;
    	      this.contentType = defaults.contentType;
    	      this.groupNumber = defaults.groupNumber;
        }

        @CustomType.Setter
        public Builder content(String content) {
            if (content == null) {
              throw new MissingRequiredPropertyException("IntentSlotValueElicitationPromptMessage", "content");
            }
            this.content = content;
            return this;
        }
        @CustomType.Setter
        public Builder contentType(String contentType) {
            if (contentType == null) {
              throw new MissingRequiredPropertyException("IntentSlotValueElicitationPromptMessage", "contentType");
            }
            this.contentType = contentType;
            return this;
        }
        @CustomType.Setter
        public Builder groupNumber(@Nullable Integer groupNumber) {

            this.groupNumber = groupNumber;
            return this;
        }
        public IntentSlotValueElicitationPromptMessage build() {
            final var _resultValue = new IntentSlotValueElicitationPromptMessage();
            _resultValue.content = content;
            _resultValue.contentType = contentType;
            _resultValue.groupNumber = groupNumber;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy