com.pulumi.aws.lex.outputs.V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification 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.V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationStartResponse;
import com.pulumi.aws.lex.outputs.V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationUpdateResponse;
import com.pulumi.core.annotations.CustomType;
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;
@CustomType
public final class V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification {
/**
* @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.
*
*/
private Boolean active;
/**
* @return Configuration block for the message sent to users when the fulfillment Lambda functions starts running.
*
*/
private @Nullable V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationStartResponse startResponse;
/**
* @return Length of time that the fulfillment Lambda function should run before it times out.
*
*/
private @Nullable Integer timeoutInSeconds;
/**
* @return Configuration block for messages sent periodically to the user while the fulfillment Lambda function is running.
*
*/
private @Nullable V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationUpdateResponse updateResponse;
private V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification() {}
/**
* @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 Boolean active() {
return this.active;
}
/**
* @return Configuration block for the message sent to users when the fulfillment Lambda functions starts running.
*
*/
public Optional startResponse() {
return Optional.ofNullable(this.startResponse);
}
/**
* @return Length of time that the fulfillment Lambda function should run before it times out.
*
*/
public Optional timeoutInSeconds() {
return Optional.ofNullable(this.timeoutInSeconds);
}
/**
* @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);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean active;
private @Nullable V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationStartResponse startResponse;
private @Nullable Integer timeoutInSeconds;
private @Nullable V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationUpdateResponse updateResponse;
public Builder() {}
public Builder(V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification defaults) {
Objects.requireNonNull(defaults);
this.active = defaults.active;
this.startResponse = defaults.startResponse;
this.timeoutInSeconds = defaults.timeoutInSeconds;
this.updateResponse = defaults.updateResponse;
}
@CustomType.Setter
public Builder active(Boolean active) {
if (active == null) {
throw new MissingRequiredPropertyException("V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification", "active");
}
this.active = active;
return this;
}
@CustomType.Setter
public Builder startResponse(@Nullable V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationStartResponse startResponse) {
this.startResponse = startResponse;
return this;
}
@CustomType.Setter
public Builder timeoutInSeconds(@Nullable Integer timeoutInSeconds) {
this.timeoutInSeconds = timeoutInSeconds;
return this;
}
@CustomType.Setter
public Builder updateResponse(@Nullable V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecificationUpdateResponse updateResponse) {
this.updateResponse = updateResponse;
return this;
}
public V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification build() {
final var _resultValue = new V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification();
_resultValue.active = active;
_resultValue.startResponse = startResponse;
_resultValue.timeoutInSeconds = timeoutInSeconds;
_resultValue.updateResponse = updateResponse;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy