AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSuggestion(const Aws::String& value) { m_suggestionHasBeenSet = true; m_suggestion = value; }
49 inline void SetSuggestion(Aws::String&& value) { m_suggestionHasBeenSet = true; m_suggestion = std::move(value); }
50 inline void SetSuggestion(const char* value) { m_suggestionHasBeenSet = true; m_suggestion.assign(value); }
51 inline SuggestionMatch& WithSuggestion(const Aws::String& value) { SetSuggestion(value); return *this;}
52 inline SuggestionMatch& WithSuggestion(Aws::String&& value) { SetSuggestion(std::move(value)); return *this;}
53 inline SuggestionMatch& WithSuggestion(const char* value) { SetSuggestion(value); return *this;}
55
57
60 inline long long GetScore() const{ return m_score; }
61 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
62 inline void SetScore(long long value) { m_scoreHasBeenSet = true; m_score = value; }
63 inline SuggestionMatch& WithScore(long long value) { SetScore(value); return *this;}
65
67
70 inline const Aws::String& GetId() const{ return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
73 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
74 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
75 inline SuggestionMatch& WithId(const Aws::String& value) { SetId(value); return *this;}
76 inline SuggestionMatch& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 inline SuggestionMatch& WithId(const char* value) { SetId(value); return *this;}
79 private:
80
81 Aws::String m_suggestion;
82 bool m_suggestionHasBeenSet = false;
83
84 long long m_score;
85 bool m_scoreHasBeenSet = false;
86
87 Aws::String m_id;
88 bool m_idHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CloudSearchDomain
93} // namespace Aws
void SetSuggestion(const Aws::String &value)
SuggestionMatch & WithSuggestion(Aws::String &&value)
SuggestionMatch & WithId(const char *value)
SuggestionMatch & WithSuggestion(const Aws::String &value)
AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch()
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
SuggestionMatch & WithId(Aws::String &&value)
SuggestionMatch & WithScore(long long value)
SuggestionMatch & WithSuggestion(const char *value)
AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDSEARCHDOMAIN_API SuggestionMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
SuggestionMatch & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue