AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
28 {
29 public:
30 AWS_MEDIACONNECT_API CreateGatewayRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateGateway"; }
37
38 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
39
40
42
48 inline const Aws::Vector<Aws::String>& GetEgressCidrBlocks() const{ return m_egressCidrBlocks; }
49 inline bool EgressCidrBlocksHasBeenSet() const { return m_egressCidrBlocksHasBeenSet; }
50 inline void SetEgressCidrBlocks(const Aws::Vector<Aws::String>& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks = value; }
51 inline void SetEgressCidrBlocks(Aws::Vector<Aws::String>&& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks = std::move(value); }
54 inline CreateGatewayRequest& AddEgressCidrBlocks(const Aws::String& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks.push_back(value); return *this; }
55 inline CreateGatewayRequest& AddEgressCidrBlocks(Aws::String&& value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks.push_back(std::move(value)); return *this; }
56 inline CreateGatewayRequest& AddEgressCidrBlocks(const char* value) { m_egressCidrBlocksHasBeenSet = true; m_egressCidrBlocks.push_back(value); return *this; }
58
60
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline CreateGatewayRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline CreateGatewayRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline CreateGatewayRequest& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const Aws::Vector<GatewayNetwork>& GetNetworks() const{ return m_networks; }
79 inline bool NetworksHasBeenSet() const { return m_networksHasBeenSet; }
80 inline void SetNetworks(const Aws::Vector<GatewayNetwork>& value) { m_networksHasBeenSet = true; m_networks = value; }
81 inline void SetNetworks(Aws::Vector<GatewayNetwork>&& value) { m_networksHasBeenSet = true; m_networks = std::move(value); }
82 inline CreateGatewayRequest& WithNetworks(const Aws::Vector<GatewayNetwork>& value) { SetNetworks(value); return *this;}
83 inline CreateGatewayRequest& WithNetworks(Aws::Vector<GatewayNetwork>&& value) { SetNetworks(std::move(value)); return *this;}
84 inline CreateGatewayRequest& AddNetworks(const GatewayNetwork& value) { m_networksHasBeenSet = true; m_networks.push_back(value); return *this; }
85 inline CreateGatewayRequest& AddNetworks(GatewayNetwork&& value) { m_networksHasBeenSet = true; m_networks.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::Vector<Aws::String> m_egressCidrBlocks;
90 bool m_egressCidrBlocksHasBeenSet = false;
91
92 Aws::String m_name;
93 bool m_nameHasBeenSet = false;
94
96 bool m_networksHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace MediaConnect
101} // namespace Aws
CreateGatewayRequest & WithEgressCidrBlocks(Aws::Vector< Aws::String > &&value)
CreateGatewayRequest & AddEgressCidrBlocks(const char *value)
CreateGatewayRequest & AddNetworks(const GatewayNetwork &value)
virtual const char * GetServiceRequestName() const override
CreateGatewayRequest & WithName(const char *value)
CreateGatewayRequest & WithName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetEgressCidrBlocks() const
CreateGatewayRequest & AddEgressCidrBlocks(Aws::String &&value)
void SetNetworks(Aws::Vector< GatewayNetwork > &&value)
void SetNetworks(const Aws::Vector< GatewayNetwork > &value)
CreateGatewayRequest & AddEgressCidrBlocks(const Aws::String &value)
CreateGatewayRequest & WithEgressCidrBlocks(const Aws::Vector< Aws::String > &value)
CreateGatewayRequest & WithNetworks(const Aws::Vector< GatewayNetwork > &value)
void SetEgressCidrBlocks(const Aws::Vector< Aws::String > &value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
void SetEgressCidrBlocks(Aws::Vector< Aws::String > &&value)
const Aws::Vector< GatewayNetwork > & GetNetworks() const
CreateGatewayRequest & WithNetworks(Aws::Vector< GatewayNetwork > &&value)
CreateGatewayRequest & AddNetworks(GatewayNetwork &&value)
CreateGatewayRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector