AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PrefetchSchedule.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediatailor/model/PrefetchConsumption.h>
10#include <aws/mediatailor/model/PrefetchRetrieval.h>
11#include <aws/mediatailor/model/PrefetchScheduleType.h>
12#include <aws/mediatailor/model/RecurringPrefetchConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaTailor
26{
27namespace Model
28{
29
41 {
42 public:
43 AWS_MEDIATAILOR_API PrefetchSchedule() = default;
44 AWS_MEDIATAILOR_API PrefetchSchedule(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MEDIATAILOR_API PrefetchSchedule& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 PrefetchSchedule& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
60
62
69 inline const PrefetchConsumption& GetConsumption() const { return m_consumption; }
70 inline bool ConsumptionHasBeenSet() const { return m_consumptionHasBeenSet; }
71 template<typename ConsumptionT = PrefetchConsumption>
72 void SetConsumption(ConsumptionT&& value) { m_consumptionHasBeenSet = true; m_consumption = std::forward<ConsumptionT>(value); }
73 template<typename ConsumptionT = PrefetchConsumption>
74 PrefetchSchedule& WithConsumption(ConsumptionT&& value) { SetConsumption(std::forward<ConsumptionT>(value)); return *this;}
76
78
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template<typename NameT = Aws::String>
85 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
86 template<typename NameT = Aws::String>
87 PrefetchSchedule& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
89
91
95 inline const Aws::String& GetPlaybackConfigurationName() const { return m_playbackConfigurationName; }
96 inline bool PlaybackConfigurationNameHasBeenSet() const { return m_playbackConfigurationNameHasBeenSet; }
97 template<typename PlaybackConfigurationNameT = Aws::String>
98 void SetPlaybackConfigurationName(PlaybackConfigurationNameT&& value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName = std::forward<PlaybackConfigurationNameT>(value); }
99 template<typename PlaybackConfigurationNameT = Aws::String>
100 PrefetchSchedule& WithPlaybackConfigurationName(PlaybackConfigurationNameT&& value) { SetPlaybackConfigurationName(std::forward<PlaybackConfigurationNameT>(value)); return *this;}
102
104
108 inline const PrefetchRetrieval& GetRetrieval() const { return m_retrieval; }
109 inline bool RetrievalHasBeenSet() const { return m_retrievalHasBeenSet; }
110 template<typename RetrievalT = PrefetchRetrieval>
111 void SetRetrieval(RetrievalT&& value) { m_retrievalHasBeenSet = true; m_retrieval = std::forward<RetrievalT>(value); }
112 template<typename RetrievalT = PrefetchRetrieval>
113 PrefetchSchedule& WithRetrieval(RetrievalT&& value) { SetRetrieval(std::forward<RetrievalT>(value)); return *this;}
115
117
126 inline PrefetchScheduleType GetScheduleType() const { return m_scheduleType; }
127 inline bool ScheduleTypeHasBeenSet() const { return m_scheduleTypeHasBeenSet; }
128 inline void SetScheduleType(PrefetchScheduleType value) { m_scheduleTypeHasBeenSet = true; m_scheduleType = value; }
131
133
137 inline const RecurringPrefetchConfiguration& GetRecurringPrefetchConfiguration() const { return m_recurringPrefetchConfiguration; }
138 inline bool RecurringPrefetchConfigurationHasBeenSet() const { return m_recurringPrefetchConfigurationHasBeenSet; }
139 template<typename RecurringPrefetchConfigurationT = RecurringPrefetchConfiguration>
140 void SetRecurringPrefetchConfiguration(RecurringPrefetchConfigurationT&& value) { m_recurringPrefetchConfigurationHasBeenSet = true; m_recurringPrefetchConfiguration = std::forward<RecurringPrefetchConfigurationT>(value); }
141 template<typename RecurringPrefetchConfigurationT = RecurringPrefetchConfiguration>
142 PrefetchSchedule& WithRecurringPrefetchConfiguration(RecurringPrefetchConfigurationT&& value) { SetRecurringPrefetchConfiguration(std::forward<RecurringPrefetchConfigurationT>(value)); return *this;}
144
146
150 inline const Aws::String& GetStreamId() const { return m_streamId; }
151 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
152 template<typename StreamIdT = Aws::String>
153 void SetStreamId(StreamIdT&& value) { m_streamIdHasBeenSet = true; m_streamId = std::forward<StreamIdT>(value); }
154 template<typename StreamIdT = Aws::String>
155 PrefetchSchedule& WithStreamId(StreamIdT&& value) { SetStreamId(std::forward<StreamIdT>(value)); return *this;}
157 private:
158
159 Aws::String m_arn;
160 bool m_arnHasBeenSet = false;
161
162 PrefetchConsumption m_consumption;
163 bool m_consumptionHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_playbackConfigurationName;
169 bool m_playbackConfigurationNameHasBeenSet = false;
170
171 PrefetchRetrieval m_retrieval;
172 bool m_retrievalHasBeenSet = false;
173
175 bool m_scheduleTypeHasBeenSet = false;
176
177 RecurringPrefetchConfiguration m_recurringPrefetchConfiguration;
178 bool m_recurringPrefetchConfigurationHasBeenSet = false;
179
180 Aws::String m_streamId;
181 bool m_streamIdHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace MediaTailor
186} // namespace Aws
PrefetchScheduleType GetScheduleType() const
PrefetchSchedule & WithConsumption(ConsumptionT &&value)
PrefetchSchedule & WithName(NameT &&value)
PrefetchSchedule & WithArn(ArnT &&value)
AWS_MEDIATAILOR_API PrefetchSchedule(Aws::Utils::Json::JsonView jsonValue)
void SetScheduleType(PrefetchScheduleType value)
PrefetchSchedule & WithScheduleType(PrefetchScheduleType value)
PrefetchSchedule & WithRecurringPrefetchConfiguration(RecurringPrefetchConfigurationT &&value)
void SetConsumption(ConsumptionT &&value)
void SetRecurringPrefetchConfiguration(RecurringPrefetchConfigurationT &&value)
AWS_MEDIATAILOR_API PrefetchSchedule()=default
PrefetchSchedule & WithRetrieval(RetrievalT &&value)
const RecurringPrefetchConfiguration & GetRecurringPrefetchConfiguration() const
const PrefetchRetrieval & GetRetrieval() const
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIATAILOR_API PrefetchSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
PrefetchSchedule & WithPlaybackConfigurationName(PlaybackConfigurationNameT &&value)
const PrefetchConsumption & GetConsumption() const
PrefetchSchedule & WithStreamId(StreamIdT &&value)
const Aws::String & GetPlaybackConfigurationName() const
void SetPlaybackConfigurationName(PlaybackConfigurationNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue