AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateConditionalForwarderRequest.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectoryService
16{
17namespace Model
18{
19
28 {
29 public:
30 AWS_DIRECTORYSERVICE_API CreateConditionalForwarderRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateConditionalForwarder"; }
37
38 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
39
40 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
48 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
49 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
50 template<typename DirectoryIdT = Aws::String>
51 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
52 template<typename DirectoryIdT = Aws::String>
53 CreateConditionalForwarderRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetRemoteDomainName() const { return m_remoteDomainName; }
62 inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; }
63 template<typename RemoteDomainNameT = Aws::String>
64 void SetRemoteDomainName(RemoteDomainNameT&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = std::forward<RemoteDomainNameT>(value); }
65 template<typename RemoteDomainNameT = Aws::String>
66 CreateConditionalForwarderRequest& WithRemoteDomainName(RemoteDomainNameT&& value) { SetRemoteDomainName(std::forward<RemoteDomainNameT>(value)); return *this;}
68
70
74 inline const Aws::Vector<Aws::String>& GetDnsIpAddrs() const { return m_dnsIpAddrs; }
75 inline bool DnsIpAddrsHasBeenSet() const { return m_dnsIpAddrsHasBeenSet; }
76 template<typename DnsIpAddrsT = Aws::Vector<Aws::String>>
77 void SetDnsIpAddrs(DnsIpAddrsT&& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs = std::forward<DnsIpAddrsT>(value); }
78 template<typename DnsIpAddrsT = Aws::Vector<Aws::String>>
79 CreateConditionalForwarderRequest& WithDnsIpAddrs(DnsIpAddrsT&& value) { SetDnsIpAddrs(std::forward<DnsIpAddrsT>(value)); return *this;}
80 template<typename DnsIpAddrsT = Aws::String>
81 CreateConditionalForwarderRequest& AddDnsIpAddrs(DnsIpAddrsT&& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.emplace_back(std::forward<DnsIpAddrsT>(value)); return *this; }
83 private:
84
85 Aws::String m_directoryId;
86 bool m_directoryIdHasBeenSet = false;
87
88 Aws::String m_remoteDomainName;
89 bool m_remoteDomainNameHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_dnsIpAddrs;
92 bool m_dnsIpAddrsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace DirectoryService
97} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateConditionalForwarderRequest & WithDnsIpAddrs(DnsIpAddrsT &&value)
CreateConditionalForwarderRequest & AddDnsIpAddrs(DnsIpAddrsT &&value)
CreateConditionalForwarderRequest & WithDirectoryId(DirectoryIdT &&value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API CreateConditionalForwarderRequest()=default
CreateConditionalForwarderRequest & WithRemoteDomainName(RemoteDomainNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector