AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ParsedQuerySecondaryAddressComponent.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 ParsedQuerySecondaryAddressComponent() = default;
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 ParsedQuerySecondaryAddressComponent& 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 ParsedQuerySecondaryAddressComponent& 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 ParsedQuerySecondaryAddressComponent& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
72
74
77 inline const Aws::String& GetNumber() const { return m_number; }
78 inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
79 template<typename NumberT = Aws::String>
80 void SetNumber(NumberT&& value) { m_numberHasBeenSet = true; m_number = std::forward<NumberT>(value); }
81 template<typename NumberT = Aws::String>
82 ParsedQuerySecondaryAddressComponent& WithNumber(NumberT&& value) { SetNumber(std::forward<NumberT>(value)); return *this;}
84
86
89 inline const Aws::String& GetDesignator() const { return m_designator; }
90 inline bool DesignatorHasBeenSet() const { return m_designatorHasBeenSet; }
91 template<typename DesignatorT = Aws::String>
92 void SetDesignator(DesignatorT&& value) { m_designatorHasBeenSet = true; m_designator = std::forward<DesignatorT>(value); }
93 template<typename DesignatorT = Aws::String>
94 ParsedQuerySecondaryAddressComponent& WithDesignator(DesignatorT&& value) { SetDesignator(std::forward<DesignatorT>(value)); return *this;}
96 private:
97
98 int m_startIndex{0};
99 bool m_startIndexHasBeenSet = false;
100
101 int m_endIndex{0};
102 bool m_endIndexHasBeenSet = false;
103
104 Aws::String m_value;
105 bool m_valueHasBeenSet = false;
106
107 Aws::String m_number;
108 bool m_numberHasBeenSet = false;
109
110 Aws::String m_designator;
111 bool m_designatorHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace GeoPlaces
116} // namespace Aws
ParsedQuerySecondaryAddressComponent & WithDesignator(DesignatorT &&value)
AWS_GEOPLACES_API ParsedQuerySecondaryAddressComponent(Aws::Utils::Json::JsonView jsonValue)
ParsedQuerySecondaryAddressComponent & WithNumber(NumberT &&value)
AWS_GEOPLACES_API ParsedQuerySecondaryAddressComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
ParsedQuerySecondaryAddressComponent & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue