AWS SDK for C++  1.8.154
AWS SDK for C++
RemoveIpRoutesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DirectoryService
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "RemoveIpRoutes"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
43 
48  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 
54  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
55 
60  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
61 
66  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
67 
72  inline RemoveIpRoutesRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
73 
78  inline RemoveIpRoutesRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
79 
84  inline RemoveIpRoutesRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
85 
86 
90  inline const Aws::Vector<Aws::String>& GetCidrIps() const{ return m_cidrIps; }
91 
95  inline bool CidrIpsHasBeenSet() const { return m_cidrIpsHasBeenSet; }
96 
100  inline void SetCidrIps(const Aws::Vector<Aws::String>& value) { m_cidrIpsHasBeenSet = true; m_cidrIps = value; }
101 
105  inline void SetCidrIps(Aws::Vector<Aws::String>&& value) { m_cidrIpsHasBeenSet = true; m_cidrIps = std::move(value); }
106 
110  inline RemoveIpRoutesRequest& WithCidrIps(const Aws::Vector<Aws::String>& value) { SetCidrIps(value); return *this;}
111 
115  inline RemoveIpRoutesRequest& WithCidrIps(Aws::Vector<Aws::String>&& value) { SetCidrIps(std::move(value)); return *this;}
116 
120  inline RemoveIpRoutesRequest& AddCidrIps(const Aws::String& value) { m_cidrIpsHasBeenSet = true; m_cidrIps.push_back(value); return *this; }
121 
125  inline RemoveIpRoutesRequest& AddCidrIps(Aws::String&& value) { m_cidrIpsHasBeenSet = true; m_cidrIps.push_back(std::move(value)); return *this; }
126 
130  inline RemoveIpRoutesRequest& AddCidrIps(const char* value) { m_cidrIpsHasBeenSet = true; m_cidrIps.push_back(value); return *this; }
131 
132  private:
133 
134  Aws::String m_directoryId;
135  bool m_directoryIdHasBeenSet;
136 
137  Aws::Vector<Aws::String> m_cidrIps;
138  bool m_cidrIpsHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace DirectoryService
143 } // namespace Aws
Aws::DirectoryService::Model::RemoveIpRoutesRequest::GetCidrIps
const Aws::Vector< Aws::String > & GetCidrIps() const
Definition: RemoveIpRoutesRequest.h:90
Aws::DirectoryService::Model::RemoveIpRoutesRequest::RemoveIpRoutesRequest
RemoveIpRoutesRequest()
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::RemoveIpRoutesRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: RemoveIpRoutesRequest.h:42
Aws::DirectoryService::Model::RemoveIpRoutesRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: RemoveIpRoutesRequest.h:60
Aws::DirectoryService::Model::RemoveIpRoutesRequest::SetCidrIps
void SetCidrIps(const Aws::Vector< Aws::String > &value)
Definition: RemoveIpRoutesRequest.h:100
Aws::DirectoryService::Model::RemoveIpRoutesRequest::WithCidrIps
RemoveIpRoutesRequest & WithCidrIps(Aws::Vector< Aws::String > &&value)
Definition: RemoveIpRoutesRequest.h:115
Aws::DirectoryService::Model::RemoveIpRoutesRequest::AddCidrIps
RemoveIpRoutesRequest & AddCidrIps(const char *value)
Definition: RemoveIpRoutesRequest.h:130
Aws::DirectoryService::Model::RemoveIpRoutesRequest::WithDirectoryId
RemoveIpRoutesRequest & WithDirectoryId(Aws::String &&value)
Definition: RemoveIpRoutesRequest.h:78
Aws::DirectoryService::Model::RemoveIpRoutesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::RemoveIpRoutesRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: RemoveIpRoutesRequest.h:48
Aws::DirectoryService::Model::RemoveIpRoutesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::RemoveIpRoutesRequest::WithCidrIps
RemoveIpRoutesRequest & WithCidrIps(const Aws::Vector< Aws::String > &value)
Definition: RemoveIpRoutesRequest.h:110
Aws::DirectoryService::Model::RemoveIpRoutesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveIpRoutesRequest.h:31
Aws::DirectoryService::Model::RemoveIpRoutesRequest
Definition: RemoveIpRoutesRequest.h:23
Aws::DirectoryService::Model::RemoveIpRoutesRequest::WithDirectoryId
RemoveIpRoutesRequest & WithDirectoryId(const Aws::String &value)
Definition: RemoveIpRoutesRequest.h:72
AWSString.h
Aws::DirectoryService::Model::RemoveIpRoutesRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: RemoveIpRoutesRequest.h:54
Aws::DirectoryService::Model::RemoveIpRoutesRequest::CidrIpsHasBeenSet
bool CidrIpsHasBeenSet() const
Definition: RemoveIpRoutesRequest.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::RemoveIpRoutesRequest::AddCidrIps
RemoveIpRoutesRequest & AddCidrIps(const Aws::String &value)
Definition: RemoveIpRoutesRequest.h:120
Aws::DirectoryService::Model::RemoveIpRoutesRequest::SetCidrIps
void SetCidrIps(Aws::Vector< Aws::String > &&value)
Definition: RemoveIpRoutesRequest.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::RemoveIpRoutesRequest::AddCidrIps
RemoveIpRoutesRequest & AddCidrIps(Aws::String &&value)
Definition: RemoveIpRoutesRequest.h:125
Aws::DirectoryService::Model::RemoveIpRoutesRequest::WithDirectoryId
RemoveIpRoutesRequest & WithDirectoryId(const char *value)
Definition: RemoveIpRoutesRequest.h:84
DirectoryServiceRequest.h
Aws::DirectoryService::Model::RemoveIpRoutesRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: RemoveIpRoutesRequest.h:66