
com.pulumi.aws.lex.outputs.IntentFollowUpPrompt 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.outputs;
import com.pulumi.aws.lex.outputs.IntentFollowUpPromptPrompt;
import com.pulumi.aws.lex.outputs.IntentFollowUpPromptRejectionStatement;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
@CustomType
public final class IntentFollowUpPrompt {
/**
* @return Prompts for information from the user. Attributes are documented under prompt.
*
*/
private IntentFollowUpPromptPrompt prompt;
/**
* @return If the user answers "no" to the question defined in the prompt field,
* Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are
* documented below under statement.
*
*/
private IntentFollowUpPromptRejectionStatement rejectionStatement;
private IntentFollowUpPrompt() {}
/**
* @return Prompts for information from the user. Attributes are documented under prompt.
*
*/
public IntentFollowUpPromptPrompt prompt() {
return this.prompt;
}
/**
* @return If the user answers "no" to the question defined in the prompt field,
* Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are
* documented below under statement.
*
*/
public IntentFollowUpPromptRejectionStatement rejectionStatement() {
return this.rejectionStatement;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IntentFollowUpPrompt defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private IntentFollowUpPromptPrompt prompt;
private IntentFollowUpPromptRejectionStatement rejectionStatement;
public Builder() {}
public Builder(IntentFollowUpPrompt defaults) {
Objects.requireNonNull(defaults);
this.prompt = defaults.prompt;
this.rejectionStatement = defaults.rejectionStatement;
}
@CustomType.Setter
public Builder prompt(IntentFollowUpPromptPrompt prompt) {
if (prompt == null) {
throw new MissingRequiredPropertyException("IntentFollowUpPrompt", "prompt");
}
this.prompt = prompt;
return this;
}
@CustomType.Setter
public Builder rejectionStatement(IntentFollowUpPromptRejectionStatement rejectionStatement) {
if (rejectionStatement == null) {
throw new MissingRequiredPropertyException("IntentFollowUpPrompt", "rejectionStatement");
}
this.rejectionStatement = rejectionStatement;
return this;
}
public IntentFollowUpPrompt build() {
final var _resultValue = new IntentFollowUpPrompt();
_resultValue.prompt = prompt;
_resultValue.rejectionStatement = rejectionStatement;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy