AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
SftpPortWithOptions.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/CommunicationMode.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Transfer {
20namespace Model {
21
32 public:
33 AWS_TRANSFER_API SftpPortWithOptions() = default;
36 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline int GetSftpPort() const { return m_sftpPort; }
45 inline bool SftpPortHasBeenSet() const { return m_sftpPortHasBeenSet; }
46 inline void SetSftpPort(int value) {
47 m_sftpPortHasBeenSet = true;
48 m_sftpPort = value;
49 }
50 inline SftpPortWithOptions& WithSftpPort(int value) {
51 SetSftpPort(value);
52 return *this;
53 }
55
57
64 inline CommunicationMode GetCommunicationMode() const { return m_communicationMode; }
65 inline bool CommunicationModeHasBeenSet() const { return m_communicationModeHasBeenSet; }
67 m_communicationModeHasBeenSet = true;
68 m_communicationMode = value;
69 }
72 return *this;
73 }
75 private:
76 int m_sftpPort{0};
77
79 bool m_sftpPortHasBeenSet = false;
80 bool m_communicationModeHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Transfer
85} // namespace Aws
AWS_TRANSFER_API SftpPortWithOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API SftpPortWithOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCommunicationMode(CommunicationMode value)
SftpPortWithOptions & WithSftpPort(int value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSFER_API SftpPortWithOptions()=default
SftpPortWithOptions & WithCommunicationMode(CommunicationMode value)
Aws::Utils::Json::JsonValue JsonValue