/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace finspace { namespace Model { /** *

A list of DNS server name and server IP. This is used to set up Route-53 * outbound resolvers.

See Also:

AWS * API Reference

*/ class CustomDNSServer { public: AWS_FINSPACE_API CustomDNSServer(); AWS_FINSPACE_API CustomDNSServer(Aws::Utils::Json::JsonView jsonValue); AWS_FINSPACE_API CustomDNSServer& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the DNS server.

*/ inline const Aws::String& GetCustomDNSServerName() const{ return m_customDNSServerName; } /** *

The name of the DNS server.

*/ inline bool CustomDNSServerNameHasBeenSet() const { return m_customDNSServerNameHasBeenSet; } /** *

The name of the DNS server.

*/ inline void SetCustomDNSServerName(const Aws::String& value) { m_customDNSServerNameHasBeenSet = true; m_customDNSServerName = value; } /** *

The name of the DNS server.

*/ inline void SetCustomDNSServerName(Aws::String&& value) { m_customDNSServerNameHasBeenSet = true; m_customDNSServerName = std::move(value); } /** *

The name of the DNS server.

*/ inline void SetCustomDNSServerName(const char* value) { m_customDNSServerNameHasBeenSet = true; m_customDNSServerName.assign(value); } /** *

The name of the DNS server.

*/ inline CustomDNSServer& WithCustomDNSServerName(const Aws::String& value) { SetCustomDNSServerName(value); return *this;} /** *

The name of the DNS server.

*/ inline CustomDNSServer& WithCustomDNSServerName(Aws::String&& value) { SetCustomDNSServerName(std::move(value)); return *this;} /** *

The name of the DNS server.

*/ inline CustomDNSServer& WithCustomDNSServerName(const char* value) { SetCustomDNSServerName(value); return *this;} /** *

The IP address of the DNS server.

*/ inline const Aws::String& GetCustomDNSServerIP() const{ return m_customDNSServerIP; } /** *

The IP address of the DNS server.

*/ inline bool CustomDNSServerIPHasBeenSet() const { return m_customDNSServerIPHasBeenSet; } /** *

The IP address of the DNS server.

*/ inline void SetCustomDNSServerIP(const Aws::String& value) { m_customDNSServerIPHasBeenSet = true; m_customDNSServerIP = value; } /** *

The IP address of the DNS server.

*/ inline void SetCustomDNSServerIP(Aws::String&& value) { m_customDNSServerIPHasBeenSet = true; m_customDNSServerIP = std::move(value); } /** *

The IP address of the DNS server.

*/ inline void SetCustomDNSServerIP(const char* value) { m_customDNSServerIPHasBeenSet = true; m_customDNSServerIP.assign(value); } /** *

The IP address of the DNS server.

*/ inline CustomDNSServer& WithCustomDNSServerIP(const Aws::String& value) { SetCustomDNSServerIP(value); return *this;} /** *

The IP address of the DNS server.

*/ inline CustomDNSServer& WithCustomDNSServerIP(Aws::String&& value) { SetCustomDNSServerIP(std::move(value)); return *this;} /** *

The IP address of the DNS server.

*/ inline CustomDNSServer& WithCustomDNSServerIP(const char* value) { SetCustomDNSServerIP(value); return *this;} private: Aws::String m_customDNSServerName; bool m_customDNSServerNameHasBeenSet = false; Aws::String m_customDNSServerIP; bool m_customDNSServerIPHasBeenSet = false; }; } // namespace Model } // namespace finspace } // namespace Aws