AWS SDK for C++  1.8.154
AWS SDK for C++
AddIpRoutesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/ds/model/IpRoute.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DirectoryService
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 "AddIpRoutes"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
43 
47  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
48 
52  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
53 
57  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
58 
62  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
63 
67  inline AddIpRoutesRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
68 
72  inline AddIpRoutesRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
73 
77  inline AddIpRoutesRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
78 
79 
84  inline const Aws::Vector<IpRoute>& GetIpRoutes() const{ return m_ipRoutes; }
85 
90  inline bool IpRoutesHasBeenSet() const { return m_ipRoutesHasBeenSet; }
91 
96  inline void SetIpRoutes(const Aws::Vector<IpRoute>& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes = value; }
97 
102  inline void SetIpRoutes(Aws::Vector<IpRoute>&& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes = std::move(value); }
103 
108  inline AddIpRoutesRequest& WithIpRoutes(const Aws::Vector<IpRoute>& value) { SetIpRoutes(value); return *this;}
109 
114  inline AddIpRoutesRequest& WithIpRoutes(Aws::Vector<IpRoute>&& value) { SetIpRoutes(std::move(value)); return *this;}
115 
120  inline AddIpRoutesRequest& AddIpRoutes(const IpRoute& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes.push_back(value); return *this; }
121 
126  inline AddIpRoutesRequest& AddIpRoutes(IpRoute&& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes.push_back(std::move(value)); return *this; }
127 
128 
156  inline bool GetUpdateSecurityGroupForDirectoryControllers() const{ return m_updateSecurityGroupForDirectoryControllers; }
157 
185  inline bool UpdateSecurityGroupForDirectoryControllersHasBeenSet() const { return m_updateSecurityGroupForDirectoryControllersHasBeenSet; }
186 
214  inline void SetUpdateSecurityGroupForDirectoryControllers(bool value) { m_updateSecurityGroupForDirectoryControllersHasBeenSet = true; m_updateSecurityGroupForDirectoryControllers = value; }
215 
243  inline AddIpRoutesRequest& WithUpdateSecurityGroupForDirectoryControllers(bool value) { SetUpdateSecurityGroupForDirectoryControllers(value); return *this;}
244 
245  private:
246 
247  Aws::String m_directoryId;
248  bool m_directoryIdHasBeenSet;
249 
250  Aws::Vector<IpRoute> m_ipRoutes;
251  bool m_ipRoutesHasBeenSet;
252 
253  bool m_updateSecurityGroupForDirectoryControllers;
254  bool m_updateSecurityGroupForDirectoryControllersHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace DirectoryService
259 } // namespace Aws
Aws::DirectoryService::Model::AddIpRoutesRequest::SetIpRoutes
void SetIpRoutes(const Aws::Vector< IpRoute > &value)
Definition: AddIpRoutesRequest.h:96
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::AddIpRoutesRequest::AddIpRoutesRequest
AddIpRoutesRequest()
Aws::DirectoryService::Model::AddIpRoutesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::AddIpRoutesRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: AddIpRoutesRequest.h:47
Aws::DirectoryService::Model::AddIpRoutesRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: AddIpRoutesRequest.h:57
IpRoute.h
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::IpRoute
Definition: IpRoute.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::AddIpRoutesRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: AddIpRoutesRequest.h:52
AWSVector.h
Aws::DirectoryService::Model::AddIpRoutesRequest::AddIpRoutes
AddIpRoutesRequest & AddIpRoutes(const IpRoute &value)
Definition: AddIpRoutesRequest.h:120
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::AddIpRoutesRequest::WithDirectoryId
AddIpRoutesRequest & WithDirectoryId(const Aws::String &value)
Definition: AddIpRoutesRequest.h:67
Aws::DirectoryService::Model::AddIpRoutesRequest::WithIpRoutes
AddIpRoutesRequest & WithIpRoutes(const Aws::Vector< IpRoute > &value)
Definition: AddIpRoutesRequest.h:108
Aws::DirectoryService::Model::AddIpRoutesRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: AddIpRoutesRequest.h:62
Aws::DirectoryService::Model::AddIpRoutesRequest::WithIpRoutes
AddIpRoutesRequest & WithIpRoutes(Aws::Vector< IpRoute > &&value)
Definition: AddIpRoutesRequest.h:114
Aws::DirectoryService::Model::AddIpRoutesRequest::WithUpdateSecurityGroupForDirectoryControllers
AddIpRoutesRequest & WithUpdateSecurityGroupForDirectoryControllers(bool value)
Definition: AddIpRoutesRequest.h:243
Aws::DirectoryService::Model::AddIpRoutesRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: AddIpRoutesRequest.h:42
Aws::DirectoryService::Model::AddIpRoutesRequest::GetIpRoutes
const Aws::Vector< IpRoute > & GetIpRoutes() const
Definition: AddIpRoutesRequest.h:84
AWSString.h
Aws::DirectoryService::Model::AddIpRoutesRequest::WithDirectoryId
AddIpRoutesRequest & WithDirectoryId(const char *value)
Definition: AddIpRoutesRequest.h:77
Aws::DirectoryService::Model::AddIpRoutesRequest::UpdateSecurityGroupForDirectoryControllersHasBeenSet
bool UpdateSecurityGroupForDirectoryControllersHasBeenSet() const
Definition: AddIpRoutesRequest.h:185
Aws::DirectoryService::Model::AddIpRoutesRequest::GetUpdateSecurityGroupForDirectoryControllers
bool GetUpdateSecurityGroupForDirectoryControllers() const
Definition: AddIpRoutesRequest.h:156
Aws::DirectoryService::Model::AddIpRoutesRequest
Definition: AddIpRoutesRequest.h:24
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::AddIpRoutesRequest::SetIpRoutes
void SetIpRoutes(Aws::Vector< IpRoute > &&value)
Definition: AddIpRoutesRequest.h:102
Aws::DirectoryService::Model::AddIpRoutesRequest::AddIpRoutes
AddIpRoutesRequest & AddIpRoutes(IpRoute &&value)
Definition: AddIpRoutesRequest.h:126
Aws::DirectoryService::Model::AddIpRoutesRequest::IpRoutesHasBeenSet
bool IpRoutesHasBeenSet() const
Definition: AddIpRoutesRequest.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::AddIpRoutesRequest::SetUpdateSecurityGroupForDirectoryControllers
void SetUpdateSecurityGroupForDirectoryControllers(bool value)
Definition: AddIpRoutesRequest.h:214
Aws::DirectoryService::Model::AddIpRoutesRequest::WithDirectoryId
AddIpRoutesRequest & WithDirectoryId(Aws::String &&value)
Definition: AddIpRoutesRequest.h:72
Aws::DirectoryService::Model::AddIpRoutesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddIpRoutesRequest.h:32
Aws::DirectoryService::Model::AddIpRoutesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DirectoryServiceRequest.h