AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDirectConnectGatewayAssociationRequest.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/directconnect/DirectConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/directconnect/model/RouteFilterPrefix.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DirectConnect
17{
18namespace Model
19{
20
24 {
25 public:
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 "CreateDirectConnectGatewayAssociation"; }
33
34 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
35
36 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetDirectConnectGatewayId() const{ return m_directConnectGatewayId; }
44 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
45 inline void SetDirectConnectGatewayId(const Aws::String& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = value; }
46 inline void SetDirectConnectGatewayId(Aws::String&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::move(value); }
47 inline void SetDirectConnectGatewayId(const char* value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId.assign(value); }
52
54
57 inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
58 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
59 inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
60 inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::move(value); }
61 inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
63 inline CreateDirectConnectGatewayAssociationRequest& WithGatewayId(Aws::String&& value) { SetGatewayId(std::move(value)); return *this;}
64 inline CreateDirectConnectGatewayAssociationRequest& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
66
68
75 inline const Aws::Vector<RouteFilterPrefix>& GetAddAllowedPrefixesToDirectConnectGateway() const{ return m_addAllowedPrefixesToDirectConnectGateway; }
76 inline bool AddAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet; }
77 inline void SetAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector<RouteFilterPrefix>& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway = value; }
78 inline void SetAddAllowedPrefixesToDirectConnectGateway(Aws::Vector<RouteFilterPrefix>&& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway = std::move(value); }
81 inline CreateDirectConnectGatewayAssociationRequest& AddAddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; }
82 inline CreateDirectConnectGatewayAssociationRequest& AddAddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::String& GetVirtualGatewayId() const{ return m_virtualGatewayId; }
90 inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; }
91 inline void SetVirtualGatewayId(const Aws::String& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = value; }
92 inline void SetVirtualGatewayId(Aws::String&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::move(value); }
93 inline void SetVirtualGatewayId(const char* value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId.assign(value); }
98 private:
99
100 Aws::String m_directConnectGatewayId;
101 bool m_directConnectGatewayIdHasBeenSet = false;
102
103 Aws::String m_gatewayId;
104 bool m_gatewayIdHasBeenSet = false;
105
106 Aws::Vector<RouteFilterPrefix> m_addAllowedPrefixesToDirectConnectGateway;
107 bool m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = false;
108
109 Aws::String m_virtualGatewayId;
110 bool m_virtualGatewayIdHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace DirectConnect
115} // namespace Aws
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDirectConnectGatewayAssociationRequest & WithVirtualGatewayId(const char *value)
CreateDirectConnectGatewayAssociationRequest & WithDirectConnectGatewayId(const Aws::String &value)
CreateDirectConnectGatewayAssociationRequest & AddAddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix &value)
CreateDirectConnectGatewayAssociationRequest & WithDirectConnectGatewayId(Aws::String &&value)
CreateDirectConnectGatewayAssociationRequest & AddAddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix &&value)
CreateDirectConnectGatewayAssociationRequest & WithDirectConnectGatewayId(const char *value)
CreateDirectConnectGatewayAssociationRequest & WithVirtualGatewayId(const Aws::String &value)
CreateDirectConnectGatewayAssociationRequest & WithGatewayId(const Aws::String &value)
CreateDirectConnectGatewayAssociationRequest & WithGatewayId(const char *value)
CreateDirectConnectGatewayAssociationRequest & WithAddAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
CreateDirectConnectGatewayAssociationRequest & WithGatewayId(Aws::String &&value)
CreateDirectConnectGatewayAssociationRequest & WithVirtualGatewayId(Aws::String &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
CreateDirectConnectGatewayAssociationRequest & WithAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector