AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WaypointOptimizationFailedConstraint.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/WaypointOptimizationConstraint.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
33 {
34 public:
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const WaypointOptimizationConstraint& GetConstraint() const{ return m_constraint; }
46 inline bool ConstraintHasBeenSet() const { return m_constraintHasBeenSet; }
47 inline void SetConstraint(const WaypointOptimizationConstraint& value) { m_constraintHasBeenSet = true; m_constraint = value; }
48 inline void SetConstraint(WaypointOptimizationConstraint&& value) { m_constraintHasBeenSet = true; m_constraint = std::move(value); }
52
54
57 inline const Aws::String& GetReason() const{ return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
59 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
60 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
61 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
62 inline WaypointOptimizationFailedConstraint& WithReason(const Aws::String& value) { SetReason(value); return *this;}
63 inline WaypointOptimizationFailedConstraint& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
64 inline WaypointOptimizationFailedConstraint& WithReason(const char* value) { SetReason(value); return *this;}
66 private:
67
69 bool m_constraintHasBeenSet = false;
70
71 Aws::String m_reason;
72 bool m_reasonHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GeoRoutes
77} // namespace Aws
AWS_GEOROUTES_API WaypointOptimizationFailedConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationFailedConstraint & WithReason(const char *value)
WaypointOptimizationFailedConstraint & WithConstraint(WaypointOptimizationConstraint &&value)
WaypointOptimizationFailedConstraint & WithConstraint(const WaypointOptimizationConstraint &value)
WaypointOptimizationFailedConstraint & WithReason(const Aws::String &value)
WaypointOptimizationFailedConstraint & WithReason(Aws::String &&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