AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SpellCorrectedQuery.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/model/Correction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace kendra
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_KENDRA_API SpellCorrectedQuery() = default;
39 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSuggestedQueryText() const { return m_suggestedQueryText; }
47 inline bool SuggestedQueryTextHasBeenSet() const { return m_suggestedQueryTextHasBeenSet; }
48 template<typename SuggestedQueryTextT = Aws::String>
49 void SetSuggestedQueryText(SuggestedQueryTextT&& value) { m_suggestedQueryTextHasBeenSet = true; m_suggestedQueryText = std::forward<SuggestedQueryTextT>(value); }
50 template<typename SuggestedQueryTextT = Aws::String>
51 SpellCorrectedQuery& WithSuggestedQueryText(SuggestedQueryTextT&& value) { SetSuggestedQueryText(std::forward<SuggestedQueryTextT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Correction>& GetCorrections() const { return m_corrections; }
59 inline bool CorrectionsHasBeenSet() const { return m_correctionsHasBeenSet; }
60 template<typename CorrectionsT = Aws::Vector<Correction>>
61 void SetCorrections(CorrectionsT&& value) { m_correctionsHasBeenSet = true; m_corrections = std::forward<CorrectionsT>(value); }
62 template<typename CorrectionsT = Aws::Vector<Correction>>
63 SpellCorrectedQuery& WithCorrections(CorrectionsT&& value) { SetCorrections(std::forward<CorrectionsT>(value)); return *this;}
64 template<typename CorrectionsT = Correction>
65 SpellCorrectedQuery& AddCorrections(CorrectionsT&& value) { m_correctionsHasBeenSet = true; m_corrections.emplace_back(std::forward<CorrectionsT>(value)); return *this; }
67 private:
68
69 Aws::String m_suggestedQueryText;
70 bool m_suggestedQueryTextHasBeenSet = false;
71
72 Aws::Vector<Correction> m_corrections;
73 bool m_correctionsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace kendra
78} // namespace Aws
AWS_KENDRA_API SpellCorrectedQuery()=default
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSuggestedQueryText(SuggestedQueryTextT &&value)
SpellCorrectedQuery & WithSuggestedQueryText(SuggestedQueryTextT &&value)
SpellCorrectedQuery & AddCorrections(CorrectionsT &&value)
AWS_KENDRA_API SpellCorrectedQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
SpellCorrectedQuery & WithCorrections(CorrectionsT &&value)
const Aws::Vector< Correction > & GetCorrections() const
AWS_KENDRA_API SpellCorrectedQuery(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSuggestedQueryText() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue