com.pulumi.aws.bedrock.outputs.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration 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.bedrock.outputs;
import com.pulumi.aws.bedrock.outputs.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPrompt;
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 AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration {
/**
* @return The ARN of the model used to parse documents
*
*/
private String modelArn;
/**
* @return Instructions for interpreting the contents of the document. See `parsing_prompt` block for details.
*
*/
private @Nullable AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPrompt parsingPrompt;
private AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration() {}
/**
* @return The ARN of the model used to parse documents
*
*/
public String modelArn() {
return this.modelArn;
}
/**
* @return Instructions for interpreting the contents of the document. See `parsing_prompt` block for details.
*
*/
public Optional parsingPrompt() {
return Optional.ofNullable(this.parsingPrompt);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String modelArn;
private @Nullable AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPrompt parsingPrompt;
public Builder() {}
public Builder(AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration defaults) {
Objects.requireNonNull(defaults);
this.modelArn = defaults.modelArn;
this.parsingPrompt = defaults.parsingPrompt;
}
@CustomType.Setter
public Builder modelArn(String modelArn) {
if (modelArn == null) {
throw new MissingRequiredPropertyException("AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration", "modelArn");
}
this.modelArn = modelArn;
return this;
}
@CustomType.Setter
public Builder parsingPrompt(@Nullable AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPrompt parsingPrompt) {
this.parsingPrompt = parsingPrompt;
return this;
}
public AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration build() {
final var _resultValue = new AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration();
_resultValue.modelArn = modelArn;
_resultValue.parsingPrompt = parsingPrompt;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy