AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Highlight.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
33 {
34 public:
35 AWS_GEOPLACES_API Highlight() = default;
36 AWS_GEOPLACES_API Highlight(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOPLACES_API Highlight& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetStartIndex() const { return m_startIndex; }
46 inline bool StartIndexHasBeenSet() const { return m_startIndexHasBeenSet; }
47 inline void SetStartIndex(int value) { m_startIndexHasBeenSet = true; m_startIndex = value; }
48 inline Highlight& WithStartIndex(int value) { SetStartIndex(value); return *this;}
50
52
55 inline int GetEndIndex() const { return m_endIndex; }
56 inline bool EndIndexHasBeenSet() const { return m_endIndexHasBeenSet; }
57 inline void SetEndIndex(int value) { m_endIndexHasBeenSet = true; m_endIndex = value; }
58 inline Highlight& WithEndIndex(int value) { SetEndIndex(value); return *this;}
60
62
65 inline const Aws::String& GetValue() const { return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 template<typename ValueT = Aws::String>
68 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
69 template<typename ValueT = Aws::String>
70 Highlight& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
72 private:
73
74 int m_startIndex{0};
75 bool m_startIndexHasBeenSet = false;
76
77 int m_endIndex{0};
78 bool m_endIndexHasBeenSet = false;
79
80 Aws::String m_value;
81 bool m_valueHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace GeoPlaces
86} // namespace Aws
AWS_GEOPLACES_API Highlight & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(ValueT &&value)
Definition Highlight.h:68
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:48
const Aws::String & GetValue() const
Definition Highlight.h:65
Highlight & WithEndIndex(int value)
Definition Highlight.h:58
Highlight & WithValue(ValueT &&value)
Definition Highlight.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue