AWS SDK for C++  0.14.3
AWS SDK for C++
AddIpRoutesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 #include <aws/ds/model/IpRoute.h>
21 
22 namespace Aws
23 {
24 namespace DirectoryService
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
43 
47  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
48 
52  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
53 
57  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
58 
62  inline AddIpRoutesRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
63 
67  inline AddIpRoutesRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
68 
72  inline AddIpRoutesRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
73 
78  inline const Aws::Vector<IpRoute>& GetIpRoutes() const{ return m_ipRoutes; }
79 
84  inline void SetIpRoutes(const Aws::Vector<IpRoute>& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes = value; }
85 
90  inline void SetIpRoutes(Aws::Vector<IpRoute>&& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes = value; }
91 
96  inline AddIpRoutesRequest& WithIpRoutes(const Aws::Vector<IpRoute>& value) { SetIpRoutes(value); return *this;}
97 
102  inline AddIpRoutesRequest& WithIpRoutes(Aws::Vector<IpRoute>&& value) { SetIpRoutes(value); return *this;}
103 
108  inline AddIpRoutesRequest& AddIpRoutes(const IpRoute& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes.push_back(value); return *this; }
109 
114  inline AddIpRoutesRequest& AddIpRoutes(IpRoute&& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes.push_back(value); return *this; }
115 
143  inline bool GetUpdateSecurityGroupForDirectoryControllers() const{ return m_updateSecurityGroupForDirectoryControllers; }
144 
172  inline void SetUpdateSecurityGroupForDirectoryControllers(bool value) { m_updateSecurityGroupForDirectoryControllersHasBeenSet = true; m_updateSecurityGroupForDirectoryControllers = value; }
173 
201  inline AddIpRoutesRequest& WithUpdateSecurityGroupForDirectoryControllers(bool value) { SetUpdateSecurityGroupForDirectoryControllers(value); return *this;}
202 
203  private:
204  Aws::String m_directoryId;
205  bool m_directoryIdHasBeenSet;
206  Aws::Vector<IpRoute> m_ipRoutes;
207  bool m_ipRoutesHasBeenSet;
208  bool m_updateSecurityGroupForDirectoryControllers;
209  bool m_updateSecurityGroupForDirectoryControllersHasBeenSet;
210  };
211 
212 } // namespace Model
213 } // namespace DirectoryService
214 } // namespace Aws
#define AWS_DIRECTORYSERVICE_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const Aws::Vector< IpRoute > & GetIpRoutes() const
AddIpRoutesRequest & AddIpRoutes(IpRoute &&value)
AddIpRoutesRequest & WithUpdateSecurityGroupForDirectoryControllers(bool value)
AddIpRoutesRequest & WithDirectoryId(const Aws::String &value)
AddIpRoutesRequest & AddIpRoutes(const IpRoute &value)
AddIpRoutesRequest & WithDirectoryId(Aws::String &&value)
AddIpRoutesRequest & WithIpRoutes(const Aws::Vector< IpRoute > &value)
void SetIpRoutes(Aws::Vector< IpRoute > &&value)
void SetIpRoutes(const Aws::Vector< IpRoute > &value)
AddIpRoutesRequest & WithIpRoutes(Aws::Vector< IpRoute > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddIpRoutesRequest & WithDirectoryId(const char *value)
JSON (JavaScript Object Notation).