AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBridgeRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/MediaConnectRequest.h>
9#include <aws/mediaconnect/model/AddEgressGatewayBridgeRequest.h>
10#include <aws/mediaconnect/model/AddIngressGatewayBridgeRequest.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/mediaconnect/model/FailoverConfig.h>
14#include <aws/mediaconnect/model/AddBridgeOutputRequest.h>
15#include <aws/mediaconnect/model/AddBridgeSourceRequest.h>
16#include <utility>
17
18namespace Aws
19{
20namespace MediaConnect
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_MEDIACONNECT_API CreateBridgeRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateBridge"; }
41
42 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
43
44
46
51 inline const AddEgressGatewayBridgeRequest& GetEgressGatewayBridge() const{ return m_egressGatewayBridge; }
52 inline bool EgressGatewayBridgeHasBeenSet() const { return m_egressGatewayBridgeHasBeenSet; }
53 inline void SetEgressGatewayBridge(const AddEgressGatewayBridgeRequest& value) { m_egressGatewayBridgeHasBeenSet = true; m_egressGatewayBridge = value; }
54 inline void SetEgressGatewayBridge(AddEgressGatewayBridgeRequest&& value) { m_egressGatewayBridgeHasBeenSet = true; m_egressGatewayBridge = std::move(value); }
58
60
65 inline const AddIngressGatewayBridgeRequest& GetIngressGatewayBridge() const{ return m_ingressGatewayBridge; }
66 inline bool IngressGatewayBridgeHasBeenSet() const { return m_ingressGatewayBridgeHasBeenSet; }
67 inline void SetIngressGatewayBridge(const AddIngressGatewayBridgeRequest& value) { m_ingressGatewayBridgeHasBeenSet = true; m_ingressGatewayBridge = value; }
68 inline void SetIngressGatewayBridge(AddIngressGatewayBridgeRequest&& value) { m_ingressGatewayBridgeHasBeenSet = true; m_ingressGatewayBridge = std::move(value); }
72
74
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline CreateBridgeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline CreateBridgeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline CreateBridgeRequest& WithName(const char* value) { SetName(value); return *this;}
87
89
92 inline const Aws::Vector<AddBridgeOutputRequest>& GetOutputs() const{ return m_outputs; }
93 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
94 inline void SetOutputs(const Aws::Vector<AddBridgeOutputRequest>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
95 inline void SetOutputs(Aws::Vector<AddBridgeOutputRequest>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
97 inline CreateBridgeRequest& WithOutputs(Aws::Vector<AddBridgeOutputRequest>&& value) { SetOutputs(std::move(value)); return *this;}
98 inline CreateBridgeRequest& AddOutputs(const AddBridgeOutputRequest& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
99 inline CreateBridgeRequest& AddOutputs(AddBridgeOutputRequest&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::String& GetPlacementArn() const{ return m_placementArn; }
107 inline bool PlacementArnHasBeenSet() const { return m_placementArnHasBeenSet; }
108 inline void SetPlacementArn(const Aws::String& value) { m_placementArnHasBeenSet = true; m_placementArn = value; }
109 inline void SetPlacementArn(Aws::String&& value) { m_placementArnHasBeenSet = true; m_placementArn = std::move(value); }
110 inline void SetPlacementArn(const char* value) { m_placementArnHasBeenSet = true; m_placementArn.assign(value); }
111 inline CreateBridgeRequest& WithPlacementArn(const Aws::String& value) { SetPlacementArn(value); return *this;}
112 inline CreateBridgeRequest& WithPlacementArn(Aws::String&& value) { SetPlacementArn(std::move(value)); return *this;}
113 inline CreateBridgeRequest& WithPlacementArn(const char* value) { SetPlacementArn(value); return *this;}
115
117
120 inline const FailoverConfig& GetSourceFailoverConfig() const{ return m_sourceFailoverConfig; }
121 inline bool SourceFailoverConfigHasBeenSet() const { return m_sourceFailoverConfigHasBeenSet; }
122 inline void SetSourceFailoverConfig(const FailoverConfig& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = value; }
123 inline void SetSourceFailoverConfig(FailoverConfig&& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = std::move(value); }
125 inline CreateBridgeRequest& WithSourceFailoverConfig(FailoverConfig&& value) { SetSourceFailoverConfig(std::move(value)); return *this;}
127
129
132 inline const Aws::Vector<AddBridgeSourceRequest>& GetSources() const{ return m_sources; }
133 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
134 inline void SetSources(const Aws::Vector<AddBridgeSourceRequest>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
135 inline void SetSources(Aws::Vector<AddBridgeSourceRequest>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
137 inline CreateBridgeRequest& WithSources(Aws::Vector<AddBridgeSourceRequest>&& value) { SetSources(std::move(value)); return *this;}
138 inline CreateBridgeRequest& AddSources(const AddBridgeSourceRequest& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
139 inline CreateBridgeRequest& AddSources(AddBridgeSourceRequest&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
141 private:
142
143 AddEgressGatewayBridgeRequest m_egressGatewayBridge;
144 bool m_egressGatewayBridgeHasBeenSet = false;
145
146 AddIngressGatewayBridgeRequest m_ingressGatewayBridge;
147 bool m_ingressGatewayBridgeHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
153 bool m_outputsHasBeenSet = false;
154
155 Aws::String m_placementArn;
156 bool m_placementArnHasBeenSet = false;
157
158 FailoverConfig m_sourceFailoverConfig;
159 bool m_sourceFailoverConfigHasBeenSet = false;
160
162 bool m_sourcesHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace MediaConnect
167} // namespace Aws
CreateBridgeRequest & WithIngressGatewayBridge(const AddIngressGatewayBridgeRequest &value)
void SetOutputs(const Aws::Vector< AddBridgeOutputRequest > &value)
void SetOutputs(Aws::Vector< AddBridgeOutputRequest > &&value)
void SetSourceFailoverConfig(const FailoverConfig &value)
void SetIngressGatewayBridge(const AddIngressGatewayBridgeRequest &value)
CreateBridgeRequest & WithName(const Aws::String &value)
CreateBridgeRequest & WithPlacementArn(Aws::String &&value)
CreateBridgeRequest & WithEgressGatewayBridge(const AddEgressGatewayBridgeRequest &value)
void SetSources(const Aws::Vector< AddBridgeSourceRequest > &value)
const Aws::Vector< AddBridgeSourceRequest > & GetSources() const
const AddEgressGatewayBridgeRequest & GetEgressGatewayBridge() const
CreateBridgeRequest & WithName(const char *value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
CreateBridgeRequest & AddSources(AddBridgeSourceRequest &&value)
CreateBridgeRequest & WithName(Aws::String &&value)
const AddIngressGatewayBridgeRequest & GetIngressGatewayBridge() const
const Aws::Vector< AddBridgeOutputRequest > & GetOutputs() const
void SetSources(Aws::Vector< AddBridgeSourceRequest > &&value)
const FailoverConfig & GetSourceFailoverConfig() const
void SetEgressGatewayBridge(const AddEgressGatewayBridgeRequest &value)
CreateBridgeRequest & WithSources(Aws::Vector< AddBridgeSourceRequest > &&value)
CreateBridgeRequest & WithSourceFailoverConfig(const FailoverConfig &value)
CreateBridgeRequest & WithEgressGatewayBridge(AddEgressGatewayBridgeRequest &&value)
CreateBridgeRequest & AddOutputs(AddBridgeOutputRequest &&value)
void SetIngressGatewayBridge(AddIngressGatewayBridgeRequest &&value)
CreateBridgeRequest & WithPlacementArn(const Aws::String &value)
CreateBridgeRequest & WithSources(const Aws::Vector< AddBridgeSourceRequest > &value)
CreateBridgeRequest & WithSourceFailoverConfig(FailoverConfig &&value)
virtual const char * GetServiceRequestName() const override
CreateBridgeRequest & WithOutputs(Aws::Vector< AddBridgeOutputRequest > &&value)
void SetEgressGatewayBridge(AddEgressGatewayBridgeRequest &&value)
CreateBridgeRequest & AddOutputs(const AddBridgeOutputRequest &value)
CreateBridgeRequest & WithOutputs(const Aws::Vector< AddBridgeOutputRequest > &value)
CreateBridgeRequest & WithPlacementArn(const char *value)
CreateBridgeRequest & AddSources(const AddBridgeSourceRequest &value)
CreateBridgeRequest & WithIngressGatewayBridge(AddIngressGatewayBridgeRequest &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector