AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SalesforceKnowledgeArticleConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/model/SalesforceStandardKnowledgeArticleTypeConfiguration.h>
10#include <aws/kendra/model/SalesforceKnowledgeArticleState.h>
11#include <aws/kendra/model/SalesforceCustomKnowledgeArticleTypeConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace kendra
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_KENDRA_API SalesforceKnowledgeArticleConfiguration() = default;
43 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<SalesforceKnowledgeArticleState>& GetIncludedStates() const { return m_includedStates; }
52 inline bool IncludedStatesHasBeenSet() const { return m_includedStatesHasBeenSet; }
53 template<typename IncludedStatesT = Aws::Vector<SalesforceKnowledgeArticleState>>
54 void SetIncludedStates(IncludedStatesT&& value) { m_includedStatesHasBeenSet = true; m_includedStates = std::forward<IncludedStatesT>(value); }
55 template<typename IncludedStatesT = Aws::Vector<SalesforceKnowledgeArticleState>>
56 SalesforceKnowledgeArticleConfiguration& WithIncludedStates(IncludedStatesT&& value) { SetIncludedStates(std::forward<IncludedStatesT>(value)); return *this;}
57 inline SalesforceKnowledgeArticleConfiguration& AddIncludedStates(SalesforceKnowledgeArticleState value) { m_includedStatesHasBeenSet = true; m_includedStates.push_back(value); return *this; }
59
61
64 inline const SalesforceStandardKnowledgeArticleTypeConfiguration& GetStandardKnowledgeArticleTypeConfiguration() const { return m_standardKnowledgeArticleTypeConfiguration; }
65 inline bool StandardKnowledgeArticleTypeConfigurationHasBeenSet() const { return m_standardKnowledgeArticleTypeConfigurationHasBeenSet; }
66 template<typename StandardKnowledgeArticleTypeConfigurationT = SalesforceStandardKnowledgeArticleTypeConfiguration>
67 void SetStandardKnowledgeArticleTypeConfiguration(StandardKnowledgeArticleTypeConfigurationT&& value) { m_standardKnowledgeArticleTypeConfigurationHasBeenSet = true; m_standardKnowledgeArticleTypeConfiguration = std::forward<StandardKnowledgeArticleTypeConfigurationT>(value); }
68 template<typename StandardKnowledgeArticleTypeConfigurationT = SalesforceStandardKnowledgeArticleTypeConfiguration>
69 SalesforceKnowledgeArticleConfiguration& WithStandardKnowledgeArticleTypeConfiguration(StandardKnowledgeArticleTypeConfigurationT&& value) { SetStandardKnowledgeArticleTypeConfiguration(std::forward<StandardKnowledgeArticleTypeConfigurationT>(value)); return *this;}
71
73
76 inline const Aws::Vector<SalesforceCustomKnowledgeArticleTypeConfiguration>& GetCustomKnowledgeArticleTypeConfigurations() const { return m_customKnowledgeArticleTypeConfigurations; }
77 inline bool CustomKnowledgeArticleTypeConfigurationsHasBeenSet() const { return m_customKnowledgeArticleTypeConfigurationsHasBeenSet; }
78 template<typename CustomKnowledgeArticleTypeConfigurationsT = Aws::Vector<SalesforceCustomKnowledgeArticleTypeConfiguration>>
79 void SetCustomKnowledgeArticleTypeConfigurations(CustomKnowledgeArticleTypeConfigurationsT&& value) { m_customKnowledgeArticleTypeConfigurationsHasBeenSet = true; m_customKnowledgeArticleTypeConfigurations = std::forward<CustomKnowledgeArticleTypeConfigurationsT>(value); }
80 template<typename CustomKnowledgeArticleTypeConfigurationsT = Aws::Vector<SalesforceCustomKnowledgeArticleTypeConfiguration>>
81 SalesforceKnowledgeArticleConfiguration& WithCustomKnowledgeArticleTypeConfigurations(CustomKnowledgeArticleTypeConfigurationsT&& value) { SetCustomKnowledgeArticleTypeConfigurations(std::forward<CustomKnowledgeArticleTypeConfigurationsT>(value)); return *this;}
82 template<typename CustomKnowledgeArticleTypeConfigurationsT = SalesforceCustomKnowledgeArticleTypeConfiguration>
83 SalesforceKnowledgeArticleConfiguration& AddCustomKnowledgeArticleTypeConfigurations(CustomKnowledgeArticleTypeConfigurationsT&& value) { m_customKnowledgeArticleTypeConfigurationsHasBeenSet = true; m_customKnowledgeArticleTypeConfigurations.emplace_back(std::forward<CustomKnowledgeArticleTypeConfigurationsT>(value)); return *this; }
85 private:
86
88 bool m_includedStatesHasBeenSet = false;
89
90 SalesforceStandardKnowledgeArticleTypeConfiguration m_standardKnowledgeArticleTypeConfiguration;
91 bool m_standardKnowledgeArticleTypeConfigurationHasBeenSet = false;
92
93 Aws::Vector<SalesforceCustomKnowledgeArticleTypeConfiguration> m_customKnowledgeArticleTypeConfigurations;
94 bool m_customKnowledgeArticleTypeConfigurationsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace kendra
99} // namespace Aws
SalesforceKnowledgeArticleConfiguration & WithStandardKnowledgeArticleTypeConfiguration(StandardKnowledgeArticleTypeConfigurationT &&value)
AWS_KENDRA_API SalesforceKnowledgeArticleConfiguration()=default
void SetIncludedStates(IncludedStatesT &&value)
bool StandardKnowledgeArticleTypeConfigurationHasBeenSet() const
AWS_KENDRA_API SalesforceKnowledgeArticleConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API SalesforceKnowledgeArticleConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SalesforceKnowledgeArticleConfiguration & AddCustomKnowledgeArticleTypeConfigurations(CustomKnowledgeArticleTypeConfigurationsT &&value)
SalesforceKnowledgeArticleConfiguration & WithIncludedStates(IncludedStatesT &&value)
void SetCustomKnowledgeArticleTypeConfigurations(CustomKnowledgeArticleTypeConfigurationsT &&value)
const SalesforceStandardKnowledgeArticleTypeConfiguration & GetStandardKnowledgeArticleTypeConfiguration() const
bool IncludedStatesHasBeenSet() const
const Aws::Vector< SalesforceKnowledgeArticleState > & GetIncludedStates() const
SalesforceKnowledgeArticleConfiguration & AddIncludedStates(SalesforceKnowledgeArticleState value)
const Aws::Vector< SalesforceCustomKnowledgeArticleTypeConfiguration > & GetCustomKnowledgeArticleTypeConfigurations() const
void SetStandardKnowledgeArticleTypeConfiguration(StandardKnowledgeArticleTypeConfigurationT &&value)
SalesforceKnowledgeArticleConfiguration & WithCustomKnowledgeArticleTypeConfigurations(CustomKnowledgeArticleTypeConfigurationsT &&value)
bool CustomKnowledgeArticleTypeConfigurationsHasBeenSet() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue