AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
Highlight.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoPlaces {
20namespace Model {
21
28class Highlight {
29 public:
30 AWS_GEOPLACES_API Highlight() = default;
31 AWS_GEOPLACES_API Highlight(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOPLACES_API Highlight& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetStartIndex() const { return m_startIndex; }
40 inline bool StartIndexHasBeenSet() const { return m_startIndexHasBeenSet; }
41 inline void SetStartIndex(int value) {
42 m_startIndexHasBeenSet = true;
43 m_startIndex = value;
44 }
45 inline Highlight& WithStartIndex(int value) {
46 SetStartIndex(value);
47 return *this;
48 }
50
52
55 inline int GetEndIndex() const { return m_endIndex; }
56 inline bool EndIndexHasBeenSet() const { return m_endIndexHasBeenSet; }
57 inline void SetEndIndex(int value) {
58 m_endIndexHasBeenSet = true;
59 m_endIndex = value;
60 }
61 inline Highlight& WithEndIndex(int value) {
62 SetEndIndex(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetValue() const { return m_value; }
72 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
73 template <typename ValueT = Aws::String>
74 void SetValue(ValueT&& value) {
75 m_valueHasBeenSet = true;
76 m_value = std::forward<ValueT>(value);
77 }
78 template <typename ValueT = Aws::String>
79 Highlight& WithValue(ValueT&& value) {
80 SetValue(std::forward<ValueT>(value));
81 return *this;
82 }
84 private:
85 int m_startIndex{0};
86
87 int m_endIndex{0};
88
89 Aws::String m_value;
90 bool m_startIndexHasBeenSet = false;
91 bool m_endIndexHasBeenSet = false;
92 bool m_valueHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace GeoPlaces
97} // namespace Aws
AWS_GEOPLACES_API Highlight & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(ValueT &&value)
Definition Highlight.h:74
AWS_GEOPLACES_API Highlight()=default
AWS_GEOPLACES_API Highlight(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
Highlight & WithStartIndex(int value)
Definition Highlight.h:45
const Aws::String & GetValue() const
Definition Highlight.h:71
Highlight & WithEndIndex(int value)
Definition Highlight.h:61
Highlight & WithValue(ValueT &&value)
Definition Highlight.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue