/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.camel.component.ibm.watsonx.ai.springboot;

import org.apache.camel.component.ibm.watsonx.ai.WatsonxAiConfiguration;
import org.apache.camel.component.ibm.watsonx.ai.WatsonxAiOperations;
import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Interact with IBM watsonx.ai foundation models for text generation, chat,
 * embeddings, and more.
 * 
 * Generated by camel-package-maven-plugin - do not edit this file!
 */
@ConfigurationProperties(prefix = "camel.component.ibm-watsonx-ai")
public class WatsonxAiComponentConfiguration
        extends
            ComponentConfigurationPropertiesCommon {

    /**
     * Whether to enable auto configuration of the ibm-watsonx-ai component.
     * This is enabled by default.
     */
    private Boolean enabled;
    /**
     * The watsonx.ai base URL (e.g., https://us-south.ml.cloud.ibm.com)
     */
    private String baseUrl;
    /**
     * The component configuration. The option is a
     * org.apache.camel.component.ibm.watsonx.ai.WatsonxAiConfiguration type.
     */
    private WatsonxAiConfiguration configuration;
    /**
     * IBM Cloud project ID
     */
    private String projectId;
    /**
     * IBM Cloud deployment space ID (alternative to projectId)
     */
    private String spaceId;
    /**
     * The watsonx.ai WX platform URL for tool operations (e.g.,
     * https://api.dataplatform.cloud.ibm.com/wx)
     */
    private String wxUrl;
    /**
     * Cloud Object Storage URL
     */
    private String cosUrl;
    /**
     * Deployed model ID (for deployment operations)
     */
    private String deploymentId;
    /**
     * Whether to detect HAP (Harmful, Abusive, Profane content)
     */
    private Boolean detectHap = false;
    /**
     * Detection threshold (0.0 to 1.0)
     */
    private Double detectionThreshold;
    /**
     * Whether to detect PII (Personal Identifiable Information)
     */
    private Boolean detectPii = false;
    /**
     * COS bucket for document storage
     */
    private String documentBucket;
    /**
     * COS connection ID for document storage
     */
    private String documentConnectionId;
    /**
     * Frequency penalty for chat
     */
    private Double frequencyPenalty;
    /**
     * Whether the producer should be started lazy (on the first message). By
     * starting lazy you can use this to allow CamelContext and routes to
     * startup in situations where a producer may otherwise fail during starting
     * and cause the route to fail being started. By deferring this startup to
     * be lazy then the startup failure can be handled during routing messages
     * via Camel's routing error handlers. Beware that when the first message is
     * processed then creating and starting the producer may take a little time
     * and prolong the total processing time of the processing.
     */
    private Boolean lazyStartProducer = false;
    /**
     * Maximum completion tokens for chat
     */
    private Integer maxCompletionTokens;
    /**
     * Maximum new tokens to generate
     */
    private Integer maxNewTokens;
    /**
     * Foundation model ID (e.g., ibm/granite-13b-instruct-v2)
     */
    private String modelId;
    /**
     * The operation to perform
     */
    private WatsonxAiOperations operation;
    /**
     * Presence penalty for chat
     */
    private Double presencePenalty;
    /**
     * Repetition penalty
     */
    private Double repetitionPenalty;
    /**
     * Number of top results to return for reranking
     */
    private Integer rerankTopN;
    /**
     * COS bucket for result storage
     */
    private String resultBucket;
    /**
     * COS connection ID for result storage
     */
    private String resultConnectionId;
    /**
     * Whether to return documents in rerank response
     */
    private Boolean returnDocuments = false;
    /**
     * Temperature for randomness (0.0 to 2.0)
     */
    private Double temperature;
    /**
     * Top K (top-k sampling)
     */
    private Integer topK;
    /**
     * Top P (nucleus sampling)
     */
    private Double topP;
    /**
     * Maximum number of tokens accepted per input for embeddings. Truncates
     * from the end if exceeded.
     */
    private Integer truncateInputTokens;
    /**
     * Whether autowiring is enabled. This is used for automatic autowiring
     * options (the option must be marked as autowired) by looking up in the
     * registry to find if there is a single instance of matching type, which
     * then gets configured on the component. This can be used for automatic
     * configuring JDBC data sources, JMS connection factories, AWS Clients,
     * etc.
     */
    private Boolean autowiredEnabled = true;
    /**
     * Whether to log HTTP requests to the watsonx.ai API
     */
    private Boolean logRequests = false;
    /**
     * Whether to log HTTP responses from the watsonx.ai API
     */
    private Boolean logResponses = false;
    /**
     * Request timeout in milliseconds
     */
    private Long timeout;
    /**
     * Whether to verify SSL certificates
     */
    private Boolean verifySsl = true;
    /**
     * IBM Cloud API key for authentication
     */
    private String apiKey;

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public WatsonxAiConfiguration getConfiguration() {
        return configuration;
    }

    public void setConfiguration(WatsonxAiConfiguration configuration) {
        this.configuration = configuration;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getSpaceId() {
        return spaceId;
    }

    public void setSpaceId(String spaceId) {
        this.spaceId = spaceId;
    }

    public String getWxUrl() {
        return wxUrl;
    }

    public void setWxUrl(String wxUrl) {
        this.wxUrl = wxUrl;
    }

    public String getCosUrl() {
        return cosUrl;
    }

    public void setCosUrl(String cosUrl) {
        this.cosUrl = cosUrl;
    }

    public String getDeploymentId() {
        return deploymentId;
    }

    public void setDeploymentId(String deploymentId) {
        this.deploymentId = deploymentId;
    }

    public Boolean getDetectHap() {
        return detectHap;
    }

    public void setDetectHap(Boolean detectHap) {
        this.detectHap = detectHap;
    }

    public Double getDetectionThreshold() {
        return detectionThreshold;
    }

    public void setDetectionThreshold(Double detectionThreshold) {
        this.detectionThreshold = detectionThreshold;
    }

    public Boolean getDetectPii() {
        return detectPii;
    }

    public void setDetectPii(Boolean detectPii) {
        this.detectPii = detectPii;
    }

    public String getDocumentBucket() {
        return documentBucket;
    }

    public void setDocumentBucket(String documentBucket) {
        this.documentBucket = documentBucket;
    }

    public String getDocumentConnectionId() {
        return documentConnectionId;
    }

    public void setDocumentConnectionId(String documentConnectionId) {
        this.documentConnectionId = documentConnectionId;
    }

    public Double getFrequencyPenalty() {
        return frequencyPenalty;
    }

    public void setFrequencyPenalty(Double frequencyPenalty) {
        this.frequencyPenalty = frequencyPenalty;
    }

    public Boolean getLazyStartProducer() {
        return lazyStartProducer;
    }

    public void setLazyStartProducer(Boolean lazyStartProducer) {
        this.lazyStartProducer = lazyStartProducer;
    }

    public Integer getMaxCompletionTokens() {
        return maxCompletionTokens;
    }

    public void setMaxCompletionTokens(Integer maxCompletionTokens) {
        this.maxCompletionTokens = maxCompletionTokens;
    }

    public Integer getMaxNewTokens() {
        return maxNewTokens;
    }

    public void setMaxNewTokens(Integer maxNewTokens) {
        this.maxNewTokens = maxNewTokens;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public WatsonxAiOperations getOperation() {
        return operation;
    }

    public void setOperation(WatsonxAiOperations operation) {
        this.operation = operation;
    }

    public Double getPresencePenalty() {
        return presencePenalty;
    }

    public void setPresencePenalty(Double presencePenalty) {
        this.presencePenalty = presencePenalty;
    }

    public Double getRepetitionPenalty() {
        return repetitionPenalty;
    }

    public void setRepetitionPenalty(Double repetitionPenalty) {
        this.repetitionPenalty = repetitionPenalty;
    }

    public Integer getRerankTopN() {
        return rerankTopN;
    }

    public void setRerankTopN(Integer rerankTopN) {
        this.rerankTopN = rerankTopN;
    }

    public String getResultBucket() {
        return resultBucket;
    }

    public void setResultBucket(String resultBucket) {
        this.resultBucket = resultBucket;
    }

    public String getResultConnectionId() {
        return resultConnectionId;
    }

    public void setResultConnectionId(String resultConnectionId) {
        this.resultConnectionId = resultConnectionId;
    }

    public Boolean getReturnDocuments() {
        return returnDocuments;
    }

    public void setReturnDocuments(Boolean returnDocuments) {
        this.returnDocuments = returnDocuments;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    public Integer getTopK() {
        return topK;
    }

    public void setTopK(Integer topK) {
        this.topK = topK;
    }

    public Double getTopP() {
        return topP;
    }

    public void setTopP(Double topP) {
        this.topP = topP;
    }

    public Integer getTruncateInputTokens() {
        return truncateInputTokens;
    }

    public void setTruncateInputTokens(Integer truncateInputTokens) {
        this.truncateInputTokens = truncateInputTokens;
    }

    public Boolean getAutowiredEnabled() {
        return autowiredEnabled;
    }

    public void setAutowiredEnabled(Boolean autowiredEnabled) {
        this.autowiredEnabled = autowiredEnabled;
    }

    public Boolean getLogRequests() {
        return logRequests;
    }

    public void setLogRequests(Boolean logRequests) {
        this.logRequests = logRequests;
    }

    public Boolean getLogResponses() {
        return logResponses;
    }

    public void setLogResponses(Boolean logResponses) {
        this.logResponses = logResponses;
    }

    public Long getTimeout() {
        return timeout;
    }

    public void setTimeout(Long timeout) {
        this.timeout = timeout;
    }

    public Boolean getVerifySsl() {
        return verifySsl;
    }

    public void setVerifySsl(Boolean verifySsl) {
        this.verifySsl = verifySsl;
    }

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }
}