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

com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs 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.60.0-alpha.1731982519
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.bedrock.inputs;

import com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs Empty = new AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs();

    /**
     * Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values: `FIX_SIZE`, `NONE`.
     * 
     */
    @Import(name="chunkingStrategy", required=true)
    private Output chunkingStrategy;

    /**
     * @return Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values: `FIX_SIZE`, `NONE`.
     * 
     */
    public Output chunkingStrategy() {
        return this.chunkingStrategy;
    }

    /**
     * Configurations for when you choose fixed-size chunking. If you set the chunking_strategy as `NONE`, exclude this field. See `fixed_size_chunking_configuration` for details.
     * 
     */
    @Import(name="fixedSizeChunkingConfiguration")
    private @Nullable Output fixedSizeChunkingConfiguration;

    /**
     * @return Configurations for when you choose fixed-size chunking. If you set the chunking_strategy as `NONE`, exclude this field. See `fixed_size_chunking_configuration` for details.
     * 
     */
    public Optional> fixedSizeChunkingConfiguration() {
        return Optional.ofNullable(this.fixedSizeChunkingConfiguration);
    }

    private AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs() {}

    private AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs(AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs $) {
        this.chunkingStrategy = $.chunkingStrategy;
        this.fixedSizeChunkingConfiguration = $.fixedSizeChunkingConfiguration;
    }

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

    public static final class Builder {
        private AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs $;

        public Builder() {
            $ = new AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs();
        }

        public Builder(AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs defaults) {
            $ = new AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param chunkingStrategy Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values: `FIX_SIZE`, `NONE`.
         * 
         * @return builder
         * 
         */
        public Builder chunkingStrategy(Output chunkingStrategy) {
            $.chunkingStrategy = chunkingStrategy;
            return this;
        }

        /**
         * @param chunkingStrategy Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values: `FIX_SIZE`, `NONE`.
         * 
         * @return builder
         * 
         */
        public Builder chunkingStrategy(String chunkingStrategy) {
            return chunkingStrategy(Output.of(chunkingStrategy));
        }

        /**
         * @param fixedSizeChunkingConfiguration Configurations for when you choose fixed-size chunking. If you set the chunking_strategy as `NONE`, exclude this field. See `fixed_size_chunking_configuration` for details.
         * 
         * @return builder
         * 
         */
        public Builder fixedSizeChunkingConfiguration(@Nullable Output fixedSizeChunkingConfiguration) {
            $.fixedSizeChunkingConfiguration = fixedSizeChunkingConfiguration;
            return this;
        }

        /**
         * @param fixedSizeChunkingConfiguration Configurations for when you choose fixed-size chunking. If you set the chunking_strategy as `NONE`, exclude this field. See `fixed_size_chunking_configuration` for details.
         * 
         * @return builder
         * 
         */
        public Builder fixedSizeChunkingConfiguration(AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgs fixedSizeChunkingConfiguration) {
            return fixedSizeChunkingConfiguration(Output.of(fixedSizeChunkingConfiguration));
        }

        public AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs build() {
            if ($.chunkingStrategy == null) {
                throw new MissingRequiredPropertyException("AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs", "chunkingStrategy");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy