AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePrefetchScheduleRequest.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/mediatailor/MediaTailorRequest.h>
9#include <aws/mediatailor/model/PrefetchConsumption.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediatailor/model/PrefetchRetrieval.h>
12#include <aws/mediatailor/model/RecurringPrefetchConfiguration.h>
13#include <aws/mediatailor/model/PrefetchScheduleType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MediaTailor
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MEDIATAILOR_API CreatePrefetchScheduleRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreatePrefetchSchedule"; }
35
36 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
37
38
40
47 inline const PrefetchConsumption& GetConsumption() const { return m_consumption; }
48 inline bool ConsumptionHasBeenSet() const { return m_consumptionHasBeenSet; }
49 template<typename ConsumptionT = PrefetchConsumption>
50 void SetConsumption(ConsumptionT&& value) { m_consumptionHasBeenSet = true; m_consumption = std::forward<ConsumptionT>(value); }
51 template<typename ConsumptionT = PrefetchConsumption>
52 CreatePrefetchScheduleRequest& WithConsumption(ConsumptionT&& value) { SetConsumption(std::forward<ConsumptionT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreatePrefetchScheduleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetPlaybackConfigurationName() const { return m_playbackConfigurationName; }
72 inline bool PlaybackConfigurationNameHasBeenSet() const { return m_playbackConfigurationNameHasBeenSet; }
73 template<typename PlaybackConfigurationNameT = Aws::String>
74 void SetPlaybackConfigurationName(PlaybackConfigurationNameT&& value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName = std::forward<PlaybackConfigurationNameT>(value); }
75 template<typename PlaybackConfigurationNameT = Aws::String>
76 CreatePrefetchScheduleRequest& WithPlaybackConfigurationName(PlaybackConfigurationNameT&& value) { SetPlaybackConfigurationName(std::forward<PlaybackConfigurationNameT>(value)); return *this;}
78
80
85 inline const PrefetchRetrieval& GetRetrieval() const { return m_retrieval; }
86 inline bool RetrievalHasBeenSet() const { return m_retrievalHasBeenSet; }
87 template<typename RetrievalT = PrefetchRetrieval>
88 void SetRetrieval(RetrievalT&& value) { m_retrievalHasBeenSet = true; m_retrieval = std::forward<RetrievalT>(value); }
89 template<typename RetrievalT = PrefetchRetrieval>
90 CreatePrefetchScheduleRequest& WithRetrieval(RetrievalT&& value) { SetRetrieval(std::forward<RetrievalT>(value)); return *this;}
92
94
98 inline const RecurringPrefetchConfiguration& GetRecurringPrefetchConfiguration() const { return m_recurringPrefetchConfiguration; }
99 inline bool RecurringPrefetchConfigurationHasBeenSet() const { return m_recurringPrefetchConfigurationHasBeenSet; }
100 template<typename RecurringPrefetchConfigurationT = RecurringPrefetchConfiguration>
101 void SetRecurringPrefetchConfiguration(RecurringPrefetchConfigurationT&& value) { m_recurringPrefetchConfigurationHasBeenSet = true; m_recurringPrefetchConfiguration = std::forward<RecurringPrefetchConfigurationT>(value); }
102 template<typename RecurringPrefetchConfigurationT = RecurringPrefetchConfiguration>
103 CreatePrefetchScheduleRequest& WithRecurringPrefetchConfiguration(RecurringPrefetchConfigurationT&& value) { SetRecurringPrefetchConfiguration(std::forward<RecurringPrefetchConfigurationT>(value)); return *this;}
105
107
116 inline PrefetchScheduleType GetScheduleType() const { return m_scheduleType; }
117 inline bool ScheduleTypeHasBeenSet() const { return m_scheduleTypeHasBeenSet; }
118 inline void SetScheduleType(PrefetchScheduleType value) { m_scheduleTypeHasBeenSet = true; m_scheduleType = value; }
121
123
131 inline const Aws::String& GetStreamId() const { return m_streamId; }
132 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
133 template<typename StreamIdT = Aws::String>
134 void SetStreamId(StreamIdT&& value) { m_streamIdHasBeenSet = true; m_streamId = std::forward<StreamIdT>(value); }
135 template<typename StreamIdT = Aws::String>
136 CreatePrefetchScheduleRequest& WithStreamId(StreamIdT&& value) { SetStreamId(std::forward<StreamIdT>(value)); return *this;}
138 private:
139
140 PrefetchConsumption m_consumption;
141 bool m_consumptionHasBeenSet = false;
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 Aws::String m_playbackConfigurationName;
147 bool m_playbackConfigurationNameHasBeenSet = false;
148
149 PrefetchRetrieval m_retrieval;
150 bool m_retrievalHasBeenSet = false;
151
152 RecurringPrefetchConfiguration m_recurringPrefetchConfiguration;
153 bool m_recurringPrefetchConfigurationHasBeenSet = false;
154
156 bool m_scheduleTypeHasBeenSet = false;
157
158 Aws::String m_streamId;
159 bool m_streamIdHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace MediaTailor
164} // namespace Aws
void SetRecurringPrefetchConfiguration(RecurringPrefetchConfigurationT &&value)
const RecurringPrefetchConfiguration & GetRecurringPrefetchConfiguration() const
void SetPlaybackConfigurationName(PlaybackConfigurationNameT &&value)
CreatePrefetchScheduleRequest & WithRecurringPrefetchConfiguration(RecurringPrefetchConfigurationT &&value)
AWS_MEDIATAILOR_API CreatePrefetchScheduleRequest()=default
CreatePrefetchScheduleRequest & WithPlaybackConfigurationName(PlaybackConfigurationNameT &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
CreatePrefetchScheduleRequest & WithConsumption(ConsumptionT &&value)
CreatePrefetchScheduleRequest & WithName(NameT &&value)
CreatePrefetchScheduleRequest & WithStreamId(StreamIdT &&value)
CreatePrefetchScheduleRequest & WithRetrieval(RetrievalT &&value)
CreatePrefetchScheduleRequest & WithScheduleType(PrefetchScheduleType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String