AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountry(const SetDimension& value) { m_countryHasBeenSet = true; m_country = value; }
50 inline void SetCountry(SetDimension&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
51 inline SegmentLocation& WithCountry(const SetDimension& value) { SetCountry(value); return *this;}
52 inline SegmentLocation& WithCountry(SetDimension&& value) { SetCountry(std::move(value)); return *this;}
54
56
59 inline const GPSPointDimension& GetGPSPoint() const{ return m_gPSPoint; }
60 inline bool GPSPointHasBeenSet() const { return m_gPSPointHasBeenSet; }
61 inline void SetGPSPoint(const GPSPointDimension& value) { m_gPSPointHasBeenSet = true; m_gPSPoint = value; }
62 inline void SetGPSPoint(GPSPointDimension&& value) { m_gPSPointHasBeenSet = true; m_gPSPoint = std::move(value); }
63 inline SegmentLocation& WithGPSPoint(const GPSPointDimension& value) { SetGPSPoint(value); return *this;}
64 inline SegmentLocation& WithGPSPoint(GPSPointDimension&& value) { SetGPSPoint(std::move(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 & WithGPSPoint(const GPSPointDimension &value)
SegmentLocation & WithGPSPoint(GPSPointDimension &&value)
SegmentLocation & WithCountry(SetDimension &&value)
SegmentLocation & WithCountry(const SetDimension &value)
AWS_PINPOINT_API SegmentLocation(Aws::Utils::Json::JsonView jsonValue)
void SetGPSPoint(const GPSPointDimension &value)
void SetGPSPoint(GPSPointDimension &&value)
AWS_PINPOINT_API SegmentLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
const GPSPointDimension & GetGPSPoint() const
void SetCountry(SetDimension &&value)
void SetCountry(const SetDimension &value)
const SetDimension & GetCountry() const
Aws::Utils::Json::JsonValue JsonValue