/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DirectoryService { namespace Model { /** *

Updates a conditional forwarder.

See Also:

AWS * API Reference

*/ class UpdateConditionalForwarderRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API UpdateConditionalForwarderRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateConditionalForwarder"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The directory ID of the Amazon Web Services directory for which to update the * conditional forwarder.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The directory ID of the Amazon Web Services directory for which to update the * conditional forwarder.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The directory ID of the Amazon Web Services directory for which to update the * conditional forwarder.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The directory ID of the Amazon Web Services directory for which to update the * conditional forwarder.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The directory ID of the Amazon Web Services directory for which to update the * conditional forwarder.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The directory ID of the Amazon Web Services directory for which to update the * conditional forwarder.

*/ inline UpdateConditionalForwarderRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The directory ID of the Amazon Web Services directory for which to update the * conditional forwarder.

*/ inline UpdateConditionalForwarderRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The directory ID of the Amazon Web Services directory for which to update the * conditional forwarder.

*/ inline UpdateConditionalForwarderRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

The fully qualified domain name (FQDN) of the remote domain with which you * will set up a trust relationship.

*/ inline const Aws::String& GetRemoteDomainName() const{ return m_remoteDomainName; } /** *

The fully qualified domain name (FQDN) of the remote domain with which you * will set up a trust relationship.

*/ inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; } /** *

The fully qualified domain name (FQDN) of the remote domain with which you * will set up a trust relationship.

*/ inline void SetRemoteDomainName(const Aws::String& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; } /** *

The fully qualified domain name (FQDN) of the remote domain with which you * will set up a trust relationship.

*/ inline void SetRemoteDomainName(Aws::String&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = std::move(value); } /** *

The fully qualified domain name (FQDN) of the remote domain with which you * will set up a trust relationship.

*/ inline void SetRemoteDomainName(const char* value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName.assign(value); } /** *

The fully qualified domain name (FQDN) of the remote domain with which you * will set up a trust relationship.

*/ inline UpdateConditionalForwarderRequest& WithRemoteDomainName(const Aws::String& value) { SetRemoteDomainName(value); return *this;} /** *

The fully qualified domain name (FQDN) of the remote domain with which you * will set up a trust relationship.

*/ inline UpdateConditionalForwarderRequest& WithRemoteDomainName(Aws::String&& value) { SetRemoteDomainName(std::move(value)); return *this;} /** *

The fully qualified domain name (FQDN) of the remote domain with which you * will set up a trust relationship.

*/ inline UpdateConditionalForwarderRequest& WithRemoteDomainName(const char* value) { SetRemoteDomainName(value); return *this;} /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline const Aws::Vector& GetDnsIpAddrs() const{ return m_dnsIpAddrs; } /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline bool DnsIpAddrsHasBeenSet() const { return m_dnsIpAddrsHasBeenSet; } /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline void SetDnsIpAddrs(const Aws::Vector& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs = value; } /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline void SetDnsIpAddrs(Aws::Vector&& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs = std::move(value); } /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline UpdateConditionalForwarderRequest& WithDnsIpAddrs(const Aws::Vector& value) { SetDnsIpAddrs(value); return *this;} /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline UpdateConditionalForwarderRequest& WithDnsIpAddrs(Aws::Vector&& value) { SetDnsIpAddrs(std::move(value)); return *this;} /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline UpdateConditionalForwarderRequest& AddDnsIpAddrs(const Aws::String& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(value); return *this; } /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline UpdateConditionalForwarderRequest& AddDnsIpAddrs(Aws::String&& value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(std::move(value)); return *this; } /** *

The updated IP addresses of the remote DNS server associated with the * conditional forwarder.

*/ inline UpdateConditionalForwarderRequest& AddDnsIpAddrs(const char* value) { m_dnsIpAddrsHasBeenSet = true; m_dnsIpAddrs.push_back(value); return *this; } private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::String m_remoteDomainName; bool m_remoteDomainNameHasBeenSet = false; Aws::Vector m_dnsIpAddrs; bool m_dnsIpAddrsHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws