AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Gateway.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediaconnect/model/GatewayState.h>
11#include <aws/mediaconnect/model/MessageDetail.h>
12#include <aws/mediaconnect/model/GatewayNetwork.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaConnect
26{
27namespace Model
28{
29
35 class Gateway
36 {
37 public:
38 AWS_MEDIACONNECT_API Gateway();
39 AWS_MEDIACONNECT_API Gateway(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONNECT_API Gateway& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<Aws::String>& GetEgressCidrBlocks() const{ return m_egressCidrBlocks; }
51 inline bool EgressCidrBlocksHasBeenSet() const { return m_egressCidrBlocksHasBeenSet; }
52 inline void SetEgressCidrBlocks(const Aws::Vector<Aws::String>& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks = value; }
53 inline void SetEgressCidrBlocks(Aws::Vector<Aws::String>&& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks = std::move(value); }
54 inline Gateway& WithEgressCidrBlocks(const Aws::Vector<Aws::String>& value) { SetEgressCidrBlocks(value); return *this;}
55 inline Gateway& WithEgressCidrBlocks(Aws::Vector<Aws::String>&& value) { SetEgressCidrBlocks(std::move(value)); return *this;}
56 inline Gateway& AddEgressCidrBlocks(const Aws::String& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks.push_back(value); return *this; }
57 inline Gateway& AddEgressCidrBlocks(Aws::String&& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks.push_back(std::move(value)); return *this; }
58 inline Gateway& AddEgressCidrBlocks(const char* value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks.push_back(value); return *this; }
60
62
65 inline const Aws::String& GetGatewayArn() const{ return m_gatewayArn; }
66 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
67 inline void SetGatewayArn(const Aws::String& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = value; }
68 inline void SetGatewayArn(Aws::String&& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = std::move(value); }
69 inline void SetGatewayArn(const char* value) { m_gatewayArnHasBeenSet = true; m_gatewayArn.assign(value); }
70 inline Gateway& WithGatewayArn(const Aws::String& value) { SetGatewayArn(value); return *this;}
71 inline Gateway& WithGatewayArn(Aws::String&& value) { SetGatewayArn(std::move(value)); return *this;}
72 inline Gateway& WithGatewayArn(const char* value) { SetGatewayArn(value); return *this;}
74
76
77 inline const Aws::Vector<MessageDetail>& GetGatewayMessages() const{ return m_gatewayMessages; }
78 inline bool GatewayMessagesHasBeenSet() const { return m_gatewayMessagesHasBeenSet; }
79 inline void SetGatewayMessages(const Aws::Vector<MessageDetail>& value) { m_gatewayMessagesHasBeenSet = true; m_gatewayMessages = value; }
80 inline void SetGatewayMessages(Aws::Vector<MessageDetail>&& value) { m_gatewayMessagesHasBeenSet = true; m_gatewayMessages = std::move(value); }
81 inline Gateway& WithGatewayMessages(const Aws::Vector<MessageDetail>& value) { SetGatewayMessages(value); return *this;}
82 inline Gateway& WithGatewayMessages(Aws::Vector<MessageDetail>&& value) { SetGatewayMessages(std::move(value)); return *this;}
83 inline Gateway& AddGatewayMessages(const MessageDetail& value) { m_gatewayMessagesHasBeenSet = true; m_gatewayMessages.push_back(value); return *this; }
84 inline Gateway& AddGatewayMessages(MessageDetail&& value) { m_gatewayMessagesHasBeenSet = true; m_gatewayMessages.push_back(std::move(value)); return *this; }
86
88
91 inline const GatewayState& GetGatewayState() const{ return m_gatewayState; }
92 inline bool GatewayStateHasBeenSet() const { return m_gatewayStateHasBeenSet; }
93 inline void SetGatewayState(const GatewayState& value) { m_gatewayStateHasBeenSet = true; m_gatewayState = value; }
94 inline void SetGatewayState(GatewayState&& value) { m_gatewayStateHasBeenSet = true; m_gatewayState = std::move(value); }
95 inline Gateway& WithGatewayState(const GatewayState& value) { SetGatewayState(value); return *this;}
96 inline Gateway& WithGatewayState(GatewayState&& value) { SetGatewayState(std::move(value)); return *this;}
98
100
104 inline const Aws::String& GetName() const{ return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
107 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
108 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
109 inline Gateway& WithName(const Aws::String& value) { SetName(value); return *this;}
110 inline Gateway& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
111 inline Gateway& WithName(const char* value) { SetName(value); return *this;}
113
115
118 inline const Aws::Vector<GatewayNetwork>& GetNetworks() const{ return m_networks; }
119 inline bool NetworksHasBeenSet() const { return m_networksHasBeenSet; }
120 inline void SetNetworks(const Aws::Vector<GatewayNetwork>& value) { m_networksHasBeenSet = true; m_networks = value; }
121 inline void SetNetworks(Aws::Vector<GatewayNetwork>&& value) { m_networksHasBeenSet = true; m_networks = std::move(value); }
122 inline Gateway& WithNetworks(const Aws::Vector<GatewayNetwork>& value) { SetNetworks(value); return *this;}
123 inline Gateway& WithNetworks(Aws::Vector<GatewayNetwork>&& value) { SetNetworks(std::move(value)); return *this;}
124 inline Gateway& AddNetworks(const GatewayNetwork& value) { m_networksHasBeenSet = true; m_networks.push_back(value); return *this; }
125 inline Gateway& AddNetworks(GatewayNetwork&& value) { m_networksHasBeenSet = true; m_networks.push_back(std::move(value)); return *this; }
127 private:
128
129 Aws::Vector<Aws::String> m_egressCidrBlocks;
130 bool m_egressCidrBlocksHasBeenSet = false;
131
132 Aws::String m_gatewayArn;
133 bool m_gatewayArnHasBeenSet = false;
134
135 Aws::Vector<MessageDetail> m_gatewayMessages;
136 bool m_gatewayMessagesHasBeenSet = false;
137
138 GatewayState m_gatewayState;
139 bool m_gatewayStateHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
145 bool m_networksHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace MediaConnect
150} // namespace Aws
Gateway & AddNetworks(GatewayNetwork &&value)
Definition Gateway.h:125
const GatewayState & GetGatewayState() const
Definition Gateway.h:91
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Gateway & AddGatewayMessages(MessageDetail &&value)
Definition Gateway.h:84
Gateway & WithGatewayMessages(const Aws::Vector< MessageDetail > &value)
Definition Gateway.h:81
Gateway & WithGatewayState(GatewayState &&value)
Definition Gateway.h:96
void SetNetworks(const Aws::Vector< GatewayNetwork > &value)
Definition Gateway.h:120
void SetEgressCidrBlocks(const Aws::Vector< Aws::String > &value)
Definition Gateway.h:52
const Aws::Vector< GatewayNetwork > & GetNetworks() const
Definition Gateway.h:118
AWS_MEDIACONNECT_API Gateway & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition Gateway.h:106
Gateway & AddEgressCidrBlocks(const Aws::String &value)
Definition Gateway.h:56
Gateway & WithNetworks(const Aws::Vector< GatewayNetwork > &value)
Definition Gateway.h:122
void SetGatewayState(const GatewayState &value)
Definition Gateway.h:93
const Aws::String & GetName() const
Definition Gateway.h:104
void SetGatewayArn(const char *value)
Definition Gateway.h:69
Gateway & AddEgressCidrBlocks(Aws::String &&value)
Definition Gateway.h:57
void SetNetworks(Aws::Vector< GatewayNetwork > &&value)
Definition Gateway.h:121
Gateway & WithGatewayArn(const char *value)
Definition Gateway.h:72
void SetGatewayArn(const Aws::String &value)
Definition Gateway.h:67
Gateway & WithGatewayState(const GatewayState &value)
Definition Gateway.h:95
AWS_MEDIACONNECT_API Gateway()
void SetName(const char *value)
Definition Gateway.h:108
Gateway & WithName(const char *value)
Definition Gateway.h:111
const Aws::String & GetGatewayArn() const
Definition Gateway.h:65
const Aws::Vector< MessageDetail > & GetGatewayMessages() const
Definition Gateway.h:77
Gateway & WithEgressCidrBlocks(const Aws::Vector< Aws::String > &value)
Definition Gateway.h:54
Gateway & WithGatewayArn(const Aws::String &value)
Definition Gateway.h:70
Gateway & WithGatewayArn(Aws::String &&value)
Definition Gateway.h:71
Gateway & AddGatewayMessages(const MessageDetail &value)
Definition Gateway.h:83
void SetGatewayMessages(Aws::Vector< MessageDetail > &&value)
Definition Gateway.h:80
Gateway & WithName(const Aws::String &value)
Definition Gateway.h:109
Gateway & WithName(Aws::String &&value)
Definition Gateway.h:110
Gateway & WithNetworks(Aws::Vector< GatewayNetwork > &&value)
Definition Gateway.h:123
const Aws::Vector< Aws::String > & GetEgressCidrBlocks() const
Definition Gateway.h:50
bool GatewayStateHasBeenSet() const
Definition Gateway.h:92
void SetGatewayArn(Aws::String &&value)
Definition Gateway.h:68
bool EgressCidrBlocksHasBeenSet() const
Definition Gateway.h:51
bool GatewayMessagesHasBeenSet() const
Definition Gateway.h:78
Gateway & AddNetworks(const GatewayNetwork &value)
Definition Gateway.h:124
Gateway & AddEgressCidrBlocks(const char *value)
Definition Gateway.h:58
Gateway & WithGatewayMessages(Aws::Vector< MessageDetail > &&value)
Definition Gateway.h:82
AWS_MEDIACONNECT_API Gateway(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition Gateway.h:107
Gateway & WithEgressCidrBlocks(Aws::Vector< Aws::String > &&value)
Definition Gateway.h:55
void SetEgressCidrBlocks(Aws::Vector< Aws::String > &&value)
Definition Gateway.h:53
void SetGatewayMessages(const Aws::Vector< MessageDetail > &value)
Definition Gateway.h:79
void SetGatewayState(GatewayState &&value)
Definition Gateway.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue