AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDirectConnectGatewayAssociationRequest.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 "UpdateDirectConnectGatewayAssociation"; }
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& GetAssociationId() const{ return m_associationId; }
44 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
45 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
46 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
47 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
50 inline UpdateDirectConnectGatewayAssociationRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
52
54
57 inline const Aws::Vector<RouteFilterPrefix>& GetAddAllowedPrefixesToDirectConnectGateway() const{ return m_addAllowedPrefixesToDirectConnectGateway; }
58 inline bool AddAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet; }
59 inline void SetAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector<RouteFilterPrefix>& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway = value; }
60 inline void SetAddAllowedPrefixesToDirectConnectGateway(Aws::Vector<RouteFilterPrefix>&& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway = std::move(value); }
63 inline UpdateDirectConnectGatewayAssociationRequest& AddAddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; }
64 inline UpdateDirectConnectGatewayAssociationRequest& AddAddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; }
66
68
72 inline const Aws::Vector<RouteFilterPrefix>& GetRemoveAllowedPrefixesToDirectConnectGateway() const{ return m_removeAllowedPrefixesToDirectConnectGateway; }
73 inline bool RemoveAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet; }
74 inline void SetRemoveAllowedPrefixesToDirectConnectGateway(const Aws::Vector<RouteFilterPrefix>& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway = value; }
75 inline void SetRemoveAllowedPrefixesToDirectConnectGateway(Aws::Vector<RouteFilterPrefix>&& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway = std::move(value); }
78 inline UpdateDirectConnectGatewayAssociationRequest& AddRemoveAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; }
79 inline UpdateDirectConnectGatewayAssociationRequest& AddRemoveAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_associationId;
84 bool m_associationIdHasBeenSet = false;
85
86 Aws::Vector<RouteFilterPrefix> m_addAllowedPrefixesToDirectConnectGateway;
87 bool m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = false;
88
89 Aws::Vector<RouteFilterPrefix> m_removeAllowedPrefixesToDirectConnectGateway;
90 bool m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace DirectConnect
95} // namespace Aws
UpdateDirectConnectGatewayAssociationRequest & AddRemoveAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix &value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDirectConnectGatewayAssociationRequest & WithRemoveAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
UpdateDirectConnectGatewayAssociationRequest & AddAddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix &value)
UpdateDirectConnectGatewayAssociationRequest & AddAddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix &&value)
UpdateDirectConnectGatewayAssociationRequest & WithAddAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
UpdateDirectConnectGatewayAssociationRequest & WithAssociationId(const Aws::String &value)
UpdateDirectConnectGatewayAssociationRequest & WithAssociationId(Aws::String &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
UpdateDirectConnectGatewayAssociationRequest & AddRemoveAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix &&value)
UpdateDirectConnectGatewayAssociationRequest & WithAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
UpdateDirectConnectGatewayAssociationRequest & WithRemoveAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
UpdateDirectConnectGatewayAssociationRequest & WithAssociationId(const char *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