AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SegmentLocation.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/GPSPointDimension.h>
9#include <aws/pinpoint/model/SetDimension.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
30 public:
31 AWS_PINPOINT_API SegmentLocation() = default;
32 AWS_PINPOINT_API SegmentLocation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const SetDimension& GetCountry() const { return m_country; }
42 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
43 template <typename CountryT = SetDimension>
44 void SetCountry(CountryT&& value) {
45 m_countryHasBeenSet = true;
46 m_country = std::forward<CountryT>(value);
47 }
48 template <typename CountryT = SetDimension>
49 SegmentLocation& WithCountry(CountryT&& value) {
50 SetCountry(std::forward<CountryT>(value));
51 return *this;
52 }
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) {
63 m_gPSPointHasBeenSet = true;
64 m_gPSPoint = std::forward<GPSPointT>(value);
65 }
66 template <typename GPSPointT = GPSPointDimension>
67 SegmentLocation& WithGPSPoint(GPSPointT&& value) {
68 SetGPSPoint(std::forward<GPSPointT>(value));
69 return *this;
70 }
72 private:
73 SetDimension m_country;
74
75 GPSPointDimension m_gPSPoint;
76 bool m_countryHasBeenSet = false;
77 bool m_gPSPointHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Pinpoint
82} // 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