AWS SDK for C++  1.9.66
AWS SDK for C++
UpdateDirectConnectGatewayAssociationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DirectConnect
17 {
18 namespace 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::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
43 
47  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
48 
52  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
53 
57  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
58 
62  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
63 
67  inline UpdateDirectConnectGatewayAssociationRequest& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
68 
72  inline UpdateDirectConnectGatewayAssociationRequest& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
73 
77  inline UpdateDirectConnectGatewayAssociationRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
78 
79 
83  inline const Aws::Vector<RouteFilterPrefix>& GetAddAllowedPrefixesToDirectConnectGateway() const{ return m_addAllowedPrefixesToDirectConnectGateway; }
84 
88  inline bool AddAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet; }
89 
93  inline void SetAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector<RouteFilterPrefix>& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway = value; }
94 
98  inline void SetAddAllowedPrefixesToDirectConnectGateway(Aws::Vector<RouteFilterPrefix>&& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway = std::move(value); }
99 
103  inline UpdateDirectConnectGatewayAssociationRequest& WithAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector<RouteFilterPrefix>& value) { SetAddAllowedPrefixesToDirectConnectGateway(value); return *this;}
104 
108  inline UpdateDirectConnectGatewayAssociationRequest& WithAddAllowedPrefixesToDirectConnectGateway(Aws::Vector<RouteFilterPrefix>&& value) { SetAddAllowedPrefixesToDirectConnectGateway(std::move(value)); return *this;}
109 
113  inline UpdateDirectConnectGatewayAssociationRequest& AddAddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; }
114 
118  inline UpdateDirectConnectGatewayAssociationRequest& AddAddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; }
119 
120 
125  inline const Aws::Vector<RouteFilterPrefix>& GetRemoveAllowedPrefixesToDirectConnectGateway() const{ return m_removeAllowedPrefixesToDirectConnectGateway; }
126 
131  inline bool RemoveAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet; }
132 
137  inline void SetRemoveAllowedPrefixesToDirectConnectGateway(const Aws::Vector<RouteFilterPrefix>& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway = value; }
138 
143  inline void SetRemoveAllowedPrefixesToDirectConnectGateway(Aws::Vector<RouteFilterPrefix>&& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway = std::move(value); }
144 
149  inline UpdateDirectConnectGatewayAssociationRequest& WithRemoveAllowedPrefixesToDirectConnectGateway(const Aws::Vector<RouteFilterPrefix>& value) { SetRemoveAllowedPrefixesToDirectConnectGateway(value); return *this;}
150 
155  inline UpdateDirectConnectGatewayAssociationRequest& WithRemoveAllowedPrefixesToDirectConnectGateway(Aws::Vector<RouteFilterPrefix>&& value) { SetRemoveAllowedPrefixesToDirectConnectGateway(std::move(value)); return *this;}
156 
161  inline UpdateDirectConnectGatewayAssociationRequest& AddRemoveAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; }
162 
167  inline UpdateDirectConnectGatewayAssociationRequest& AddRemoveAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; }
168 
169  private:
170 
171  Aws::String m_associationId;
172  bool m_associationIdHasBeenSet;
173 
174  Aws::Vector<RouteFilterPrefix> m_addAllowedPrefixesToDirectConnectGateway;
175  bool m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet;
176 
177  Aws::Vector<RouteFilterPrefix> m_removeAllowedPrefixesToDirectConnectGateway;
178  bool m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace DirectConnect
183 } // namespace Aws
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:52
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::SetRemoveAllowedPrefixesToDirectConnectGateway
void SetRemoveAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:137
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::WithAssociationId
UpdateDirectConnectGatewayAssociationRequest & WithAssociationId(const char *value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:77
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::WithAddAllowedPrefixesToDirectConnectGateway
UpdateDirectConnectGatewayAssociationRequest & WithAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:103
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::AddAllowedPrefixesToDirectConnectGatewayHasBeenSet
bool AddAllowedPrefixesToDirectConnectGatewayHasBeenSet() const
Definition: UpdateDirectConnectGatewayAssociationRequest.h:88
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: UpdateDirectConnectGatewayAssociationRequest.h:47
Aws::DirectConnect::DirectConnectRequest
Definition: DirectConnectRequest.h:17
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::SetAssociationId
void SetAssociationId(const char *value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:62
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDirectConnectGatewayAssociationRequest.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DirectConnect_EXPORTS.h
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::WithAssociationId
UpdateDirectConnectGatewayAssociationRequest & WithAssociationId(Aws::String &&value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:72
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::UpdateDirectConnectGatewayAssociationRequest
UpdateDirectConnectGatewayAssociationRequest()
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::AddRemoveAllowedPrefixesToDirectConnectGateway
UpdateDirectConnectGatewayAssociationRequest & AddRemoveAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix &&value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:167
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::AddAddAllowedPrefixesToDirectConnectGateway
UpdateDirectConnectGatewayAssociationRequest & AddAddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix &&value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:118
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::WithRemoveAllowedPrefixesToDirectConnectGateway
UpdateDirectConnectGatewayAssociationRequest & WithRemoveAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:149
RouteFilterPrefix.h
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:57
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::WithAssociationId
UpdateDirectConnectGatewayAssociationRequest & WithAssociationId(const Aws::String &value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:67
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::RemoveAllowedPrefixesToDirectConnectGatewayHasBeenSet
bool RemoveAllowedPrefixesToDirectConnectGatewayHasBeenSet() const
Definition: UpdateDirectConnectGatewayAssociationRequest.h:131
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::WithAddAllowedPrefixesToDirectConnectGateway
UpdateDirectConnectGatewayAssociationRequest & WithAddAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:108
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: UpdateDirectConnectGatewayAssociationRequest.h:42
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::SetAddAllowedPrefixesToDirectConnectGateway
void SetAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:93
AWSString.h
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest
Definition: UpdateDirectConnectGatewayAssociationRequest.h:24
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::GetRemoveAllowedPrefixesToDirectConnectGateway
const Aws::Vector< RouteFilterPrefix > & GetRemoveAllowedPrefixesToDirectConnectGateway() const
Definition: UpdateDirectConnectGatewayAssociationRequest.h:125
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::WithRemoveAllowedPrefixesToDirectConnectGateway
UpdateDirectConnectGatewayAssociationRequest & WithRemoveAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:155
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::SetRemoveAllowedPrefixesToDirectConnectGateway
void SetRemoveAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:143
Aws::DirectConnect::Model::RouteFilterPrefix
Definition: RouteFilterPrefix.h:34
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::AddAddAllowedPrefixesToDirectConnectGateway
UpdateDirectConnectGatewayAssociationRequest & AddAddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix &value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::AddRemoveAllowedPrefixesToDirectConnectGateway
UpdateDirectConnectGatewayAssociationRequest & AddRemoveAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix &value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:161
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::SetAddAllowedPrefixesToDirectConnectGateway
void SetAddAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
Definition: UpdateDirectConnectGatewayAssociationRequest.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_DIRECTCONNECT_API
#define AWS_DIRECTCONNECT_API
Definition: DirectConnect_EXPORTS.h:28
Aws::DirectConnect::Model::UpdateDirectConnectGatewayAssociationRequest::GetAddAllowedPrefixesToDirectConnectGateway
const Aws::Vector< RouteFilterPrefix > & GetAddAllowedPrefixesToDirectConnectGateway() const
Definition: UpdateDirectConnectGatewayAssociationRequest.h:83
DirectConnectRequest.h