AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
UserDetails.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
29 public:
30 AWS_TRANSFER_API UserDetails() = default;
31 AWS_TRANSFER_API UserDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TRANSFER_API UserDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetUserName() const { return m_userName; }
41 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
42 template <typename UserNameT = Aws::String>
43 void SetUserName(UserNameT&& value) {
44 m_userNameHasBeenSet = true;
45 m_userName = std::forward<UserNameT>(value);
46 }
47 template <typename UserNameT = Aws::String>
48 UserDetails& WithUserName(UserNameT&& value) {
49 SetUserName(std::forward<UserNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetServerId() const { return m_serverId; }
59 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
60 template <typename ServerIdT = Aws::String>
61 void SetServerId(ServerIdT&& value) {
62 m_serverIdHasBeenSet = true;
63 m_serverId = std::forward<ServerIdT>(value);
64 }
65 template <typename ServerIdT = Aws::String>
66 UserDetails& WithServerId(ServerIdT&& value) {
67 SetServerId(std::forward<ServerIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetSessionId() const { return m_sessionId; }
78 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
79 template <typename SessionIdT = Aws::String>
80 void SetSessionId(SessionIdT&& value) {
81 m_sessionIdHasBeenSet = true;
82 m_sessionId = std::forward<SessionIdT>(value);
83 }
84 template <typename SessionIdT = Aws::String>
85 UserDetails& WithSessionId(SessionIdT&& value) {
86 SetSessionId(std::forward<SessionIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_userName;
92
93 Aws::String m_serverId;
94
95 Aws::String m_sessionId;
96 bool m_userNameHasBeenSet = false;
97 bool m_serverIdHasBeenSet = false;
98 bool m_sessionIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Transfer
103} // namespace Aws
AWS_TRANSFER_API UserDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetServerId() const
Definition UserDetails.h:58
UserDetails & WithSessionId(SessionIdT &&value)
Definition UserDetails.h:85
AWS_TRANSFER_API UserDetails()=default
UserDetails & WithServerId(ServerIdT &&value)
Definition UserDetails.h:66
void SetSessionId(SessionIdT &&value)
Definition UserDetails.h:80
void SetUserName(UserNameT &&value)
Definition UserDetails.h:43
UserDetails & WithUserName(UserNameT &&value)
Definition UserDetails.h:48
const Aws::String & GetUserName() const
Definition UserDetails.h:40
AWS_TRANSFER_API UserDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSessionId() const
Definition UserDetails.h:77
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServerId(ServerIdT &&value)
Definition UserDetails.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue