/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The NameNode of the Hadoop Distributed File System (HDFS). The NameNode
* manages the file system's namespace. The NameNode performs operations such as
* opening, closing, and renaming files and directories. The NameNode contains the
* information to map blocks of data to the DataNodes.See Also:
* AWS
* API Reference
The hostname of the NameNode in the HDFS cluster. This value is the IP * address or Domain Name Service (DNS) name of the NameNode. An agent that's * installed on-premises uses this hostname to communicate with the NameNode in the * network.
*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *The hostname of the NameNode in the HDFS cluster. This value is the IP * address or Domain Name Service (DNS) name of the NameNode. An agent that's * installed on-premises uses this hostname to communicate with the NameNode in the * network.
*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *The hostname of the NameNode in the HDFS cluster. This value is the IP * address or Domain Name Service (DNS) name of the NameNode. An agent that's * installed on-premises uses this hostname to communicate with the NameNode in the * network.
*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *The hostname of the NameNode in the HDFS cluster. This value is the IP * address or Domain Name Service (DNS) name of the NameNode. An agent that's * installed on-premises uses this hostname to communicate with the NameNode in the * network.
*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *The hostname of the NameNode in the HDFS cluster. This value is the IP * address or Domain Name Service (DNS) name of the NameNode. An agent that's * installed on-premises uses this hostname to communicate with the NameNode in the * network.
*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *The hostname of the NameNode in the HDFS cluster. This value is the IP * address or Domain Name Service (DNS) name of the NameNode. An agent that's * installed on-premises uses this hostname to communicate with the NameNode in the * network.
*/ inline HdfsNameNode& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *The hostname of the NameNode in the HDFS cluster. This value is the IP * address or Domain Name Service (DNS) name of the NameNode. An agent that's * installed on-premises uses this hostname to communicate with the NameNode in the * network.
*/ inline HdfsNameNode& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *The hostname of the NameNode in the HDFS cluster. This value is the IP * address or Domain Name Service (DNS) name of the NameNode. An agent that's * installed on-premises uses this hostname to communicate with the NameNode in the * network.
*/ inline HdfsNameNode& WithHostname(const char* value) { SetHostname(value); return *this;} /** *The port that the NameNode uses to listen to client requests.
*/ inline int GetPort() const{ return m_port; } /** *The port that the NameNode uses to listen to client requests.
*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *The port that the NameNode uses to listen to client requests.
*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *The port that the NameNode uses to listen to client requests.
*/ inline HdfsNameNode& WithPort(int value) { SetPort(value); return *this;} private: Aws::String m_hostname; bool m_hostnameHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws