AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
HdfsNameNode.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/datasync/DataSync_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace DataSync {
20namespace Model {
21
32 public:
33 AWS_DATASYNC_API HdfsNameNode() = default;
34 AWS_DATASYNC_API HdfsNameNode(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_DATASYNC_API HdfsNameNode& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_DATASYNC_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 int64_t GetPort() const { return m_port; }
64 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
65 inline void SetPort(int64_t value) {
66 m_portHasBeenSet = true;
67 m_port = value;
68 }
69 inline HdfsNameNode& WithPort(int64_t value) {
70 SetPort(value);
71 return *this;
72 }
74 private:
75 Aws::String m_hostname;
76
77 int64_t m_port{0};
78 bool m_hostnameHasBeenSet = false;
79 bool m_portHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace DataSync
84} // namespace Aws
HdfsNameNode & WithPort(int64_t value)
AWS_DATASYNC_API HdfsNameNode()=default
HdfsNameNode & WithHostname(HostnameT &&value)
void SetHostname(HostnameT &&value)
AWS_DATASYNC_API HdfsNameNode(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetHostname() const
AWS_DATASYNC_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_DATASYNC_API HdfsNameNode & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String