AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SuggestionMatch.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_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 CloudSearchDomain
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch() = default;
36 AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetSuggestion() const { return m_suggestion; }
47 inline bool SuggestionHasBeenSet() const { return m_suggestionHasBeenSet; }
48 template<typename SuggestionT = Aws::String>
49 void SetSuggestion(SuggestionT&& value) { m_suggestionHasBeenSet = true; m_suggestion = std::forward<SuggestionT>(value); }
50 template<typename SuggestionT = Aws::String>
51 SuggestionMatch& WithSuggestion(SuggestionT&& value) { SetSuggestion(std::forward<SuggestionT>(value)); return *this;}
53
55
58 inline long long GetScore() const { return m_score; }
59 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
60 inline void SetScore(long long value) { m_scoreHasBeenSet = true; m_score = value; }
61 inline SuggestionMatch& WithScore(long long value) { SetScore(value); return *this;}
63
65
68 inline const Aws::String& GetId() const { return m_id; }
69 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
70 template<typename IdT = Aws::String>
71 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
72 template<typename IdT = Aws::String>
73 SuggestionMatch& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
75 private:
76
77 Aws::String m_suggestion;
78 bool m_suggestionHasBeenSet = false;
79
80 long long m_score{0};
81 bool m_scoreHasBeenSet = false;
82
83 Aws::String m_id;
84 bool m_idHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CloudSearchDomain
89} // namespace Aws
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
SuggestionMatch & WithSuggestion(SuggestionT &&value)
AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch()=default
SuggestionMatch & WithScore(long long value)
AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue