AWS SDK for C++  1.8.154
AWS SDK for C++
CreateConditionalForwarderRequest.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 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateConditionalForwarder"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
48  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
49 
54  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
55 
60  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
61 
66  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
67 
72  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
73 
78  inline CreateConditionalForwarderRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
79 
84  inline CreateConditionalForwarderRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
85 
90  inline CreateConditionalForwarderRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
91 
92 
97  inline const Aws::String& GetRemoteDomainName() const{ return m_remoteDomainName; }
98 
103  inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; }
104 
109  inline void SetRemoteDomainName(const Aws::String& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
110 
115  inline void SetRemoteDomainName(Aws::String&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = std::move(value); }
116 
121  inline void SetRemoteDomainName(const char* value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName.assign(value); }
122 
127  inline CreateConditionalForwarderRequest& WithRemoteDomainName(const Aws::String& value) { SetRemoteDomainName(value); return *this;}
128 
133  inline CreateConditionalForwarderRequest& WithRemoteDomainName(Aws::String&& value) { SetRemoteDomainName(std::move(value)); return *this;}
134 
139  inline CreateConditionalForwarderRequest& WithRemoteDomainName(const char* value) { SetRemoteDomainName(value); return *this;}
140 
141 
146  inline const Aws::Vector<Aws::String>& GetDnsIpAddrs() const{ return m_dnsIpAddrs; }
147 
152  inline bool DnsIpAddrsHasBeenSet() const { return m_dnsIpAddrsHasBeenSet; }
153 
158  inline void SetDnsIpAddrs(const Aws::Vector<Aws::String>& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs = value; }
159 
164  inline void SetDnsIpAddrs(Aws::Vector<Aws::String>&& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs = std::move(value); }
165 
170  inline CreateConditionalForwarderRequest& WithDnsIpAddrs(const Aws::Vector<Aws::String>& value) { SetDnsIpAddrs(value); return *this;}
171 
176  inline CreateConditionalForwarderRequest& WithDnsIpAddrs(Aws::Vector<Aws::String>&& value) { SetDnsIpAddrs(std::move(value)); return *this;}
177 
182  inline CreateConditionalForwarderRequest& AddDnsIpAddrs(const Aws::String& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(value); return *this; }
183 
188  inline CreateConditionalForwarderRequest& AddDnsIpAddrs(Aws::String&& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(std::move(value)); return *this; }
189 
194  inline CreateConditionalForwarderRequest& AddDnsIpAddrs(const char* value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(value); return *this; }
195 
196  private:
197 
198  Aws::String m_directoryId;
199  bool m_directoryIdHasBeenSet;
200 
201  Aws::String m_remoteDomainName;
202  bool m_remoteDomainNameHasBeenSet;
203 
204  Aws::Vector<Aws::String> m_dnsIpAddrs;
205  bool m_dnsIpAddrsHasBeenSet;
206  };
207 
208 } // namespace Model
209 } // namespace DirectoryService
210 } // namespace Aws
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::SetRemoteDomainName
void SetRemoteDomainName(const char *value)
Definition: CreateConditionalForwarderRequest.h:121
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::CreateConditionalForwarderRequest
CreateConditionalForwarderRequest()
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::CreateConditionalForwarderRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateConditionalForwarderRequest.h:60
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::RemoteDomainNameHasBeenSet
bool RemoteDomainNameHasBeenSet() const
Definition: CreateConditionalForwarderRequest.h:103
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::WithDirectoryId
CreateConditionalForwarderRequest & WithDirectoryId(const Aws::String &value)
Definition: CreateConditionalForwarderRequest.h:78
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::WithDnsIpAddrs
CreateConditionalForwarderRequest & WithDnsIpAddrs(const Aws::Vector< Aws::String > &value)
Definition: CreateConditionalForwarderRequest.h:170
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::SetRemoteDomainName
void SetRemoteDomainName(Aws::String &&value)
Definition: CreateConditionalForwarderRequest.h:115
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::WithDirectoryId
CreateConditionalForwarderRequest & WithDirectoryId(const char *value)
Definition: CreateConditionalForwarderRequest.h:90
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::SetRemoteDomainName
void SetRemoteDomainName(const Aws::String &value)
Definition: CreateConditionalForwarderRequest.h:109
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateConditionalForwarderRequest.h:48
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::AddDnsIpAddrs
CreateConditionalForwarderRequest & AddDnsIpAddrs(Aws::String &&value)
Definition: CreateConditionalForwarderRequest.h:188
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::SetDnsIpAddrs
void SetDnsIpAddrs(Aws::Vector< Aws::String > &&value)
Definition: CreateConditionalForwarderRequest.h:164
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::WithDnsIpAddrs
CreateConditionalForwarderRequest & WithDnsIpAddrs(Aws::Vector< Aws::String > &&value)
Definition: CreateConditionalForwarderRequest.h:176
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::WithRemoteDomainName
CreateConditionalForwarderRequest & WithRemoteDomainName(const Aws::String &value)
Definition: CreateConditionalForwarderRequest.h:127
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateConditionalForwarderRequest.h:66
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::AddDnsIpAddrs
CreateConditionalForwarderRequest & AddDnsIpAddrs(const char *value)
Definition: CreateConditionalForwarderRequest.h:194
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: CreateConditionalForwarderRequest.h:54
AWSString.h
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::WithRemoteDomainName
CreateConditionalForwarderRequest & WithRemoteDomainName(const char *value)
Definition: CreateConditionalForwarderRequest.h:139
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateConditionalForwarderRequest.h:72
Aws::DirectoryService::Model::CreateConditionalForwarderRequest
Definition: CreateConditionalForwarderRequest.h:29
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::GetRemoteDomainName
const Aws::String & GetRemoteDomainName() const
Definition: CreateConditionalForwarderRequest.h:97
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::DnsIpAddrsHasBeenSet
bool DnsIpAddrsHasBeenSet() const
Definition: CreateConditionalForwarderRequest.h:152
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateConditionalForwarderRequest.h:37
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::SetDnsIpAddrs
void SetDnsIpAddrs(const Aws::Vector< Aws::String > &value)
Definition: CreateConditionalForwarderRequest.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::WithRemoteDomainName
CreateConditionalForwarderRequest & WithRemoteDomainName(Aws::String &&value)
Definition: CreateConditionalForwarderRequest.h:133
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::GetDnsIpAddrs
const Aws::Vector< Aws::String > & GetDnsIpAddrs() const
Definition: CreateConditionalForwarderRequest.h:146
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::WithDirectoryId
CreateConditionalForwarderRequest & WithDirectoryId(Aws::String &&value)
Definition: CreateConditionalForwarderRequest.h:84
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DirectoryServiceRequest.h
Aws::DirectoryService::Model::CreateConditionalForwarderRequest::AddDnsIpAddrs
CreateConditionalForwarderRequest & AddDnsIpAddrs(const Aws::String &value)
Definition: CreateConditionalForwarderRequest.h:182