AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SalesforceKnowledgeArticleConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/SalesforceCustomKnowledgeArticleTypeConfiguration.h>
10#include <aws/kendra/model/SalesforceKnowledgeArticleState.h>
11#include <aws/kendra/model/SalesforceStandardKnowledgeArticleTypeConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra {
23namespace Model {
24
34 public:
35 AWS_KENDRA_API SalesforceKnowledgeArticleConfiguration() = default;
38 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<SalesforceKnowledgeArticleState>& GetIncludedStates() const { return m_includedStates; }
46 inline bool IncludedStatesHasBeenSet() const { return m_includedStatesHasBeenSet; }
47 template <typename IncludedStatesT = Aws::Vector<SalesforceKnowledgeArticleState>>
48 void SetIncludedStates(IncludedStatesT&& value) {
49 m_includedStatesHasBeenSet = true;
50 m_includedStates = std::forward<IncludedStatesT>(value);
51 }
52 template <typename IncludedStatesT = Aws::Vector<SalesforceKnowledgeArticleState>>
54 SetIncludedStates(std::forward<IncludedStatesT>(value));
55 return *this;
56 }
58 m_includedStatesHasBeenSet = true;
59 m_includedStates.push_back(value);
60 return *this;
61 }
63
65
69 return m_standardKnowledgeArticleTypeConfiguration;
70 }
71 inline bool StandardKnowledgeArticleTypeConfigurationHasBeenSet() const { return m_standardKnowledgeArticleTypeConfigurationHasBeenSet; }
72 template <typename StandardKnowledgeArticleTypeConfigurationT = SalesforceStandardKnowledgeArticleTypeConfiguration>
73 void SetStandardKnowledgeArticleTypeConfiguration(StandardKnowledgeArticleTypeConfigurationT&& value) {
74 m_standardKnowledgeArticleTypeConfigurationHasBeenSet = true;
75 m_standardKnowledgeArticleTypeConfiguration = std::forward<StandardKnowledgeArticleTypeConfigurationT>(value);
76 }
77 template <typename StandardKnowledgeArticleTypeConfigurationT = SalesforceStandardKnowledgeArticleTypeConfiguration>
79 StandardKnowledgeArticleTypeConfigurationT&& value) {
80 SetStandardKnowledgeArticleTypeConfiguration(std::forward<StandardKnowledgeArticleTypeConfigurationT>(value));
81 return *this;
82 }
84
86
90 return m_customKnowledgeArticleTypeConfigurations;
91 }
92 inline bool CustomKnowledgeArticleTypeConfigurationsHasBeenSet() const { return m_customKnowledgeArticleTypeConfigurationsHasBeenSet; }
93 template <typename CustomKnowledgeArticleTypeConfigurationsT = Aws::Vector<SalesforceCustomKnowledgeArticleTypeConfiguration>>
94 void SetCustomKnowledgeArticleTypeConfigurations(CustomKnowledgeArticleTypeConfigurationsT&& value) {
95 m_customKnowledgeArticleTypeConfigurationsHasBeenSet = true;
96 m_customKnowledgeArticleTypeConfigurations = std::forward<CustomKnowledgeArticleTypeConfigurationsT>(value);
97 }
98 template <typename CustomKnowledgeArticleTypeConfigurationsT = Aws::Vector<SalesforceCustomKnowledgeArticleTypeConfiguration>>
100 SetCustomKnowledgeArticleTypeConfigurations(std::forward<CustomKnowledgeArticleTypeConfigurationsT>(value));
101 return *this;
102 }
103 template <typename CustomKnowledgeArticleTypeConfigurationsT = SalesforceCustomKnowledgeArticleTypeConfiguration>
105 m_customKnowledgeArticleTypeConfigurationsHasBeenSet = true;
106 m_customKnowledgeArticleTypeConfigurations.emplace_back(std::forward<CustomKnowledgeArticleTypeConfigurationsT>(value));
107 return *this;
108 }
110 private:
112
113 SalesforceStandardKnowledgeArticleTypeConfiguration m_standardKnowledgeArticleTypeConfiguration;
114
115 Aws::Vector<SalesforceCustomKnowledgeArticleTypeConfiguration> m_customKnowledgeArticleTypeConfigurations;
116 bool m_includedStatesHasBeenSet = false;
117 bool m_standardKnowledgeArticleTypeConfigurationHasBeenSet = false;
118 bool m_customKnowledgeArticleTypeConfigurationsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace kendra
123} // 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