AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GatewayInstance.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/model/BridgePlacement.h>
9#include <aws/mediaconnect/model/ConnectionStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mediaconnect/model/InstanceState.h>
13#include <aws/mediaconnect/model/MessageDetail.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MediaConnect
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_MEDIACONNECT_API GatewayInstance() = default;
40 AWS_MEDIACONNECT_API GatewayInstance(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONNECT_API GatewayInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
52 inline BridgePlacement GetBridgePlacement() const { return m_bridgePlacement; }
53 inline bool BridgePlacementHasBeenSet() const { return m_bridgePlacementHasBeenSet; }
54 inline void SetBridgePlacement(BridgePlacement value) { m_bridgePlacementHasBeenSet = true; m_bridgePlacement = value; }
57
59
62 inline ConnectionStatus GetConnectionStatus() const { return m_connectionStatus; }
63 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
64 inline void SetConnectionStatus(ConnectionStatus value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; }
67
69
72 inline const Aws::String& GetGatewayArn() const { return m_gatewayArn; }
73 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
74 template<typename GatewayArnT = Aws::String>
75 void SetGatewayArn(GatewayArnT&& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = std::forward<GatewayArnT>(value); }
76 template<typename GatewayArnT = Aws::String>
77 GatewayInstance& WithGatewayArn(GatewayArnT&& value) { SetGatewayArn(std::forward<GatewayArnT>(value)); return *this;}
79
81
84 inline const Aws::String& GetGatewayInstanceArn() const { return m_gatewayInstanceArn; }
85 inline bool GatewayInstanceArnHasBeenSet() const { return m_gatewayInstanceArnHasBeenSet; }
86 template<typename GatewayInstanceArnT = Aws::String>
87 void SetGatewayInstanceArn(GatewayInstanceArnT&& value) { m_gatewayInstanceArnHasBeenSet = true; m_gatewayInstanceArn = std::forward<GatewayInstanceArnT>(value); }
88 template<typename GatewayInstanceArnT = Aws::String>
89 GatewayInstance& WithGatewayInstanceArn(GatewayInstanceArnT&& value) { SetGatewayInstanceArn(std::forward<GatewayInstanceArnT>(value)); return *this;}
91
93
97 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
98 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
99 template<typename InstanceIdT = Aws::String>
100 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
101 template<typename InstanceIdT = Aws::String>
102 GatewayInstance& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
104
106
109 inline const Aws::Vector<MessageDetail>& GetInstanceMessages() const { return m_instanceMessages; }
110 inline bool InstanceMessagesHasBeenSet() const { return m_instanceMessagesHasBeenSet; }
111 template<typename InstanceMessagesT = Aws::Vector<MessageDetail>>
112 void SetInstanceMessages(InstanceMessagesT&& value) { m_instanceMessagesHasBeenSet = true; m_instanceMessages = std::forward<InstanceMessagesT>(value); }
113 template<typename InstanceMessagesT = Aws::Vector<MessageDetail>>
114 GatewayInstance& WithInstanceMessages(InstanceMessagesT&& value) { SetInstanceMessages(std::forward<InstanceMessagesT>(value)); return *this;}
115 template<typename InstanceMessagesT = MessageDetail>
116 GatewayInstance& AddInstanceMessages(InstanceMessagesT&& value) { m_instanceMessagesHasBeenSet = true; m_instanceMessages.emplace_back(std::forward<InstanceMessagesT>(value)); return *this; }
118
120
123 inline InstanceState GetInstanceState() const { return m_instanceState; }
124 inline bool InstanceStateHasBeenSet() const { return m_instanceStateHasBeenSet; }
125 inline void SetInstanceState(InstanceState value) { m_instanceStateHasBeenSet = true; m_instanceState = value; }
126 inline GatewayInstance& WithInstanceState(InstanceState value) { SetInstanceState(value); return *this;}
128
130
133 inline int GetRunningBridgeCount() const { return m_runningBridgeCount; }
134 inline bool RunningBridgeCountHasBeenSet() const { return m_runningBridgeCountHasBeenSet; }
135 inline void SetRunningBridgeCount(int value) { m_runningBridgeCountHasBeenSet = true; m_runningBridgeCount = value; }
136 inline GatewayInstance& WithRunningBridgeCount(int value) { SetRunningBridgeCount(value); return *this;}
138 private:
139
140 BridgePlacement m_bridgePlacement{BridgePlacement::NOT_SET};
141 bool m_bridgePlacementHasBeenSet = false;
142
144 bool m_connectionStatusHasBeenSet = false;
145
146 Aws::String m_gatewayArn;
147 bool m_gatewayArnHasBeenSet = false;
148
149 Aws::String m_gatewayInstanceArn;
150 bool m_gatewayInstanceArnHasBeenSet = false;
151
152 Aws::String m_instanceId;
153 bool m_instanceIdHasBeenSet = false;
154
155 Aws::Vector<MessageDetail> m_instanceMessages;
156 bool m_instanceMessagesHasBeenSet = false;
157
158 InstanceState m_instanceState{InstanceState::NOT_SET};
159 bool m_instanceStateHasBeenSet = false;
160
161 int m_runningBridgeCount{0};
162 bool m_runningBridgeCountHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace MediaConnect
167} // 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