AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AddFlowSourcesRequest.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/mediaconnect/MediaConnectRequest.h>
10#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
11#include <aws/mediaconnect/model/SetSourceRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MediaConnect {
17namespace Model {
18
22 public:
23 AWS_MEDIACONNECT_API AddFlowSourcesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AddFlowSources"; }
30
31 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetFlowArn() const { return m_flowArn; }
38 inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
39 template <typename FlowArnT = Aws::String>
40 void SetFlowArn(FlowArnT&& value) {
41 m_flowArnHasBeenSet = true;
42 m_flowArn = std::forward<FlowArnT>(value);
43 }
44 template <typename FlowArnT = Aws::String>
46 SetFlowArn(std::forward<FlowArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<SetSourceRequest>& GetSources() const { return m_sources; }
56 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
57 template <typename SourcesT = Aws::Vector<SetSourceRequest>>
58 void SetSources(SourcesT&& value) {
59 m_sourcesHasBeenSet = true;
60 m_sources = std::forward<SourcesT>(value);
61 }
62 template <typename SourcesT = Aws::Vector<SetSourceRequest>>
64 SetSources(std::forward<SourcesT>(value));
65 return *this;
66 }
67 template <typename SourcesT = SetSourceRequest>
68 AddFlowSourcesRequest& AddSources(SourcesT&& value) {
69 m_sourcesHasBeenSet = true;
70 m_sources.emplace_back(std::forward<SourcesT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_flowArn;
76
78 bool m_flowArnHasBeenSet = false;
79 bool m_sourcesHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace MediaConnect
84} // namespace Aws
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< SetSourceRequest > & GetSources() const
virtual const char * GetServiceRequestName() const override
AddFlowSourcesRequest & AddSources(SourcesT &&value)
AWS_MEDIACONNECT_API AddFlowSourcesRequest()=default
AddFlowSourcesRequest & WithFlowArn(FlowArnT &&value)
AddFlowSourcesRequest & WithSources(SourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector