AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteDriverOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/model/RouteDriverScheduleInterval.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:
35 AWS_GEOROUTES_API RouteDriverOptions();
36 AWS_GEOROUTES_API RouteDriverOptions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<RouteDriverScheduleInterval>& GetSchedule() const{ return m_schedule; }
47 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
48 inline void SetSchedule(const Aws::Vector<RouteDriverScheduleInterval>& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
49 inline void SetSchedule(Aws::Vector<RouteDriverScheduleInterval>&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
51 inline RouteDriverOptions& WithSchedule(Aws::Vector<RouteDriverScheduleInterval>&& value) { SetSchedule(std::move(value)); return *this;}
52 inline RouteDriverOptions& AddSchedule(const RouteDriverScheduleInterval& value) { m_scheduleHasBeenSet = true; m_schedule.push_back(value); return *this; }
53 inline RouteDriverOptions& AddSchedule(RouteDriverScheduleInterval&& value) { m_scheduleHasBeenSet = true; m_schedule.push_back(std::move(value)); return *this; }
55 private:
56
58 bool m_scheduleHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace GeoRoutes
63} // namespace Aws
RouteDriverOptions & AddSchedule(RouteDriverScheduleInterval &&value)
RouteDriverOptions & AddSchedule(const RouteDriverScheduleInterval &value)
void SetSchedule(const Aws::Vector< RouteDriverScheduleInterval > &value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSchedule(Aws::Vector< RouteDriverScheduleInterval > &&value)
const Aws::Vector< RouteDriverScheduleInterval > & GetSchedule() const
RouteDriverOptions & WithSchedule(Aws::Vector< RouteDriverScheduleInterval > &&value)
AWS_GEOROUTES_API RouteDriverOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteDriverOptions & WithSchedule(const Aws::Vector< RouteDriverScheduleInterval > &value)
AWS_GEOROUTES_API RouteDriverOptions(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue