/** * 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 AppMesh { namespace Model { /** *

An object that represents the DNS service discovery information for your * virtual node.

See Also:

AWS * API Reference

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

Specifies the DNS service discovery hostname for the virtual node.

*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *

Specifies the DNS service discovery hostname for the virtual node.

*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *

Specifies the DNS service discovery hostname for the virtual node.

*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *

Specifies the DNS service discovery hostname for the virtual node.

*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *

Specifies the DNS service discovery hostname for the virtual node.

*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *

Specifies the DNS service discovery hostname for the virtual node.

*/ inline DnsServiceDiscovery& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *

Specifies the DNS service discovery hostname for the virtual node.

*/ inline DnsServiceDiscovery& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *

Specifies the DNS service discovery hostname for the virtual node.

*/ inline DnsServiceDiscovery& WithHostname(const char* value) { SetHostname(value); return *this;} private: Aws::String m_hostname; bool m_hostnameHasBeenSet; }; } // namespace Model } // namespace AppMesh } // namespace Aws