AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const BridgePlacement& GetBridgePlacement() const{ return m_bridgePlacement; }
53 inline bool BridgePlacementHasBeenSet() const { return m_bridgePlacementHasBeenSet; }
54 inline void SetBridgePlacement(const BridgePlacement& value) { m_bridgePlacementHasBeenSet = true; m_bridgePlacement = value; }
55 inline void SetBridgePlacement(BridgePlacement&& value) { m_bridgePlacementHasBeenSet = true; m_bridgePlacement = std::move(value); }
56 inline GatewayInstance& WithBridgePlacement(const BridgePlacement& value) { SetBridgePlacement(value); return *this;}
57 inline GatewayInstance& WithBridgePlacement(BridgePlacement&& value) { SetBridgePlacement(std::move(value)); return *this;}
59
61
64 inline const ConnectionStatus& GetConnectionStatus() const{ return m_connectionStatus; }
65 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
66 inline void SetConnectionStatus(const ConnectionStatus& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; }
67 inline void SetConnectionStatus(ConnectionStatus&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::move(value); }
68 inline GatewayInstance& WithConnectionStatus(const ConnectionStatus& value) { SetConnectionStatus(value); return *this;}
69 inline GatewayInstance& WithConnectionStatus(ConnectionStatus&& value) { SetConnectionStatus(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetGatewayArn() const{ return m_gatewayArn; }
77 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
78 inline void SetGatewayArn(const Aws::String& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = value; }
79 inline void SetGatewayArn(Aws::String&& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = std::move(value); }
80 inline void SetGatewayArn(const char* value) { m_gatewayArnHasBeenSet = true; m_gatewayArn.assign(value); }
81 inline GatewayInstance& WithGatewayArn(const Aws::String& value) { SetGatewayArn(value); return *this;}
82 inline GatewayInstance& WithGatewayArn(Aws::String&& value) { SetGatewayArn(std::move(value)); return *this;}
83 inline GatewayInstance& WithGatewayArn(const char* value) { SetGatewayArn(value); return *this;}
85
87
90 inline const Aws::String& GetGatewayInstanceArn() const{ return m_gatewayInstanceArn; }
91 inline bool GatewayInstanceArnHasBeenSet() const { return m_gatewayInstanceArnHasBeenSet; }
92 inline void SetGatewayInstanceArn(const Aws::String& value) { m_gatewayInstanceArnHasBeenSet = true; m_gatewayInstanceArn = value; }
93 inline void SetGatewayInstanceArn(Aws::String&& value) { m_gatewayInstanceArnHasBeenSet = true; m_gatewayInstanceArn = std::move(value); }
94 inline void SetGatewayInstanceArn(const char* value) { m_gatewayInstanceArnHasBeenSet = true; m_gatewayInstanceArn.assign(value); }
95 inline GatewayInstance& WithGatewayInstanceArn(const Aws::String& value) { SetGatewayInstanceArn(value); return *this;}
96 inline GatewayInstance& WithGatewayInstanceArn(Aws::String&& value) { SetGatewayInstanceArn(std::move(value)); return *this;}
97 inline GatewayInstance& WithGatewayInstanceArn(const char* value) { SetGatewayInstanceArn(value); return *this;}
99
101
105 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
106 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
107 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
108 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
109 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
110 inline GatewayInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
111 inline GatewayInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
112 inline GatewayInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
114
116
117 inline const Aws::Vector<MessageDetail>& GetInstanceMessages() const{ return m_instanceMessages; }
118 inline bool InstanceMessagesHasBeenSet() const { return m_instanceMessagesHasBeenSet; }
119 inline void SetInstanceMessages(const Aws::Vector<MessageDetail>& value) { m_instanceMessagesHasBeenSet = true; m_instanceMessages = value; }
120 inline void SetInstanceMessages(Aws::Vector<MessageDetail>&& value) { m_instanceMessagesHasBeenSet = true; m_instanceMessages = std::move(value); }
122 inline GatewayInstance& WithInstanceMessages(Aws::Vector<MessageDetail>&& value) { SetInstanceMessages(std::move(value)); return *this;}
123 inline GatewayInstance& AddInstanceMessages(const MessageDetail& value) { m_instanceMessagesHasBeenSet = true; m_instanceMessages.push_back(value); return *this; }
124 inline GatewayInstance& AddInstanceMessages(MessageDetail&& value) { m_instanceMessagesHasBeenSet = true; m_instanceMessages.push_back(std::move(value)); return *this; }
126
128
131 inline const InstanceState& GetInstanceState() const{ return m_instanceState; }
132 inline bool InstanceStateHasBeenSet() const { return m_instanceStateHasBeenSet; }
133 inline void SetInstanceState(const InstanceState& value) { m_instanceStateHasBeenSet = true; m_instanceState = value; }
134 inline void SetInstanceState(InstanceState&& value) { m_instanceStateHasBeenSet = true; m_instanceState = std::move(value); }
135 inline GatewayInstance& WithInstanceState(const InstanceState& value) { SetInstanceState(value); return *this;}
136 inline GatewayInstance& WithInstanceState(InstanceState&& value) { SetInstanceState(std::move(value)); return *this;}
138
140
143 inline int GetRunningBridgeCount() const{ return m_runningBridgeCount; }
144 inline bool RunningBridgeCountHasBeenSet() const { return m_runningBridgeCountHasBeenSet; }
145 inline void SetRunningBridgeCount(int value) { m_runningBridgeCountHasBeenSet = true; m_runningBridgeCount = value; }
146 inline GatewayInstance& WithRunningBridgeCount(int value) { SetRunningBridgeCount(value); return *this;}
148 private:
149
150 BridgePlacement m_bridgePlacement;
151 bool m_bridgePlacementHasBeenSet = false;
152
153 ConnectionStatus m_connectionStatus;
154 bool m_connectionStatusHasBeenSet = false;
155
156 Aws::String m_gatewayArn;
157 bool m_gatewayArnHasBeenSet = false;
158
159 Aws::String m_gatewayInstanceArn;
160 bool m_gatewayInstanceArnHasBeenSet = false;
161
162 Aws::String m_instanceId;
163 bool m_instanceIdHasBeenSet = false;
164
165 Aws::Vector<MessageDetail> m_instanceMessages;
166 bool m_instanceMessagesHasBeenSet = false;
167
168 InstanceState m_instanceState;
169 bool m_instanceStateHasBeenSet = false;
170
171 int m_runningBridgeCount;
172 bool m_runningBridgeCountHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace MediaConnect
177} // namespace Aws
GatewayInstance & WithBridgePlacement(BridgePlacement &&value)
GatewayInstance & WithGatewayArn(const Aws::String &value)
GatewayInstance & WithInstanceState(const InstanceState &value)
AWS_MEDIACONNECT_API GatewayInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInstanceState(InstanceState &&value)
void SetConnectionStatus(const ConnectionStatus &value)
const BridgePlacement & GetBridgePlacement() const
GatewayInstance & WithInstanceState(InstanceState &&value)
GatewayInstance & WithInstanceId(const Aws::String &value)
GatewayInstance & AddInstanceMessages(const MessageDetail &value)
void SetInstanceMessages(Aws::Vector< MessageDetail > &&value)
AWS_MEDIACONNECT_API GatewayInstance(Aws::Utils::Json::JsonView jsonValue)
GatewayInstance & WithGatewayArn(const char *value)
GatewayInstance & WithGatewayArn(Aws::String &&value)
const Aws::String & GetGatewayInstanceArn() const
GatewayInstance & WithConnectionStatus(const ConnectionStatus &value)
void SetInstanceState(const InstanceState &value)
void SetInstanceId(const Aws::String &value)
void SetGatewayInstanceArn(const Aws::String &value)
void SetInstanceMessages(const Aws::Vector< MessageDetail > &value)
const ConnectionStatus & GetConnectionStatus() const
GatewayInstance & WithGatewayInstanceArn(Aws::String &&value)
void SetConnectionStatus(ConnectionStatus &&value)
GatewayInstance & WithGatewayInstanceArn(const char *value)
const Aws::Vector< MessageDetail > & GetInstanceMessages() const
const Aws::String & GetGatewayArn() const
void SetGatewayInstanceArn(Aws::String &&value)
void SetBridgePlacement(const BridgePlacement &value)
GatewayInstance & WithGatewayInstanceArn(const Aws::String &value)
GatewayInstance & WithConnectionStatus(ConnectionStatus &&value)
GatewayInstance & WithBridgePlacement(const BridgePlacement &value)
GatewayInstance & AddInstanceMessages(MessageDetail &&value)
GatewayInstance & WithInstanceMessages(Aws::Vector< MessageDetail > &&value)
GatewayInstance & WithInstanceId(const char *value)
GatewayInstance & WithInstanceId(Aws::String &&value)
GatewayInstance & WithInstanceMessages(const Aws::Vector< MessageDetail > &value)
const InstanceState & GetInstanceState() const
void SetBridgePlacement(BridgePlacement &&value)
GatewayInstance & WithRunningBridgeCount(int value)
void SetGatewayArn(const Aws::String &value)
const Aws::String & GetInstanceId() const
void SetGatewayInstanceArn(const char *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