AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GatewayInstance.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/MediaConnect_EXPORTS.h>
10#include <aws/mediaconnect/model/BridgePlacement.h>
11#include <aws/mediaconnect/model/ConnectionStatus.h>
12#include <aws/mediaconnect/model/InstanceState.h>
13#include <aws/mediaconnect/model/MessageDetail.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaConnect {
25namespace Model {
26
33 public:
34 AWS_MEDIACONNECT_API GatewayInstance() = default;
35 AWS_MEDIACONNECT_API GatewayInstance(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONNECT_API GatewayInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline BridgePlacement GetBridgePlacement() const { return m_bridgePlacement; }
47 inline bool BridgePlacementHasBeenSet() const { return m_bridgePlacementHasBeenSet; }
49 m_bridgePlacementHasBeenSet = true;
50 m_bridgePlacement = value;
51 }
53 SetBridgePlacement(value);
54 return *this;
55 }
57
59
62 inline ConnectionStatus GetConnectionStatus() const { return m_connectionStatus; }
63 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
65 m_connectionStatusHasBeenSet = true;
66 m_connectionStatus = value;
67 }
70 return *this;
71 }
73
75
78 inline const Aws::String& GetGatewayArn() const { return m_gatewayArn; }
79 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
80 template <typename GatewayArnT = Aws::String>
81 void SetGatewayArn(GatewayArnT&& value) {
82 m_gatewayArnHasBeenSet = true;
83 m_gatewayArn = std::forward<GatewayArnT>(value);
84 }
85 template <typename GatewayArnT = Aws::String>
86 GatewayInstance& WithGatewayArn(GatewayArnT&& value) {
87 SetGatewayArn(std::forward<GatewayArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetGatewayInstanceArn() const { return m_gatewayInstanceArn; }
97 inline bool GatewayInstanceArnHasBeenSet() const { return m_gatewayInstanceArnHasBeenSet; }
98 template <typename GatewayInstanceArnT = Aws::String>
99 void SetGatewayInstanceArn(GatewayInstanceArnT&& value) {
100 m_gatewayInstanceArnHasBeenSet = true;
101 m_gatewayInstanceArn = std::forward<GatewayInstanceArnT>(value);
102 }
103 template <typename GatewayInstanceArnT = Aws::String>
104 GatewayInstance& WithGatewayInstanceArn(GatewayInstanceArnT&& value) {
105 SetGatewayInstanceArn(std::forward<GatewayInstanceArnT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
116 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
117 template <typename InstanceIdT = Aws::String>
118 void SetInstanceId(InstanceIdT&& value) {
119 m_instanceIdHasBeenSet = true;
120 m_instanceId = std::forward<InstanceIdT>(value);
121 }
122 template <typename InstanceIdT = Aws::String>
123 GatewayInstance& WithInstanceId(InstanceIdT&& value) {
124 SetInstanceId(std::forward<InstanceIdT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<MessageDetail>& GetInstanceMessages() const { return m_instanceMessages; }
134 inline bool InstanceMessagesHasBeenSet() const { return m_instanceMessagesHasBeenSet; }
135 template <typename InstanceMessagesT = Aws::Vector<MessageDetail>>
136 void SetInstanceMessages(InstanceMessagesT&& value) {
137 m_instanceMessagesHasBeenSet = true;
138 m_instanceMessages = std::forward<InstanceMessagesT>(value);
139 }
140 template <typename InstanceMessagesT = Aws::Vector<MessageDetail>>
141 GatewayInstance& WithInstanceMessages(InstanceMessagesT&& value) {
142 SetInstanceMessages(std::forward<InstanceMessagesT>(value));
143 return *this;
144 }
145 template <typename InstanceMessagesT = MessageDetail>
146 GatewayInstance& AddInstanceMessages(InstanceMessagesT&& value) {
147 m_instanceMessagesHasBeenSet = true;
148 m_instanceMessages.emplace_back(std::forward<InstanceMessagesT>(value));
149 return *this;
150 }
152
154
157 inline InstanceState GetInstanceState() const { return m_instanceState; }
158 inline bool InstanceStateHasBeenSet() const { return m_instanceStateHasBeenSet; }
159 inline void SetInstanceState(InstanceState value) {
160 m_instanceStateHasBeenSet = true;
161 m_instanceState = value;
162 }
164 SetInstanceState(value);
165 return *this;
166 }
168
170
173 inline int GetRunningBridgeCount() const { return m_runningBridgeCount; }
174 inline bool RunningBridgeCountHasBeenSet() const { return m_runningBridgeCountHasBeenSet; }
175 inline void SetRunningBridgeCount(int value) {
176 m_runningBridgeCountHasBeenSet = true;
177 m_runningBridgeCount = value;
178 }
181 return *this;
182 }
184 private:
185 BridgePlacement m_bridgePlacement{BridgePlacement::NOT_SET};
186
188
189 Aws::String m_gatewayArn;
190
191 Aws::String m_gatewayInstanceArn;
192
193 Aws::String m_instanceId;
194
195 Aws::Vector<MessageDetail> m_instanceMessages;
196
197 InstanceState m_instanceState{InstanceState::NOT_SET};
198
199 int m_runningBridgeCount{0};
200 bool m_bridgePlacementHasBeenSet = false;
201 bool m_connectionStatusHasBeenSet = false;
202 bool m_gatewayArnHasBeenSet = false;
203 bool m_gatewayInstanceArnHasBeenSet = false;
204 bool m_instanceIdHasBeenSet = false;
205 bool m_instanceMessagesHasBeenSet = false;
206 bool m_instanceStateHasBeenSet = false;
207 bool m_runningBridgeCountHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace MediaConnect
212} // namespace Aws
AWS_MEDIACONNECT_API GatewayInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
GatewayInstance & WithInstanceId(InstanceIdT &&value)
AWS_MEDIACONNECT_API GatewayInstance(Aws::Utils::Json::JsonView jsonValue)
GatewayInstance & WithGatewayArn(GatewayArnT &&value)
const Aws::String & GetGatewayInstanceArn() const
void SetBridgePlacement(BridgePlacement value)
GatewayInstance & WithConnectionStatus(ConnectionStatus value)
GatewayInstance & WithBridgePlacement(BridgePlacement value)
GatewayInstance & WithGatewayInstanceArn(GatewayInstanceArnT &&value)
void SetConnectionStatus(ConnectionStatus value)
GatewayInstance & AddInstanceMessages(InstanceMessagesT &&value)
AWS_MEDIACONNECT_API GatewayInstance()=default
const Aws::Vector< MessageDetail > & GetInstanceMessages() const
const Aws::String & GetGatewayArn() const
GatewayInstance & WithInstanceMessages(InstanceMessagesT &&value)
GatewayInstance & WithInstanceState(InstanceState value)
GatewayInstance & WithRunningBridgeCount(int value)
ConnectionStatus GetConnectionStatus() const
void SetGatewayInstanceArn(GatewayInstanceArnT &&value)
const Aws::String & GetInstanceId() const
void SetInstanceMessages(InstanceMessagesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue