AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
HdfsNameNode.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datasync/DataSync_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataSync {
20namespace Model {
21
32 public:
33 AWS_DATASYNC_API HdfsNameNode() = default;
34 AWS_DATASYNC_API HdfsNameNode(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::String& GetHostname() const { return m_hostname; }
46 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
47 template <typename HostnameT = Aws::String>
48 void SetHostname(HostnameT&& value) {
49 m_hostnameHasBeenSet = true;
50 m_hostname = std::forward<HostnameT>(value);
51 }
52 template <typename HostnameT = Aws::String>
53 HdfsNameNode& WithHostname(HostnameT&& value) {
54 SetHostname(std::forward<HostnameT>(value));
55 return *this;
56 }
58
60
63 inline int GetPort() const { return m_port; }
64 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
65 inline void SetPort(int value) {
66 m_portHasBeenSet = true;
67 m_port = value;
68 }
69 inline HdfsNameNode& WithPort(int value) {
70 SetPort(value);
71 return *this;
72 }
74 private:
75 Aws::String m_hostname;
76
77 int m_port{0};
78 bool m_hostnameHasBeenSet = false;
79 bool m_portHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace DataSync
84} // 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