AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
ParsedQueryComponent.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
28 public:
29 AWS_GEOPLACES_API ParsedQueryComponent() = default;
32 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetStartIndex() const { return m_startIndex; }
39 inline bool StartIndexHasBeenSet() const { return m_startIndexHasBeenSet; }
40 inline void SetStartIndex(int value) {
41 m_startIndexHasBeenSet = true;
42 m_startIndex = value;
43 }
45 SetStartIndex(value);
46 return *this;
47 }
49
51
54 inline int GetEndIndex() const { return m_endIndex; }
55 inline bool EndIndexHasBeenSet() const { return m_endIndexHasBeenSet; }
56 inline void SetEndIndex(int value) {
57 m_endIndexHasBeenSet = true;
58 m_endIndex = value;
59 }
61 SetEndIndex(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetValue() const { return m_value; }
71 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
72 template <typename ValueT = Aws::String>
73 void SetValue(ValueT&& value) {
74 m_valueHasBeenSet = true;
75 m_value = std::forward<ValueT>(value);
76 }
77 template <typename ValueT = Aws::String>
79 SetValue(std::forward<ValueT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetQueryComponent() const { return m_queryComponent; }
89 inline bool QueryComponentHasBeenSet() const { return m_queryComponentHasBeenSet; }
90 template <typename QueryComponentT = Aws::String>
91 void SetQueryComponent(QueryComponentT&& value) {
92 m_queryComponentHasBeenSet = true;
93 m_queryComponent = std::forward<QueryComponentT>(value);
94 }
95 template <typename QueryComponentT = Aws::String>
96 ParsedQueryComponent& WithQueryComponent(QueryComponentT&& value) {
97 SetQueryComponent(std::forward<QueryComponentT>(value));
98 return *this;
99 }
101 private:
102 int m_startIndex{0};
103
104 int m_endIndex{0};
105
106 Aws::String m_value;
107
108 Aws::String m_queryComponent;
109 bool m_startIndexHasBeenSet = false;
110 bool m_endIndexHasBeenSet = false;
111 bool m_valueHasBeenSet = false;
112 bool m_queryComponentHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace GeoPlaces
117} // namespace Aws
ParsedQueryComponent & WithValue(ValueT &&value)
ParsedQueryComponent & WithEndIndex(int value)
ParsedQueryComponent & WithStartIndex(int value)
ParsedQueryComponent & WithQueryComponent(QueryComponentT &&value)
AWS_GEOPLACES_API ParsedQueryComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetQueryComponent(QueryComponentT &&value)
AWS_GEOPLACES_API ParsedQueryComponent()=default
AWS_GEOPLACES_API ParsedQueryComponent(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue