AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
RestartChannelPipelinesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLiveRequest.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/ChannelPipelineIdToRestart.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MediaLive {
17namespace Model {
18
25 public:
26 AWS_MEDIALIVE_API RestartChannelPipelinesRequest() = default;
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 "RestartChannelPipelines"; }
33
34 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetChannelId() const { return m_channelId; }
41 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
42 template <typename ChannelIdT = Aws::String>
43 void SetChannelId(ChannelIdT&& value) {
44 m_channelIdHasBeenSet = true;
45 m_channelId = std::forward<ChannelIdT>(value);
46 }
47 template <typename ChannelIdT = Aws::String>
49 SetChannelId(std::forward<ChannelIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<ChannelPipelineIdToRestart>& GetPipelineIds() const { return m_pipelineIds; }
60 inline bool PipelineIdsHasBeenSet() const { return m_pipelineIdsHasBeenSet; }
61 template <typename PipelineIdsT = Aws::Vector<ChannelPipelineIdToRestart>>
62 void SetPipelineIds(PipelineIdsT&& value) {
63 m_pipelineIdsHasBeenSet = true;
64 m_pipelineIds = std::forward<PipelineIdsT>(value);
65 }
66 template <typename PipelineIdsT = Aws::Vector<ChannelPipelineIdToRestart>>
68 SetPipelineIds(std::forward<PipelineIdsT>(value));
69 return *this;
70 }
72 m_pipelineIdsHasBeenSet = true;
73 m_pipelineIds.push_back(value);
74 return *this;
75 }
77 private:
78 Aws::String m_channelId;
79
81 bool m_channelIdHasBeenSet = false;
82 bool m_pipelineIdsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace MediaLive
87} // namespace Aws
AWS_MEDIALIVE_API RestartChannelPipelinesRequest()=default
RestartChannelPipelinesRequest & WithChannelId(ChannelIdT &&value)
const Aws::Vector< ChannelPipelineIdToRestart > & GetPipelineIds() const
RestartChannelPipelinesRequest & AddPipelineIds(ChannelPipelineIdToRestart value)
RestartChannelPipelinesRequest & WithPipelineIds(PipelineIdsT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector