AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
13
14namespace Aws
15{
16namespace MediaTailor
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MEDIATAILOR_API CreatePrefetchScheduleRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePrefetchSchedule"; }
33
34 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
35
36
38
45 inline const PrefetchConsumption& GetConsumption() const{ return m_consumption; }
46 inline bool ConsumptionHasBeenSet() const { return m_consumptionHasBeenSet; }
47 inline void SetConsumption(const PrefetchConsumption& value) { m_consumptionHasBeenSet = true; m_consumption = value; }
48 inline void SetConsumption(PrefetchConsumption&& value) { m_consumptionHasBeenSet = true; m_consumption = std::move(value); }
50 inline CreatePrefetchScheduleRequest& WithConsumption(PrefetchConsumption&& value) { SetConsumption(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline CreatePrefetchScheduleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline CreatePrefetchScheduleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline CreatePrefetchScheduleRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const Aws::String& GetPlaybackConfigurationName() const{ return m_playbackConfigurationName; }
72 inline bool PlaybackConfigurationNameHasBeenSet() const { return m_playbackConfigurationNameHasBeenSet; }
73 inline void SetPlaybackConfigurationName(const Aws::String& value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName = value; }
74 inline void SetPlaybackConfigurationName(Aws::String&& value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName = std::move(value); }
75 inline void SetPlaybackConfigurationName(const char* value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName.assign(value); }
80
82
87 inline const PrefetchRetrieval& GetRetrieval() const{ return m_retrieval; }
88 inline bool RetrievalHasBeenSet() const { return m_retrievalHasBeenSet; }
89 inline void SetRetrieval(const PrefetchRetrieval& value) { m_retrievalHasBeenSet = true; m_retrieval = value; }
90 inline void SetRetrieval(PrefetchRetrieval&& value) { m_retrievalHasBeenSet = true; m_retrieval = std::move(value); }
91 inline CreatePrefetchScheduleRequest& WithRetrieval(const PrefetchRetrieval& value) { SetRetrieval(value); return *this;}
92 inline CreatePrefetchScheduleRequest& WithRetrieval(PrefetchRetrieval&& value) { SetRetrieval(std::move(value)); return *this;}
94
96
104 inline const Aws::String& GetStreamId() const{ return m_streamId; }
105 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
106 inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; }
107 inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); }
108 inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); }
109 inline CreatePrefetchScheduleRequest& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;}
110 inline CreatePrefetchScheduleRequest& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;}
111 inline CreatePrefetchScheduleRequest& WithStreamId(const char* value) { SetStreamId(value); return *this;}
113 private:
114
115 PrefetchConsumption m_consumption;
116 bool m_consumptionHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_playbackConfigurationName;
122 bool m_playbackConfigurationNameHasBeenSet = false;
123
124 PrefetchRetrieval m_retrieval;
125 bool m_retrievalHasBeenSet = false;
126
127 Aws::String m_streamId;
128 bool m_streamIdHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace MediaTailor
133} // namespace Aws
CreatePrefetchScheduleRequest & WithPlaybackConfigurationName(Aws::String &&value)
CreatePrefetchScheduleRequest & WithPlaybackConfigurationName(const char *value)
CreatePrefetchScheduleRequest & WithConsumption(const PrefetchConsumption &value)
CreatePrefetchScheduleRequest & WithRetrieval(const PrefetchRetrieval &value)
CreatePrefetchScheduleRequest & WithStreamId(const Aws::String &value)
CreatePrefetchScheduleRequest & WithName(Aws::String &&value)
CreatePrefetchScheduleRequest & WithPlaybackConfigurationName(const Aws::String &value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
CreatePrefetchScheduleRequest & WithRetrieval(PrefetchRetrieval &&value)
CreatePrefetchScheduleRequest & WithConsumption(PrefetchConsumption &&value)
CreatePrefetchScheduleRequest & WithStreamId(const char *value)
CreatePrefetchScheduleRequest & WithName(const char *value)
CreatePrefetchScheduleRequest & WithStreamId(Aws::String &&value)
CreatePrefetchScheduleRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String