AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DataSourceToIndexFieldMapping.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace kendra
22{
23namespace Model
24{
25
42 {
43 public:
44 AWS_KENDRA_API DataSourceToIndexFieldMapping() = default;
47 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetDataSourceFieldName() const { return m_dataSourceFieldName; }
56 inline bool DataSourceFieldNameHasBeenSet() const { return m_dataSourceFieldNameHasBeenSet; }
57 template<typename DataSourceFieldNameT = Aws::String>
58 void SetDataSourceFieldName(DataSourceFieldNameT&& value) { m_dataSourceFieldNameHasBeenSet = true; m_dataSourceFieldName = std::forward<DataSourceFieldNameT>(value); }
59 template<typename DataSourceFieldNameT = Aws::String>
60 DataSourceToIndexFieldMapping& WithDataSourceFieldName(DataSourceFieldNameT&& value) { SetDataSourceFieldName(std::forward<DataSourceFieldNameT>(value)); return *this;}
62
64
69 inline const Aws::String& GetDateFieldFormat() const { return m_dateFieldFormat; }
70 inline bool DateFieldFormatHasBeenSet() const { return m_dateFieldFormatHasBeenSet; }
71 template<typename DateFieldFormatT = Aws::String>
72 void SetDateFieldFormat(DateFieldFormatT&& value) { m_dateFieldFormatHasBeenSet = true; m_dateFieldFormat = std::forward<DateFieldFormatT>(value); }
73 template<typename DateFieldFormatT = Aws::String>
74 DataSourceToIndexFieldMapping& WithDateFieldFormat(DateFieldFormatT&& value) { SetDateFieldFormat(std::forward<DateFieldFormatT>(value)); return *this;}
76
78
82 inline const Aws::String& GetIndexFieldName() const { return m_indexFieldName; }
83 inline bool IndexFieldNameHasBeenSet() const { return m_indexFieldNameHasBeenSet; }
84 template<typename IndexFieldNameT = Aws::String>
85 void SetIndexFieldName(IndexFieldNameT&& value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName = std::forward<IndexFieldNameT>(value); }
86 template<typename IndexFieldNameT = Aws::String>
87 DataSourceToIndexFieldMapping& WithIndexFieldName(IndexFieldNameT&& value) { SetIndexFieldName(std::forward<IndexFieldNameT>(value)); return *this;}
89 private:
90
91 Aws::String m_dataSourceFieldName;
92 bool m_dataSourceFieldNameHasBeenSet = false;
93
94 Aws::String m_dateFieldFormat;
95 bool m_dateFieldFormatHasBeenSet = false;
96
97 Aws::String m_indexFieldName;
98 bool m_indexFieldNameHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace kendra
103} // namespace Aws
DataSourceToIndexFieldMapping & WithDataSourceFieldName(DataSourceFieldNameT &&value)
AWS_KENDRA_API DataSourceToIndexFieldMapping()=default
DataSourceToIndexFieldMapping & WithDateFieldFormat(DateFieldFormatT &&value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API DataSourceToIndexFieldMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceToIndexFieldMapping & WithIndexFieldName(IndexFieldNameT &&value)
AWS_KENDRA_API DataSourceToIndexFieldMapping(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue