
com.pulumi.aws.lex.inputs.IntentDialogCodeHookArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class IntentDialogCodeHookArgs extends com.pulumi.resources.ResourceArgs {
public static final IntentDialogCodeHookArgs Empty = new IntentDialogCodeHookArgs();
/**
* The version of the request-response that you want Amazon Lex to use
* to invoke your Lambda function. For more information, see
* [Using Lambda Functions](https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html). Must be less than or equal to 5 characters in length.
*
*/
@Import(name="messageVersion", required=true)
private Output messageVersion;
/**
* @return The version of the request-response that you want Amazon Lex to use
* to invoke your Lambda function. For more information, see
* [Using Lambda Functions](https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html). Must be less than or equal to 5 characters in length.
*
*/
public Output messageVersion() {
return this.messageVersion;
}
/**
* The Amazon Resource Name (ARN) of the Lambda function.
*
*/
@Import(name="uri", required=true)
private Output uri;
/**
* @return The Amazon Resource Name (ARN) of the Lambda function.
*
*/
public Output uri() {
return this.uri;
}
private IntentDialogCodeHookArgs() {}
private IntentDialogCodeHookArgs(IntentDialogCodeHookArgs $) {
this.messageVersion = $.messageVersion;
this.uri = $.uri;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IntentDialogCodeHookArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private IntentDialogCodeHookArgs $;
public Builder() {
$ = new IntentDialogCodeHookArgs();
}
public Builder(IntentDialogCodeHookArgs defaults) {
$ = new IntentDialogCodeHookArgs(Objects.requireNonNull(defaults));
}
/**
* @param messageVersion The version of the request-response that you want Amazon Lex to use
* to invoke your Lambda function. For more information, see
* [Using Lambda Functions](https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html). Must be less than or equal to 5 characters in length.
*
* @return builder
*
*/
public Builder messageVersion(Output messageVersion) {
$.messageVersion = messageVersion;
return this;
}
/**
* @param messageVersion The version of the request-response that you want Amazon Lex to use
* to invoke your Lambda function. For more information, see
* [Using Lambda Functions](https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html). Must be less than or equal to 5 characters in length.
*
* @return builder
*
*/
public Builder messageVersion(String messageVersion) {
return messageVersion(Output.of(messageVersion));
}
/**
* @param uri The Amazon Resource Name (ARN) of the Lambda function.
*
* @return builder
*
*/
public Builder uri(Output uri) {
$.uri = uri;
return this;
}
/**
* @param uri The Amazon Resource Name (ARN) of the Lambda function.
*
* @return builder
*
*/
public Builder uri(String uri) {
return uri(Output.of(uri));
}
public IntentDialogCodeHookArgs build() {
if ($.messageVersion == null) {
throw new MissingRequiredPropertyException("IntentDialogCodeHookArgs", "messageVersion");
}
if ($.uri == null) {
throw new MissingRequiredPropertyException("IntentDialogCodeHookArgs", "uri");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy