AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
68 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
69 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
70 inline Highlight& WithValue(const Aws::String& value) { SetValue(value); return *this;}
71 inline Highlight& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
72 inline Highlight& WithValue(const char* value) { SetValue(value); return *this;}
74 private:
75
76 int m_startIndex;
77 bool m_startIndexHasBeenSet = false;
78
79 int m_endIndex;
80 bool m_endIndexHasBeenSet = false;
81
82 Aws::String m_value;
83 bool m_valueHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace GeoPlaces
88} // namespace Aws
AWS_GEOPLACES_API Highlight & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const char *value)
Definition Highlight.h:69
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
Highlight & WithValue(const Aws::String &value)
Definition Highlight.h:70
AWS_GEOPLACES_API Highlight()
const Aws::String & GetValue() const
Definition Highlight.h:65
void SetValue(const Aws::String &value)
Definition Highlight.h:67
Highlight & WithValue(Aws::String &&value)
Definition Highlight.h:71
Highlight & WithEndIndex(int value)
Definition Highlight.h:58
void SetValue(Aws::String &&value)
Definition Highlight.h:68
Highlight & WithValue(const char *value)
Definition Highlight.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue