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

com.pulumi.aws.bedrock.outputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration 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.outputs;

import com.pulumi.aws.bedrock.outputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMapping;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration {
    /**
     * @return ARN of the OpenSearch Service vector store.
     * 
     */
    private String collectionArn;
    /**
     * @return The names of the fields to which to map information about the vector store. This block supports the following arguments:
     * 
     */
    private @Nullable AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMapping fieldMapping;
    /**
     * @return Name of the vector store.
     * 
     */
    private String vectorIndexName;

    private AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration() {}
    /**
     * @return ARN of the OpenSearch Service vector store.
     * 
     */
    public String collectionArn() {
        return this.collectionArn;
    }
    /**
     * @return The names of the fields to which to map information about the vector store. This block supports the following arguments:
     * 
     */
    public Optional fieldMapping() {
        return Optional.ofNullable(this.fieldMapping);
    }
    /**
     * @return Name of the vector store.
     * 
     */
    public String vectorIndexName() {
        return this.vectorIndexName;
    }

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

    public static Builder builder(AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String collectionArn;
        private @Nullable AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMapping fieldMapping;
        private String vectorIndexName;
        public Builder() {}
        public Builder(AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.collectionArn = defaults.collectionArn;
    	      this.fieldMapping = defaults.fieldMapping;
    	      this.vectorIndexName = defaults.vectorIndexName;
        }

        @CustomType.Setter
        public Builder collectionArn(String collectionArn) {
            if (collectionArn == null) {
              throw new MissingRequiredPropertyException("AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration", "collectionArn");
            }
            this.collectionArn = collectionArn;
            return this;
        }
        @CustomType.Setter
        public Builder fieldMapping(@Nullable AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMapping fieldMapping) {

            this.fieldMapping = fieldMapping;
            return this;
        }
        @CustomType.Setter
        public Builder vectorIndexName(String vectorIndexName) {
            if (vectorIndexName == null) {
              throw new MissingRequiredPropertyException("AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration", "vectorIndexName");
            }
            this.vectorIndexName = vectorIndexName;
            return this;
        }
        public AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration build() {
            final var _resultValue = new AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration();
            _resultValue.collectionArn = collectionArn;
            _resultValue.fieldMapping = fieldMapping;
            _resultValue.vectorIndexName = vectorIndexName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy