AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SalesforceStandardObjectConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/model/SalesforceStandardObjectName.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/model/DataSourceToIndexFieldMapping.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
36 {
37 public:
38 AWS_KENDRA_API SalesforceStandardObjectConfiguration() = default;
41 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline SalesforceStandardObjectName GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(SalesforceStandardObjectName value) { m_nameHasBeenSet = true; m_name = value; }
53
55
59 inline const Aws::String& GetDocumentDataFieldName() const { return m_documentDataFieldName; }
60 inline bool DocumentDataFieldNameHasBeenSet() const { return m_documentDataFieldNameHasBeenSet; }
61 template<typename DocumentDataFieldNameT = Aws::String>
62 void SetDocumentDataFieldName(DocumentDataFieldNameT&& value) { m_documentDataFieldNameHasBeenSet = true; m_documentDataFieldName = std::forward<DocumentDataFieldNameT>(value); }
63 template<typename DocumentDataFieldNameT = Aws::String>
64 SalesforceStandardObjectConfiguration& WithDocumentDataFieldName(DocumentDataFieldNameT&& value) { SetDocumentDataFieldName(std::forward<DocumentDataFieldNameT>(value)); return *this;}
66
68
72 inline const Aws::String& GetDocumentTitleFieldName() const { return m_documentTitleFieldName; }
73 inline bool DocumentTitleFieldNameHasBeenSet() const { return m_documentTitleFieldNameHasBeenSet; }
74 template<typename DocumentTitleFieldNameT = Aws::String>
75 void SetDocumentTitleFieldName(DocumentTitleFieldNameT&& value) { m_documentTitleFieldNameHasBeenSet = true; m_documentTitleFieldName = std::forward<DocumentTitleFieldNameT>(value); }
76 template<typename DocumentTitleFieldNameT = Aws::String>
77 SalesforceStandardObjectConfiguration& WithDocumentTitleFieldName(DocumentTitleFieldNameT&& value) { SetDocumentTitleFieldName(std::forward<DocumentTitleFieldNameT>(value)); return *this;}
79
81
89 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFieldMappings() const { return m_fieldMappings; }
90 inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; }
91 template<typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
92 void SetFieldMappings(FieldMappingsT&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = std::forward<FieldMappingsT>(value); }
93 template<typename FieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
94 SalesforceStandardObjectConfiguration& WithFieldMappings(FieldMappingsT&& value) { SetFieldMappings(std::forward<FieldMappingsT>(value)); return *this;}
95 template<typename FieldMappingsT = DataSourceToIndexFieldMapping>
96 SalesforceStandardObjectConfiguration& AddFieldMappings(FieldMappingsT&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.emplace_back(std::forward<FieldMappingsT>(value)); return *this; }
98 private:
99
101 bool m_nameHasBeenSet = false;
102
103 Aws::String m_documentDataFieldName;
104 bool m_documentDataFieldNameHasBeenSet = false;
105
106 Aws::String m_documentTitleFieldName;
107 bool m_documentTitleFieldNameHasBeenSet = false;
108
110 bool m_fieldMappingsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace kendra
115} // namespace Aws
AWS_KENDRA_API SalesforceStandardObjectConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SalesforceStandardObjectConfiguration & WithName(SalesforceStandardObjectName value)
SalesforceStandardObjectConfiguration & WithFieldMappings(FieldMappingsT &&value)
SalesforceStandardObjectConfiguration & WithDocumentDataFieldName(DocumentDataFieldNameT &&value)
AWS_KENDRA_API SalesforceStandardObjectConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< DataSourceToIndexFieldMapping > & GetFieldMappings() const
SalesforceStandardObjectConfiguration & WithDocumentTitleFieldName(DocumentTitleFieldNameT &&value)
SalesforceStandardObjectConfiguration & AddFieldMappings(FieldMappingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue