AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GEOROUTES_API RouteTollPass() = default;
36 AWS_GEOROUTES_API RouteTollPass(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOROUTES_API RouteTollPass& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetIncludesReturnTrip() const { return m_includesReturnTrip; }
46 inline bool IncludesReturnTripHasBeenSet() const { return m_includesReturnTripHasBeenSet; }
47 inline void SetIncludesReturnTrip(bool value) { m_includesReturnTripHasBeenSet = true; m_includesReturnTrip = value; }
48 inline RouteTollPass& WithIncludesReturnTrip(bool value) { SetIncludesReturnTrip(value); return *this;}
50
52
55 inline bool GetSeniorPass() const { return m_seniorPass; }
56 inline bool SeniorPassHasBeenSet() const { return m_seniorPassHasBeenSet; }
57 inline void SetSeniorPass(bool value) { m_seniorPassHasBeenSet = true; m_seniorPass = value; }
58 inline RouteTollPass& WithSeniorPass(bool value) { SetSeniorPass(value); return *this;}
60
62
65 inline int GetTransferCount() const { return m_transferCount; }
66 inline bool TransferCountHasBeenSet() const { return m_transferCountHasBeenSet; }
67 inline void SetTransferCount(int value) { m_transferCountHasBeenSet = true; m_transferCount = value; }
68 inline RouteTollPass& WithTransferCount(int value) { SetTransferCount(value); return *this;}
70
72
75 inline int GetTripCount() const { return m_tripCount; }
76 inline bool TripCountHasBeenSet() const { return m_tripCountHasBeenSet; }
77 inline void SetTripCount(int value) { m_tripCountHasBeenSet = true; m_tripCount = value; }
78 inline RouteTollPass& WithTripCount(int value) { SetTripCount(value); return *this;}
80
82
85 inline const RouteTollPassValidityPeriod& GetValidityPeriod() const { return m_validityPeriod; }
86 inline bool ValidityPeriodHasBeenSet() const { return m_validityPeriodHasBeenSet; }
87 template<typename ValidityPeriodT = RouteTollPassValidityPeriod>
88 void SetValidityPeriod(ValidityPeriodT&& value) { m_validityPeriodHasBeenSet = true; m_validityPeriod = std::forward<ValidityPeriodT>(value); }
89 template<typename ValidityPeriodT = RouteTollPassValidityPeriod>
90 RouteTollPass& WithValidityPeriod(ValidityPeriodT&& value) { SetValidityPeriod(std::forward<ValidityPeriodT>(value)); return *this;}
92 private:
93
94 bool m_includesReturnTrip{false};
95 bool m_includesReturnTripHasBeenSet = false;
96
97 bool m_seniorPass{false};
98 bool m_seniorPassHasBeenSet = false;
99
100 int m_transferCount{0};
101 bool m_transferCountHasBeenSet = false;
102
103 int m_tripCount{0};
104 bool m_tripCountHasBeenSet = false;
105
106 RouteTollPassValidityPeriod m_validityPeriod;
107 bool m_validityPeriodHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace GeoRoutes
112} // 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