All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.lex.outputs.V2modelsIntentOutputContext Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
Show 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class V2modelsIntentOutputContext {
    /**
     * @return Name of the output context.
     * 
     */
    private String name;
    /**
     * @return Amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
     * 
     */
    private Integer timeToLiveInSeconds;
    /**
     * @return Number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
     * 
     */
    private Integer turnsToLive;

    private V2modelsIntentOutputContext() {}
    /**
     * @return Name of the output context.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
     * 
     */
    public Integer timeToLiveInSeconds() {
        return this.timeToLiveInSeconds;
    }
    /**
     * @return Number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
     * 
     */
    public Integer turnsToLive() {
        return this.turnsToLive;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(V2modelsIntentOutputContext defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private Integer timeToLiveInSeconds;
        private Integer turnsToLive;
        public Builder() {}
        public Builder(V2modelsIntentOutputContext defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.timeToLiveInSeconds = defaults.timeToLiveInSeconds;
    	      this.turnsToLive = defaults.turnsToLive;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("V2modelsIntentOutputContext", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder timeToLiveInSeconds(Integer timeToLiveInSeconds) {
            if (timeToLiveInSeconds == null) {
              throw new MissingRequiredPropertyException("V2modelsIntentOutputContext", "timeToLiveInSeconds");
            }
            this.timeToLiveInSeconds = timeToLiveInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder turnsToLive(Integer turnsToLive) {
            if (turnsToLive == null) {
              throw new MissingRequiredPropertyException("V2modelsIntentOutputContext", "turnsToLive");
            }
            this.turnsToLive = turnsToLive;
            return this;
        }
        public V2modelsIntentOutputContext build() {
            final var _resultValue = new V2modelsIntentOutputContext();
            _resultValue.name = name;
            _resultValue.timeToLiveInSeconds = timeToLiveInSeconds;
            _resultValue.turnsToLive = turnsToLive;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy