AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Circle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/location/LocationService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LocationService {
20namespace Model {
21
28class Circle {
29 public:
30 AWS_LOCATIONSERVICE_API Circle() = default;
31 AWS_LOCATIONSERVICE_API Circle(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LOCATIONSERVICE_API Circle& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::Vector<double>& GetCenter() const { return m_center; }
42 inline bool CenterHasBeenSet() const { return m_centerHasBeenSet; }
43 template <typename CenterT = Aws::Vector<double>>
44 void SetCenter(CenterT&& value) {
45 m_centerHasBeenSet = true;
46 m_center = std::forward<CenterT>(value);
47 }
48 template <typename CenterT = Aws::Vector<double>>
49 Circle& WithCenter(CenterT&& value) {
50 SetCenter(std::forward<CenterT>(value));
51 return *this;
52 }
53 inline Circle& AddCenter(double value) {
54 m_centerHasBeenSet = true;
55 m_center.push_back(value);
56 return *this;
57 }
59
61
65 inline double GetRadius() const { return m_radius; }
66 inline bool RadiusHasBeenSet() const { return m_radiusHasBeenSet; }
67 inline void SetRadius(double value) {
68 m_radiusHasBeenSet = true;
69 m_radius = value;
70 }
71 inline Circle& WithRadius(double value) {
72 SetRadius(value);
73 return *this;
74 }
76 private:
77 Aws::Vector<double> m_center;
78
79 double m_radius{0.0};
80 bool m_centerHasBeenSet = false;
81 bool m_radiusHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace LocationService
86} // namespace Aws
const Aws::Vector< double > & GetCenter() const
Definition Circle.h:41
Circle & AddCenter(double value)
Definition Circle.h:53
AWS_LOCATIONSERVICE_API Circle()=default
Circle & WithRadius(double value)
Definition Circle.h:71
AWS_LOCATIONSERVICE_API Circle(Aws::Utils::Json::JsonView jsonValue)
Circle & WithCenter(CenterT &&value)
Definition Circle.h:49
void SetCenter(CenterT &&value)
Definition Circle.h:44
AWS_LOCATIONSERVICE_API Circle & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRadius(double value)
Definition Circle.h:67
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue