AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HdfsNameNode.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataSync
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_DATASYNC_API HdfsNameNode() = default;
39 AWS_DATASYNC_API HdfsNameNode(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Aws::String& GetHostname() const { return m_hostname; }
52 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
53 template<typename HostnameT = Aws::String>
54 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
55 template<typename HostnameT = Aws::String>
56 HdfsNameNode& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
58
60
63 inline int GetPort() const { return m_port; }
64 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
65 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
66 inline HdfsNameNode& WithPort(int value) { SetPort(value); return *this;}
68 private:
69
70 Aws::String m_hostname;
71 bool m_hostnameHasBeenSet = false;
72
73 int m_port{0};
74 bool m_portHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace DataSync
79} // namespace Aws
AWS_DATASYNC_API HdfsNameNode()=default
AWS_DATASYNC_API HdfsNameNode & operator=(Aws::Utils::Json::JsonView jsonValue)
HdfsNameNode & WithPort(int value)
AWS_DATASYNC_API HdfsNameNode(Aws::Utils::Json::JsonView jsonValue)
HdfsNameNode & WithHostname(HostnameT &&value)
void SetHostname(HostnameT &&value)
const Aws::String & GetHostname() const
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue