AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateGatewayRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/MediaConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediaconnect/model/GatewayNetwork.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MediaConnect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MEDIACONNECT_API CreateGatewayRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateGateway"; }
33
34 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::Vector<Aws::String>& GetEgressCidrBlocks() const { return m_egressCidrBlocks; }
45 inline bool EgressCidrBlocksHasBeenSet() const { return m_egressCidrBlocksHasBeenSet; }
46 template<typename EgressCidrBlocksT = Aws::Vector<Aws::String>>
47 void SetEgressCidrBlocks(EgressCidrBlocksT&& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks = std::forward<EgressCidrBlocksT>(value); }
48 template<typename EgressCidrBlocksT = Aws::Vector<Aws::String>>
49 CreateGatewayRequest& WithEgressCidrBlocks(EgressCidrBlocksT&& value) { SetEgressCidrBlocks(std::forward<EgressCidrBlocksT>(value)); return *this;}
50 template<typename EgressCidrBlocksT = Aws::String>
51 CreateGatewayRequest& AddEgressCidrBlocks(EgressCidrBlocksT&& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks.emplace_back(std::forward<EgressCidrBlocksT>(value)); return *this; }
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateGatewayRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::Vector<GatewayNetwork>& GetNetworks() const { return m_networks; }
72 inline bool NetworksHasBeenSet() const { return m_networksHasBeenSet; }
73 template<typename NetworksT = Aws::Vector<GatewayNetwork>>
74 void SetNetworks(NetworksT&& value) { m_networksHasBeenSet = true; m_networks = std::forward<NetworksT>(value); }
75 template<typename NetworksT = Aws::Vector<GatewayNetwork>>
76 CreateGatewayRequest& WithNetworks(NetworksT&& value) { SetNetworks(std::forward<NetworksT>(value)); return *this;}
77 template<typename NetworksT = GatewayNetwork>
78 CreateGatewayRequest& AddNetworks(NetworksT&& value) { m_networksHasBeenSet = true; m_networks.emplace_back(std::forward<NetworksT>(value)); return *this; }
80 private:
81
82 Aws::Vector<Aws::String> m_egressCidrBlocks;
83 bool m_egressCidrBlocksHasBeenSet = false;
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
89 bool m_networksHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace MediaConnect
94} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetEgressCidrBlocks() const
void SetEgressCidrBlocks(EgressCidrBlocksT &&value)
CreateGatewayRequest & AddEgressCidrBlocks(EgressCidrBlocksT &&value)
CreateGatewayRequest & WithNetworks(NetworksT &&value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< GatewayNetwork > & GetNetworks() const
CreateGatewayRequest & WithName(NameT &&value)
AWS_MEDIACONNECT_API CreateGatewayRequest()=default
CreateGatewayRequest & WithEgressCidrBlocks(EgressCidrBlocksT &&value)
CreateGatewayRequest & AddNetworks(NetworksT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector