AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
RouteTollPass.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteTollPassValidityPeriod.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 RouteTollPass() = default;
31 AWS_GEOROUTES_API RouteTollPass(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOROUTES_API RouteTollPass& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline bool GetIncludesReturnTrip() const { return m_includesReturnTrip; }
40 inline bool IncludesReturnTripHasBeenSet() const { return m_includesReturnTripHasBeenSet; }
41 inline void SetIncludesReturnTrip(bool value) {
42 m_includesReturnTripHasBeenSet = true;
43 m_includesReturnTrip = value;
44 }
47 return *this;
48 }
50
52
55 inline bool GetSeniorPass() const { return m_seniorPass; }
56 inline bool SeniorPassHasBeenSet() const { return m_seniorPassHasBeenSet; }
57 inline void SetSeniorPass(bool value) {
58 m_seniorPassHasBeenSet = true;
59 m_seniorPass = value;
60 }
61 inline RouteTollPass& WithSeniorPass(bool value) {
62 SetSeniorPass(value);
63 return *this;
64 }
66
68
71 inline int GetTransferCount() const { return m_transferCount; }
72 inline bool TransferCountHasBeenSet() const { return m_transferCountHasBeenSet; }
73 inline void SetTransferCount(int value) {
74 m_transferCountHasBeenSet = true;
75 m_transferCount = value;
76 }
77 inline RouteTollPass& WithTransferCount(int value) {
78 SetTransferCount(value);
79 return *this;
80 }
82
84
87 inline int GetTripCount() const { return m_tripCount; }
88 inline bool TripCountHasBeenSet() const { return m_tripCountHasBeenSet; }
89 inline void SetTripCount(int value) {
90 m_tripCountHasBeenSet = true;
91 m_tripCount = value;
92 }
93 inline RouteTollPass& WithTripCount(int value) {
94 SetTripCount(value);
95 return *this;
96 }
98
100
103 inline const RouteTollPassValidityPeriod& GetValidityPeriod() const { return m_validityPeriod; }
104 inline bool ValidityPeriodHasBeenSet() const { return m_validityPeriodHasBeenSet; }
105 template <typename ValidityPeriodT = RouteTollPassValidityPeriod>
106 void SetValidityPeriod(ValidityPeriodT&& value) {
107 m_validityPeriodHasBeenSet = true;
108 m_validityPeriod = std::forward<ValidityPeriodT>(value);
109 }
110 template <typename ValidityPeriodT = RouteTollPassValidityPeriod>
111 RouteTollPass& WithValidityPeriod(ValidityPeriodT&& value) {
112 SetValidityPeriod(std::forward<ValidityPeriodT>(value));
113 return *this;
114 }
116 private:
117 bool m_includesReturnTrip{false};
118
119 bool m_seniorPass{false};
120
121 int m_transferCount{0};
122
123 int m_tripCount{0};
124
125 RouteTollPassValidityPeriod m_validityPeriod;
126 bool m_includesReturnTripHasBeenSet = false;
127 bool m_seniorPassHasBeenSet = false;
128 bool m_transferCountHasBeenSet = false;
129 bool m_tripCountHasBeenSet = false;
130 bool m_validityPeriodHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace GeoRoutes
135} // namespace Aws
AWS_GEOROUTES_API RouteTollPass & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValidityPeriod(ValidityPeriodT &&value)
AWS_GEOROUTES_API RouteTollPass()=default
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const RouteTollPassValidityPeriod & GetValidityPeriod() const
AWS_GEOROUTES_API RouteTollPass(Aws::Utils::Json::JsonView jsonValue)
RouteTollPass & WithSeniorPass(bool value)
RouteTollPass & WithIncludesReturnTrip(bool value)
RouteTollPass & WithTripCount(int value)
RouteTollPass & WithTransferCount(int value)
RouteTollPass & WithValidityPeriod(ValidityPeriodT &&value)
Aws::Utils::Json::JsonValue JsonValue