AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteIntermodalTransitOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RouteIntermodalEnabledLegs.h>
10#include <aws/geo-routes/model/RouteTransitMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes {
22namespace Model {
23
31 public:
32 AWS_GEOROUTES_API RouteIntermodalTransitOptions() = default;
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<RouteTransitMode>& GetAllowedModes() const { return m_allowedModes; }
44 inline bool AllowedModesHasBeenSet() const { return m_allowedModesHasBeenSet; }
45 template <typename AllowedModesT = Aws::Vector<RouteTransitMode>>
46 void SetAllowedModes(AllowedModesT&& value) {
47 m_allowedModesHasBeenSet = true;
48 m_allowedModes = std::forward<AllowedModesT>(value);
49 }
50 template <typename AllowedModesT = Aws::Vector<RouteTransitMode>>
52 SetAllowedModes(std::forward<AllowedModesT>(value));
53 return *this;
54 }
56 m_allowedModesHasBeenSet = true;
57 m_allowedModes.push_back(value);
58 return *this;
59 }
61
63
72 inline const Aws::Vector<RouteIntermodalEnabledLegs>& GetEnabledFor() const { return m_enabledFor; }
73 inline bool EnabledForHasBeenSet() const { return m_enabledForHasBeenSet; }
74 template <typename EnabledForT = Aws::Vector<RouteIntermodalEnabledLegs>>
75 void SetEnabledFor(EnabledForT&& value) {
76 m_enabledForHasBeenSet = true;
77 m_enabledFor = std::forward<EnabledForT>(value);
78 }
79 template <typename EnabledForT = Aws::Vector<RouteIntermodalEnabledLegs>>
81 SetEnabledFor(std::forward<EnabledForT>(value));
82 return *this;
83 }
85 m_enabledForHasBeenSet = true;
86 m_enabledFor.push_back(value);
87 return *this;
88 }
90
92
97 inline const Aws::Vector<RouteTransitMode>& GetExcludedModes() const { return m_excludedModes; }
98 inline bool ExcludedModesHasBeenSet() const { return m_excludedModesHasBeenSet; }
99 template <typename ExcludedModesT = Aws::Vector<RouteTransitMode>>
100 void SetExcludedModes(ExcludedModesT&& value) {
101 m_excludedModesHasBeenSet = true;
102 m_excludedModes = std::forward<ExcludedModesT>(value);
103 }
104 template <typename ExcludedModesT = Aws::Vector<RouteTransitMode>>
106 SetExcludedModes(std::forward<ExcludedModesT>(value));
107 return *this;
108 }
110 m_excludedModesHasBeenSet = true;
111 m_excludedModes.push_back(value);
112 return *this;
113 }
115 private:
116 Aws::Vector<RouteTransitMode> m_allowedModes;
117
119
120 Aws::Vector<RouteTransitMode> m_excludedModes;
121 bool m_allowedModesHasBeenSet = false;
122 bool m_enabledForHasBeenSet = false;
123 bool m_excludedModesHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace GeoRoutes
128} // namespace Aws
RouteIntermodalTransitOptions & WithExcludedModes(ExcludedModesT &&value)
RouteIntermodalTransitOptions & AddAllowedModes(RouteTransitMode value)
AWS_GEOROUTES_API RouteIntermodalTransitOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteIntermodalTransitOptions()=default
RouteIntermodalTransitOptions & WithAllowedModes(AllowedModesT &&value)
const Aws::Vector< RouteTransitMode > & GetAllowedModes() const
const Aws::Vector< RouteIntermodalEnabledLegs > & GetEnabledFor() const
const Aws::Vector< RouteTransitMode > & GetExcludedModes() const
RouteIntermodalTransitOptions & WithEnabledFor(EnabledForT &&value)
RouteIntermodalTransitOptions & AddEnabledFor(RouteIntermodalEnabledLegs value)
RouteIntermodalTransitOptions & AddExcludedModes(RouteTransitMode value)
AWS_GEOROUTES_API RouteIntermodalTransitOptions(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue