AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
RouteWeightConstraint.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteWeightConstraintType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoRoutes {
20namespace Model {
21
29 public:
30 AWS_GEOROUTES_API RouteWeightConstraint() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline RouteWeightConstraintType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline long long GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 inline void SetValue(long long value) {
58 m_valueHasBeenSet = true;
59 m_value = value;
60 }
61 inline RouteWeightConstraint& WithValue(long long value) {
62 SetValue(value);
63 return *this;
64 }
66 private:
68
69 long long m_value{0};
70 bool m_typeHasBeenSet = false;
71 bool m_valueHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace GeoRoutes
76} // namespace Aws
AWS_GEOROUTES_API RouteWeightConstraint(Aws::Utils::Json::JsonView jsonValue)
RouteWeightConstraint & WithType(RouteWeightConstraintType value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteWeightConstraint & WithValue(long long value)
AWS_GEOROUTES_API RouteWeightConstraint()=default
AWS_GEOROUTES_API RouteWeightConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(RouteWeightConstraintType value)
Aws::Utils::Json::JsonValue JsonValue