AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
WaypointOptimizationFailedConstraint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/WaypointOptimizationConstraint.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
29 public:
30 AWS_GEOROUTES_API WaypointOptimizationFailedConstraint() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline WaypointOptimizationConstraint GetConstraint() const { return m_constraint; }
40 inline bool ConstraintHasBeenSet() const { return m_constraintHasBeenSet; }
42 m_constraintHasBeenSet = true;
43 m_constraint = value;
44 }
46 SetConstraint(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetReason() const { return m_reason; }
56 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
57 template <typename ReasonT = Aws::String>
58 void SetReason(ReasonT&& value) {
59 m_reasonHasBeenSet = true;
60 m_reason = std::forward<ReasonT>(value);
61 }
62 template <typename ReasonT = Aws::String>
64 SetReason(std::forward<ReasonT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_reason;
72 bool m_constraintHasBeenSet = false;
73 bool m_reasonHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace GeoRoutes
78} // namespace Aws
AWS_GEOROUTES_API WaypointOptimizationFailedConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationFailedConstraint & WithReason(ReasonT &&value)
WaypointOptimizationFailedConstraint & WithConstraint(WaypointOptimizationConstraint value)
AWS_GEOROUTES_API WaypointOptimizationFailedConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue