AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GeocodePreference.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/GeocodePreferenceValue.h>
9#include <aws/quicksight/model/GeocoderHierarchy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
29 public:
30 AWS_QUICKSIGHT_API GeocodePreference() = default;
31 AWS_QUICKSIGHT_API GeocodePreference(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const GeocoderHierarchy& GetRequestKey() const { return m_requestKey; }
40 inline bool RequestKeyHasBeenSet() const { return m_requestKeyHasBeenSet; }
41 template <typename RequestKeyT = GeocoderHierarchy>
42 void SetRequestKey(RequestKeyT&& value) {
43 m_requestKeyHasBeenSet = true;
44 m_requestKey = std::forward<RequestKeyT>(value);
45 }
46 template <typename RequestKeyT = GeocoderHierarchy>
47 GeocodePreference& WithRequestKey(RequestKeyT&& value) {
48 SetRequestKey(std::forward<RequestKeyT>(value));
49 return *this;
50 }
52
54
57 inline const GeocodePreferenceValue& GetPreference() const { return m_preference; }
58 inline bool PreferenceHasBeenSet() const { return m_preferenceHasBeenSet; }
59 template <typename PreferenceT = GeocodePreferenceValue>
60 void SetPreference(PreferenceT&& value) {
61 m_preferenceHasBeenSet = true;
62 m_preference = std::forward<PreferenceT>(value);
63 }
64 template <typename PreferenceT = GeocodePreferenceValue>
65 GeocodePreference& WithPreference(PreferenceT&& value) {
66 SetPreference(std::forward<PreferenceT>(value));
67 return *this;
68 }
70 private:
71 GeocoderHierarchy m_requestKey;
72
73 GeocodePreferenceValue m_preference;
74 bool m_requestKeyHasBeenSet = false;
75 bool m_preferenceHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace QuickSight
80} // namespace Aws
GeocodePreference & WithRequestKey(RequestKeyT &&value)
AWS_QUICKSIGHT_API GeocodePreference()=default
AWS_QUICKSIGHT_API GeocodePreference & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const GeocodePreferenceValue & GetPreference() const
const GeocoderHierarchy & GetRequestKey() const
AWS_QUICKSIGHT_API GeocodePreference(Aws::Utils::Json::JsonView jsonValue)
GeocodePreference & WithPreference(PreferenceT &&value)
Aws::Utils::Json::JsonValue JsonValue