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

The network settings that DataSync Discovery uses to connect with your * on-premises storage system's management interface.

See Also:

AWS * API Reference

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

The domain name or IP address of your storage system's management * interface.

*/ inline const Aws::String& GetServerHostname() const{ return m_serverHostname; } /** *

The domain name or IP address of your storage system's management * interface.

*/ inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; } /** *

The domain name or IP address of your storage system's management * interface.

*/ inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; } /** *

The domain name or IP address of your storage system's management * interface.

*/ inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); } /** *

The domain name or IP address of your storage system's management * interface.

*/ inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); } /** *

The domain name or IP address of your storage system's management * interface.

*/ inline DiscoveryServerConfiguration& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;} /** *

The domain name or IP address of your storage system's management * interface.

*/ inline DiscoveryServerConfiguration& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;} /** *

The domain name or IP address of your storage system's management * interface.

*/ inline DiscoveryServerConfiguration& WithServerHostname(const char* value) { SetServerHostname(value); return *this;} /** *

The network port for accessing the storage system's management interface.

*/ inline int GetServerPort() const{ return m_serverPort; } /** *

The network port for accessing the storage system's management interface.

*/ inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; } /** *

The network port for accessing the storage system's management interface.

*/ inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; } /** *

The network port for accessing the storage system's management interface.

*/ inline DiscoveryServerConfiguration& WithServerPort(int value) { SetServerPort(value); return *this;} private: Aws::String m_serverHostname; bool m_serverHostnameHasBeenSet = false; int m_serverPort; bool m_serverPortHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws