AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudSearchDomain {
20namespace Model {
21
29 public:
30 AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch() = default;
31 AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetSuggestion() const { return m_suggestion; }
41 inline bool SuggestionHasBeenSet() const { return m_suggestionHasBeenSet; }
42 template <typename SuggestionT = Aws::String>
43 void SetSuggestion(SuggestionT&& value) {
44 m_suggestionHasBeenSet = true;
45 m_suggestion = std::forward<SuggestionT>(value);
46 }
47 template <typename SuggestionT = Aws::String>
48 SuggestionMatch& WithSuggestion(SuggestionT&& value) {
49 SetSuggestion(std::forward<SuggestionT>(value));
50 return *this;
51 }
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) {
61 m_scoreHasBeenSet = true;
62 m_score = value;
63 }
64 inline SuggestionMatch& WithScore(long long value) {
65 SetScore(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 template <typename IdT = Aws::String>
77 void SetId(IdT&& value) {
78 m_idHasBeenSet = true;
79 m_id = std::forward<IdT>(value);
80 }
81 template <typename IdT = Aws::String>
82 SuggestionMatch& WithId(IdT&& value) {
83 SetId(std::forward<IdT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_suggestion;
89
90 long long m_score{0};
91
92 Aws::String m_id;
93 bool m_suggestionHasBeenSet = false;
94 bool m_scoreHasBeenSet = false;
95 bool m_idHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace CloudSearchDomain
100} // 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