AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryRefinement.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_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 GeoPlaces
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_GEOPLACES_API QueryRefinement();
37 AWS_GEOPLACES_API QueryRefinement(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRefinedTerm() const{ return m_refinedTerm; }
47 inline bool RefinedTermHasBeenSet() const { return m_refinedTermHasBeenSet; }
48 inline void SetRefinedTerm(const Aws::String& value) { m_refinedTermHasBeenSet = true; m_refinedTerm = value; }
49 inline void SetRefinedTerm(Aws::String&& value) { m_refinedTermHasBeenSet = true; m_refinedTerm = std::move(value); }
50 inline void SetRefinedTerm(const char* value) { m_refinedTermHasBeenSet = true; m_refinedTerm.assign(value); }
51 inline QueryRefinement& WithRefinedTerm(const Aws::String& value) { SetRefinedTerm(value); return *this;}
52 inline QueryRefinement& WithRefinedTerm(Aws::String&& value) { SetRefinedTerm(std::move(value)); return *this;}
53 inline QueryRefinement& WithRefinedTerm(const char* value) { SetRefinedTerm(value); return *this;}
55
57
60 inline const Aws::String& GetOriginalTerm() const{ return m_originalTerm; }
61 inline bool OriginalTermHasBeenSet() const { return m_originalTermHasBeenSet; }
62 inline void SetOriginalTerm(const Aws::String& value) { m_originalTermHasBeenSet = true; m_originalTerm = value; }
63 inline void SetOriginalTerm(Aws::String&& value) { m_originalTermHasBeenSet = true; m_originalTerm = std::move(value); }
64 inline void SetOriginalTerm(const char* value) { m_originalTermHasBeenSet = true; m_originalTerm.assign(value); }
65 inline QueryRefinement& WithOriginalTerm(const Aws::String& value) { SetOriginalTerm(value); return *this;}
66 inline QueryRefinement& WithOriginalTerm(Aws::String&& value) { SetOriginalTerm(std::move(value)); return *this;}
67 inline QueryRefinement& WithOriginalTerm(const char* value) { SetOriginalTerm(value); return *this;}
69
71
74 inline int GetStartIndex() const{ return m_startIndex; }
75 inline bool StartIndexHasBeenSet() const { return m_startIndexHasBeenSet; }
76 inline void SetStartIndex(int value) { m_startIndexHasBeenSet = true; m_startIndex = value; }
77 inline QueryRefinement& WithStartIndex(int value) { SetStartIndex(value); return *this;}
79
81
84 inline int GetEndIndex() const{ return m_endIndex; }
85 inline bool EndIndexHasBeenSet() const { return m_endIndexHasBeenSet; }
86 inline void SetEndIndex(int value) { m_endIndexHasBeenSet = true; m_endIndex = value; }
87 inline QueryRefinement& WithEndIndex(int value) { SetEndIndex(value); return *this;}
89 private:
90
91 Aws::String m_refinedTerm;
92 bool m_refinedTermHasBeenSet = false;
93
94 Aws::String m_originalTerm;
95 bool m_originalTermHasBeenSet = false;
96
97 int m_startIndex;
98 bool m_startIndexHasBeenSet = false;
99
100 int m_endIndex;
101 bool m_endIndexHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace GeoPlaces
106} // namespace Aws
QueryRefinement & WithRefinedTerm(const Aws::String &value)
void SetOriginalTerm(const char *value)
void SetOriginalTerm(Aws::String &&value)
const Aws::String & GetOriginalTerm() const
QueryRefinement & WithRefinedTerm(Aws::String &&value)
AWS_GEOPLACES_API QueryRefinement(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
QueryRefinement & WithRefinedTerm(const char *value)
QueryRefinement & WithOriginalTerm(const Aws::String &value)
void SetOriginalTerm(const Aws::String &value)
const Aws::String & GetRefinedTerm() const
void SetRefinedTerm(const Aws::String &value)
AWS_GEOPLACES_API QueryRefinement & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryRefinement & WithStartIndex(int value)
QueryRefinement & WithOriginalTerm(const char *value)
QueryRefinement & WithOriginalTerm(Aws::String &&value)
void SetRefinedTerm(Aws::String &&value)
QueryRefinement & WithEndIndex(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue