AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateChannelClassRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/medialive/model/ChannelClass.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/medialive/model/OutputDestination.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MediaLive
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_MEDIALIVE_API UpdateChannelClassRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannelClass"; }
37
38 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
39
40
42
45 inline ChannelClass GetChannelClass() const { return m_channelClass; }
46 inline bool ChannelClassHasBeenSet() const { return m_channelClassHasBeenSet; }
47 inline void SetChannelClass(ChannelClass value) { m_channelClassHasBeenSet = true; m_channelClass = value; }
50
52
55 inline const Aws::String& GetChannelId() const { return m_channelId; }
56 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
57 template<typename ChannelIdT = Aws::String>
58 void SetChannelId(ChannelIdT&& value) { m_channelIdHasBeenSet = true; m_channelId = std::forward<ChannelIdT>(value); }
59 template<typename ChannelIdT = Aws::String>
60 UpdateChannelClassRequest& WithChannelId(ChannelIdT&& value) { SetChannelId(std::forward<ChannelIdT>(value)); return *this;}
62
64
67 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
68 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
69 template<typename DestinationsT = Aws::Vector<OutputDestination>>
70 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
71 template<typename DestinationsT = Aws::Vector<OutputDestination>>
72 UpdateChannelClassRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
73 template<typename DestinationsT = OutputDestination>
74 UpdateChannelClassRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
76 private:
77
78 ChannelClass m_channelClass{ChannelClass::NOT_SET};
79 bool m_channelClassHasBeenSet = false;
80
81 Aws::String m_channelId;
82 bool m_channelIdHasBeenSet = false;
83
84 Aws::Vector<OutputDestination> m_destinations;
85 bool m_destinationsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace MediaLive
90} // 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