AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
MatchScoreDetails.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/geo-places/model/ComponentMatchScores.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
32 {
33 public:
34 AWS_GEOPLACES_API MatchScoreDetails() = default;
35 AWS_GEOPLACES_API MatchScoreDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline double GetOverall() const { return m_overall; }
46 inline bool OverallHasBeenSet() const { return m_overallHasBeenSet; }
47 inline void SetOverall(double value) { m_overallHasBeenSet = true; m_overall = value; }
48 inline MatchScoreDetails& WithOverall(double value) { SetOverall(value); return *this;}
50
52
56 inline const ComponentMatchScores& GetComponents() const { return m_components; }
57 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
58 template<typename ComponentsT = ComponentMatchScores>
59 void SetComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components = std::forward<ComponentsT>(value); }
60 template<typename ComponentsT = ComponentMatchScores>
61 MatchScoreDetails& WithComponents(ComponentsT&& value) { SetComponents(std::forward<ComponentsT>(value)); return *this;}
63 private:
64
65 double m_overall{0.0};
66 bool m_overallHasBeenSet = false;
67
68 ComponentMatchScores m_components;
69 bool m_componentsHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace GeoPlaces
74} // namespace Aws
AWS_GEOPLACES_API MatchScoreDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API MatchScoreDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
MatchScoreDetails & WithComponents(ComponentsT &&value)
const ComponentMatchScores & GetComponents() const
MatchScoreDetails & WithOverall(double value)
AWS_GEOPLACES_API MatchScoreDetails()=default
Aws::Utils::Json::JsonValue JsonValue