AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecurringPrefetchConfiguration.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/mediatailor/model/RecurringConsumption.h>
10#include <aws/mediatailor/model/RecurringRetrieval.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaTailor
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MEDIATAILOR_API RecurringPrefetchConfiguration() = default;
40 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
49 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
50 template<typename StartTimeT = Aws::Utils::DateTime>
51 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
52 template<typename StartTimeT = Aws::Utils::DateTime>
53 RecurringPrefetchConfiguration& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
62 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
63 template<typename EndTimeT = Aws::Utils::DateTime>
64 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
65 template<typename EndTimeT = Aws::Utils::DateTime>
66 RecurringPrefetchConfiguration& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
68
70
74 inline const RecurringConsumption& GetRecurringConsumption() const { return m_recurringConsumption; }
75 inline bool RecurringConsumptionHasBeenSet() const { return m_recurringConsumptionHasBeenSet; }
76 template<typename RecurringConsumptionT = RecurringConsumption>
77 void SetRecurringConsumption(RecurringConsumptionT&& value) { m_recurringConsumptionHasBeenSet = true; m_recurringConsumption = std::forward<RecurringConsumptionT>(value); }
78 template<typename RecurringConsumptionT = RecurringConsumption>
79 RecurringPrefetchConfiguration& WithRecurringConsumption(RecurringConsumptionT&& value) { SetRecurringConsumption(std::forward<RecurringConsumptionT>(value)); return *this;}
81
83
86 inline const RecurringRetrieval& GetRecurringRetrieval() const { return m_recurringRetrieval; }
87 inline bool RecurringRetrievalHasBeenSet() const { return m_recurringRetrievalHasBeenSet; }
88 template<typename RecurringRetrievalT = RecurringRetrieval>
89 void SetRecurringRetrieval(RecurringRetrievalT&& value) { m_recurringRetrievalHasBeenSet = true; m_recurringRetrieval = std::forward<RecurringRetrievalT>(value); }
90 template<typename RecurringRetrievalT = RecurringRetrieval>
91 RecurringPrefetchConfiguration& WithRecurringRetrieval(RecurringRetrievalT&& value) { SetRecurringRetrieval(std::forward<RecurringRetrievalT>(value)); return *this;}
93 private:
94
95 Aws::Utils::DateTime m_startTime{};
96 bool m_startTimeHasBeenSet = false;
97
98 Aws::Utils::DateTime m_endTime{};
99 bool m_endTimeHasBeenSet = false;
100
101 RecurringConsumption m_recurringConsumption;
102 bool m_recurringConsumptionHasBeenSet = false;
103
104 RecurringRetrieval m_recurringRetrieval;
105 bool m_recurringRetrievalHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace MediaTailor
110} // namespace Aws
AWS_MEDIATAILOR_API RecurringPrefetchConfiguration()=default
RecurringPrefetchConfiguration & WithRecurringConsumption(RecurringConsumptionT &&value)
AWS_MEDIATAILOR_API RecurringPrefetchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
RecurringPrefetchConfiguration & WithEndTime(EndTimeT &&value)
RecurringPrefetchConfiguration & WithStartTime(StartTimeT &&value)
AWS_MEDIATAILOR_API RecurringPrefetchConfiguration(Aws::Utils::Json::JsonView jsonValue)
RecurringPrefetchConfiguration & WithRecurringRetrieval(RecurringRetrievalT &&value)
Aws::Utils::Json::JsonValue JsonValue