AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateChannelClassRequest.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/ChannelClass.h>
12#include <aws/medialive/model/OutputDestination.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MediaLive {
18namespace Model {
19
26 public:
27 AWS_MEDIALIVE_API UpdateChannelClassRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannelClass"; }
34
35 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
36
38
41 inline ChannelClass GetChannelClass() const { return m_channelClass; }
42 inline bool ChannelClassHasBeenSet() const { return m_channelClassHasBeenSet; }
43 inline void SetChannelClass(ChannelClass value) {
44 m_channelClassHasBeenSet = true;
45 m_channelClass = value;
46 }
48 SetChannelClass(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetChannelId() const { return m_channelId; }
58 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
59 template <typename ChannelIdT = Aws::String>
60 void SetChannelId(ChannelIdT&& value) {
61 m_channelIdHasBeenSet = true;
62 m_channelId = std::forward<ChannelIdT>(value);
63 }
64 template <typename ChannelIdT = Aws::String>
66 SetChannelId(std::forward<ChannelIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
76 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
77 template <typename DestinationsT = Aws::Vector<OutputDestination>>
78 void SetDestinations(DestinationsT&& value) {
79 m_destinationsHasBeenSet = true;
80 m_destinations = std::forward<DestinationsT>(value);
81 }
82 template <typename DestinationsT = Aws::Vector<OutputDestination>>
84 SetDestinations(std::forward<DestinationsT>(value));
85 return *this;
86 }
87 template <typename DestinationsT = OutputDestination>
89 m_destinationsHasBeenSet = true;
90 m_destinations.emplace_back(std::forward<DestinationsT>(value));
91 return *this;
92 }
94 private:
95 ChannelClass m_channelClass{ChannelClass::NOT_SET};
96
97 Aws::String m_channelId;
98
99 Aws::Vector<OutputDestination> m_destinations;
100 bool m_channelClassHasBeenSet = false;
101 bool m_channelIdHasBeenSet = false;
102 bool m_destinationsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace MediaLive
107} // namespace Aws
UpdateChannelClassRequest & WithChannelId(ChannelIdT &&value)
UpdateChannelClassRequest & WithChannelClass(ChannelClass value)
UpdateChannelClassRequest & AddDestinations(DestinationsT &&value)
const Aws::Vector< OutputDestination > & GetDestinations() const
UpdateChannelClassRequest & WithDestinations(DestinationsT &&value)
AWS_MEDIALIVE_API UpdateChannelClassRequest()=default
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector