/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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 com.amazonaws.services.kendra.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides the configuration information for the knowledge article types that Amazon Kendra indexes. Amazon Kendra * indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom * knowledge articles, but not both *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SalesforceKnowledgeArticleConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must * specify at least one state. *
*/ private java.util.List* Configuration information for standard Salesforce knowledge articles. *
*/ private SalesforceStandardKnowledgeArticleTypeConfiguration standardKnowledgeArticleTypeConfiguration; /** ** Configuration information for custom Salesforce knowledge articles. *
*/ private java.util.List* Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must * specify at least one state. *
* * @return Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You * must specify at least one state. * @see SalesforceKnowledgeArticleState */ public java.util.List* Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must * specify at least one state. *
* * @param includedStates * Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You * must specify at least one state. * @see SalesforceKnowledgeArticleState */ public void setIncludedStates(java.util.Collection* Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must * specify at least one state. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIncludedStates(java.util.Collection)} or {@link #withIncludedStates(java.util.Collection)} if you want * to override the existing values. *
* * @param includedStates * Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You * must specify at least one state. * @return Returns a reference to this object so that method calls can be chained together. * @see SalesforceKnowledgeArticleState */ public SalesforceKnowledgeArticleConfiguration withIncludedStates(String... includedStates) { if (this.includedStates == null) { setIncludedStates(new java.util.ArrayList* Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must * specify at least one state. *
* * @param includedStates * Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You * must specify at least one state. * @return Returns a reference to this object so that method calls can be chained together. * @see SalesforceKnowledgeArticleState */ public SalesforceKnowledgeArticleConfiguration withIncludedStates(java.util.Collection* Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must * specify at least one state. *
* * @param includedStates * Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You * must specify at least one state. * @return Returns a reference to this object so that method calls can be chained together. * @see SalesforceKnowledgeArticleState */ public SalesforceKnowledgeArticleConfiguration withIncludedStates(SalesforceKnowledgeArticleState... includedStates) { java.util.ArrayList* Configuration information for standard Salesforce knowledge articles. *
* * @param standardKnowledgeArticleTypeConfiguration * Configuration information for standard Salesforce knowledge articles. */ public void setStandardKnowledgeArticleTypeConfiguration(SalesforceStandardKnowledgeArticleTypeConfiguration standardKnowledgeArticleTypeConfiguration) { this.standardKnowledgeArticleTypeConfiguration = standardKnowledgeArticleTypeConfiguration; } /** ** Configuration information for standard Salesforce knowledge articles. *
* * @return Configuration information for standard Salesforce knowledge articles. */ public SalesforceStandardKnowledgeArticleTypeConfiguration getStandardKnowledgeArticleTypeConfiguration() { return this.standardKnowledgeArticleTypeConfiguration; } /** ** Configuration information for standard Salesforce knowledge articles. *
* * @param standardKnowledgeArticleTypeConfiguration * Configuration information for standard Salesforce knowledge articles. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceKnowledgeArticleConfiguration withStandardKnowledgeArticleTypeConfiguration( SalesforceStandardKnowledgeArticleTypeConfiguration standardKnowledgeArticleTypeConfiguration) { setStandardKnowledgeArticleTypeConfiguration(standardKnowledgeArticleTypeConfiguration); return this; } /** ** Configuration information for custom Salesforce knowledge articles. *
* * @return Configuration information for custom Salesforce knowledge articles. */ public java.util.List* Configuration information for custom Salesforce knowledge articles. *
* * @param customKnowledgeArticleTypeConfigurations * Configuration information for custom Salesforce knowledge articles. */ public void setCustomKnowledgeArticleTypeConfigurations( java.util.Collection* Configuration information for custom Salesforce knowledge articles. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCustomKnowledgeArticleTypeConfigurations(java.util.Collection)} or * {@link #withCustomKnowledgeArticleTypeConfigurations(java.util.Collection)} if you want to override the existing * values. *
* * @param customKnowledgeArticleTypeConfigurations * Configuration information for custom Salesforce knowledge articles. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceKnowledgeArticleConfiguration withCustomKnowledgeArticleTypeConfigurations( SalesforceCustomKnowledgeArticleTypeConfiguration... customKnowledgeArticleTypeConfigurations) { if (this.customKnowledgeArticleTypeConfigurations == null) { setCustomKnowledgeArticleTypeConfigurations(new java.util.ArrayList* Configuration information for custom Salesforce knowledge articles. *
* * @param customKnowledgeArticleTypeConfigurations * Configuration information for custom Salesforce knowledge articles. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceKnowledgeArticleConfiguration withCustomKnowledgeArticleTypeConfigurations( java.util.Collection