com.pulumi.aws.lex.outputs.V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponseMessageGroup;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponse {
/**
* @return Whether the user can interrupt a speech response from Amazon Lex.
*
*/
private @Nullable Boolean allowInterrupt;
/**
* @return Configuration blocks for responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime. See `message_group`.
*
*/
private @Nullable List messageGroups;
private V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponse() {}
/**
* @return Whether the user can interrupt a speech response from Amazon Lex.
*
*/
public Optional allowInterrupt() {
return Optional.ofNullable(this.allowInterrupt);
}
/**
* @return Configuration blocks for responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime. See `message_group`.
*
*/
public List messageGroups() {
return this.messageGroups == null ? List.of() : this.messageGroups;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean allowInterrupt;
private @Nullable List messageGroups;
public Builder() {}
public Builder(V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponse defaults) {
Objects.requireNonNull(defaults);
this.allowInterrupt = defaults.allowInterrupt;
this.messageGroups = defaults.messageGroups;
}
@CustomType.Setter
public Builder allowInterrupt(@Nullable Boolean allowInterrupt) {
this.allowInterrupt = allowInterrupt;
return this;
}
@CustomType.Setter
public Builder messageGroups(@Nullable List messageGroups) {
this.messageGroups = messageGroups;
return this;
}
public Builder messageGroups(V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponseMessageGroup... messageGroups) {
return messageGroups(List.of(messageGroups));
}
public V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponse build() {
final var _resultValue = new V2modelsIntentConfirmationSettingFailureConditionalDefaultBranchResponse();
_resultValue.allowInterrupt = allowInterrupt;
_resultValue.messageGroups = messageGroups;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy