AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Circle.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_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 GeoRoutes
22{
23namespace Model
24{
25
34 class Circle
35 {
36 public:
37 AWS_GEOROUTES_API Circle();
38 AWS_GEOROUTES_API Circle(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOROUTES_API Circle& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<double>& GetCenter() const{ return m_center; }
50 inline bool CenterHasBeenSet() const { return m_centerHasBeenSet; }
51 inline void SetCenter(const Aws::Vector<double>& value) { m_centerHasBeenSet = true; m_center = value; }
52 inline void SetCenter(Aws::Vector<double>&& value) { m_centerHasBeenSet = true; m_center = std::move(value); }
53 inline Circle& WithCenter(const Aws::Vector<double>& value) { SetCenter(value); return *this;}
54 inline Circle& WithCenter(Aws::Vector<double>&& value) { SetCenter(std::move(value)); return *this;}
55 inline Circle& AddCenter(double value) { m_centerHasBeenSet = true; m_center.push_back(value); return *this; }
57
59
62 inline double GetRadius() const{ return m_radius; }
63 inline bool RadiusHasBeenSet() const { return m_radiusHasBeenSet; }
64 inline void SetRadius(double value) { m_radiusHasBeenSet = true; m_radius = value; }
65 inline Circle& WithRadius(double value) { SetRadius(value); return *this;}
67 private:
68
69 Aws::Vector<double> m_center;
70 bool m_centerHasBeenSet = false;
71
72 double m_radius;
73 bool m_radiusHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GeoRoutes
78} // namespace Aws
Circle & WithRadius(double value)
Definition Circle.h:65
Circle & AddCenter(double value)
Definition Circle.h:55
void SetCenter(Aws::Vector< double > &&value)
Definition Circle.h:52
AWS_GEOROUTES_API Circle(Aws::Utils::Json::JsonView jsonValue)
bool RadiusHasBeenSet() const
Definition Circle.h:63
Circle & WithCenter(const Aws::Vector< double > &value)
Definition Circle.h:53
bool CenterHasBeenSet() const
Definition Circle.h:50
double GetRadius() const
Definition Circle.h:62
void SetCenter(const Aws::Vector< double > &value)
Definition Circle.h:51
AWS_GEOROUTES_API Circle()
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRadius(double value)
Definition Circle.h:64
const Aws::Vector< double > & GetCenter() const
Definition Circle.h:49
AWS_GEOROUTES_API Circle & operator=(Aws::Utils::Json::JsonView jsonValue)
Circle & WithCenter(Aws::Vector< double > &&value)
Definition Circle.h:54
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue