AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SegmentLocation.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/SetDimension.h>
9#include <aws/pinpoint/model/GPSPointDimension.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PINPOINT_API SegmentLocation() = default;
37 AWS_PINPOINT_API SegmentLocation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const SetDimension& GetCountry() const { return m_country; }
48 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
49 template<typename CountryT = SetDimension>
50 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
51 template<typename CountryT = SetDimension>
52 SegmentLocation& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
54
56
59 inline const GPSPointDimension& GetGPSPoint() const { return m_gPSPoint; }
60 inline bool GPSPointHasBeenSet() const { return m_gPSPointHasBeenSet; }
61 template<typename GPSPointT = GPSPointDimension>
62 void SetGPSPoint(GPSPointT&& value) { m_gPSPointHasBeenSet = true; m_gPSPoint = std::forward<GPSPointT>(value); }
63 template<typename GPSPointT = GPSPointDimension>
64 SegmentLocation& WithGPSPoint(GPSPointT&& value) { SetGPSPoint(std::forward<GPSPointT>(value)); return *this;}
66 private:
67
68 SetDimension m_country;
69 bool m_countryHasBeenSet = false;
70
71 GPSPointDimension m_gPSPoint;
72 bool m_gPSPointHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Pinpoint
77} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
SegmentLocation & WithCountry(CountryT &&value)
AWS_PINPOINT_API SegmentLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API SegmentLocation()=default
AWS_PINPOINT_API SegmentLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
SegmentLocation & WithGPSPoint(GPSPointT &&value)
const GPSPointDimension & GetGPSPoint() const
const SetDimension & GetCountry() const
Aws::Utils::Json::JsonValue JsonValue