com.pulumi.aws.lex.outputs.V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse 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.
The 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.aws.lex.outputs.V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroup;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse {
/**
* @return Whether the user can interrupt a speech response from Amazon Lex.
*
*/
private @Nullable Boolean allowInterrupt;
/**
* @return How often a message should be sent to the user.
*
*/
private Integer frequencyInSeconds;
private @Nullable List messageGroups;
/**
* @return If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
*
*/
private Integer timeoutInSeconds;
private V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse() {}
/**
* @return Whether the user can interrupt a speech response from Amazon Lex.
*
*/
public Optional allowInterrupt() {
return Optional.ofNullable(this.allowInterrupt);
}
/**
* @return How often a message should be sent to the user.
*
*/
public Integer frequencyInSeconds() {
return this.frequencyInSeconds;
}
public List messageGroups() {
return this.messageGroups == null ? List.of() : this.messageGroups;
}
/**
* @return If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
*
*/
public Integer timeoutInSeconds() {
return this.timeoutInSeconds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean allowInterrupt;
private Integer frequencyInSeconds;
private @Nullable List messageGroups;
private Integer timeoutInSeconds;
public Builder() {}
public Builder(V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse defaults) {
Objects.requireNonNull(defaults);
this.allowInterrupt = defaults.allowInterrupt;
this.frequencyInSeconds = defaults.frequencyInSeconds;
this.messageGroups = defaults.messageGroups;
this.timeoutInSeconds = defaults.timeoutInSeconds;
}
@CustomType.Setter
public Builder allowInterrupt(@Nullable Boolean allowInterrupt) {
this.allowInterrupt = allowInterrupt;
return this;
}
@CustomType.Setter
public Builder frequencyInSeconds(Integer frequencyInSeconds) {
if (frequencyInSeconds == null) {
throw new MissingRequiredPropertyException("V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse", "frequencyInSeconds");
}
this.frequencyInSeconds = frequencyInSeconds;
return this;
}
@CustomType.Setter
public Builder messageGroups(@Nullable List messageGroups) {
this.messageGroups = messageGroups;
return this;
}
public Builder messageGroups(V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroup... messageGroups) {
return messageGroups(List.of(messageGroups));
}
@CustomType.Setter
public Builder timeoutInSeconds(Integer timeoutInSeconds) {
if (timeoutInSeconds == null) {
throw new MissingRequiredPropertyException("V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse", "timeoutInSeconds");
}
this.timeoutInSeconds = timeoutInSeconds;
return this;
}
public V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse build() {
final var _resultValue = new V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponse();
_resultValue.allowInterrupt = allowInterrupt;
_resultValue.frequencyInSeconds = frequencyInSeconds;
_resultValue.messageGroups = messageGroups;
_resultValue.timeoutInSeconds = timeoutInSeconds;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy