1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/medialive/MediaLive_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/medialive/model/ChannelSummary.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace MediaLive 26 { 27 namespace Model 28 { 29 /** 30 * Placeholder documentation for ListChannelsResponse<p><h3>See Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListChannelsResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_MEDIALIVE_API ListChannelsResult 35 { 36 public: 37 ListChannelsResult(); 38 ListChannelsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 39 ListChannelsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 40 41 42 GetChannels()43 inline const Aws::Vector<ChannelSummary>& GetChannels() const{ return m_channels; } 44 45 SetChannels(const Aws::Vector<ChannelSummary> & value)46 inline void SetChannels(const Aws::Vector<ChannelSummary>& value) { m_channels = value; } 47 48 SetChannels(Aws::Vector<ChannelSummary> && value)49 inline void SetChannels(Aws::Vector<ChannelSummary>&& value) { m_channels = std::move(value); } 50 51 WithChannels(const Aws::Vector<ChannelSummary> & value)52 inline ListChannelsResult& WithChannels(const Aws::Vector<ChannelSummary>& value) { SetChannels(value); return *this;} 53 54 WithChannels(Aws::Vector<ChannelSummary> && value)55 inline ListChannelsResult& WithChannels(Aws::Vector<ChannelSummary>&& value) { SetChannels(std::move(value)); return *this;} 56 57 AddChannels(const ChannelSummary & value)58 inline ListChannelsResult& AddChannels(const ChannelSummary& value) { m_channels.push_back(value); return *this; } 59 60 AddChannels(ChannelSummary && value)61 inline ListChannelsResult& AddChannels(ChannelSummary&& value) { m_channels.push_back(std::move(value)); return *this; } 62 63 64 GetNextToken()65 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 66 67 SetNextToken(const Aws::String & value)68 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 69 70 SetNextToken(Aws::String && value)71 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 72 73 SetNextToken(const char * value)74 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 75 76 WithNextToken(const Aws::String & value)77 inline ListChannelsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 78 79 WithNextToken(Aws::String && value)80 inline ListChannelsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 81 82 WithNextToken(const char * value)83 inline ListChannelsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 84 85 private: 86 87 Aws::Vector<ChannelSummary> m_channels; 88 89 Aws::String m_nextToken; 90 }; 91 92 } // namespace Model 93 } // namespace MediaLive 94 } // namespace Aws 95