AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Circle.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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 LocationService
22{
23namespace Model
24{
25
32 class Circle
33 {
34 public:
35 AWS_LOCATIONSERVICE_API Circle() = default;
36 AWS_LOCATIONSERVICE_API Circle(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOCATIONSERVICE_API Circle& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::Vector<double>& GetCenter() const { return m_center; }
48 inline bool CenterHasBeenSet() const { return m_centerHasBeenSet; }
49 template<typename CenterT = Aws::Vector<double>>
50 void SetCenter(CenterT&& value) { m_centerHasBeenSet = true; m_center = std::forward<CenterT>(value); }
51 template<typename CenterT = Aws::Vector<double>>
52 Circle& WithCenter(CenterT&& value) { SetCenter(std::forward<CenterT>(value)); return *this;}
53 inline Circle& AddCenter(double value) { m_centerHasBeenSet = true; m_center.push_back(value); return *this; }
55
57
61 inline double GetRadius() const { return m_radius; }
62 inline bool RadiusHasBeenSet() const { return m_radiusHasBeenSet; }
63 inline void SetRadius(double value) { m_radiusHasBeenSet = true; m_radius = value; }
64 inline Circle& WithRadius(double value) { SetRadius(value); return *this;}
66 private:
67
68 Aws::Vector<double> m_center;
69 bool m_centerHasBeenSet = false;
70
71 double m_radius{0.0};
72 bool m_radiusHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace LocationService
77} // namespace Aws
const Aws::Vector< double > & GetCenter() const
Definition Circle.h:47
Circle & AddCenter(double value)
Definition Circle.h:53
AWS_LOCATIONSERVICE_API Circle()=default
Circle & WithRadius(double value)
Definition Circle.h:64
AWS_LOCATIONSERVICE_API Circle(Aws::Utils::Json::JsonView jsonValue)
Circle & WithCenter(CenterT &&value)
Definition Circle.h:52
void SetCenter(CenterT &&value)
Definition Circle.h:50
AWS_LOCATIONSERVICE_API Circle & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRadius(double value)
Definition Circle.h:63
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue