AWS SDK for C++  1.8.71
AWS SDK for C++
AddFlowSourcesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace MediaConnect
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AddFlowSources"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetFlowArn() const{ return m_flowArn; }
44 
48  inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
49 
53  inline void SetFlowArn(const Aws::String& value) { m_flowArnHasBeenSet = true; m_flowArn = value; }
54 
58  inline void SetFlowArn(Aws::String&& value) { m_flowArnHasBeenSet = true; m_flowArn = std::move(value); }
59 
63  inline void SetFlowArn(const char* value) { m_flowArnHasBeenSet = true; m_flowArn.assign(value); }
64 
68  inline AddFlowSourcesRequest& WithFlowArn(const Aws::String& value) { SetFlowArn(value); return *this;}
69 
73  inline AddFlowSourcesRequest& WithFlowArn(Aws::String&& value) { SetFlowArn(std::move(value)); return *this;}
74 
78  inline AddFlowSourcesRequest& WithFlowArn(const char* value) { SetFlowArn(value); return *this;}
79 
80 
84  inline const Aws::Vector<SetSourceRequest>& GetSources() const{ return m_sources; }
85 
89  inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
90 
94  inline void SetSources(const Aws::Vector<SetSourceRequest>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
95 
99  inline void SetSources(Aws::Vector<SetSourceRequest>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
100 
104  inline AddFlowSourcesRequest& WithSources(const Aws::Vector<SetSourceRequest>& value) { SetSources(value); return *this;}
105 
109  inline AddFlowSourcesRequest& WithSources(Aws::Vector<SetSourceRequest>&& value) { SetSources(std::move(value)); return *this;}
110 
114  inline AddFlowSourcesRequest& AddSources(const SetSourceRequest& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
115 
119  inline AddFlowSourcesRequest& AddSources(SetSourceRequest&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
120 
121  private:
122 
123  Aws::String m_flowArn;
124  bool m_flowArnHasBeenSet;
125 
127  bool m_sourcesHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace MediaConnect
132 } // namespace Aws
#define AWS_MEDIACONNECT_API
AddFlowSourcesRequest & AddSources(const SetSourceRequest &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AddFlowSourcesRequest & WithFlowArn(const Aws::String &value)
AddFlowSourcesRequest & WithSources(Aws::Vector< SetSourceRequest > &&value)
const Aws::Vector< SetSourceRequest > & GetSources() const
AddFlowSourcesRequest & WithFlowArn(const char *value)
void SetSources(Aws::Vector< SetSourceRequest > &&value)
void SetSources(const Aws::Vector< SetSourceRequest > &value)
AddFlowSourcesRequest & WithFlowArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AddFlowSourcesRequest & WithSources(const Aws::Vector< SetSourceRequest > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddFlowSourcesRequest & AddSources(SetSourceRequest &&value)