AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 Transfer
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_TRANSFER_API UserDetails() = default;
36 AWS_TRANSFER_API UserDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSFER_API UserDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetUserName() const { return m_userName; }
47 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
48 template<typename UserNameT = Aws::String>
49 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
50 template<typename UserNameT = Aws::String>
51 UserDetails& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
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) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
62 template<typename ServerIdT = Aws::String>
63 UserDetails& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
65
67
71 inline const Aws::String& GetSessionId() const { return m_sessionId; }
72 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
73 template<typename SessionIdT = Aws::String>
74 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
75 template<typename SessionIdT = Aws::String>
76 UserDetails& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
78 private:
79
80 Aws::String m_userName;
81 bool m_userNameHasBeenSet = false;
82
83 Aws::String m_serverId;
84 bool m_serverIdHasBeenSet = false;
85
86 Aws::String m_sessionId;
87 bool m_sessionIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Transfer
92} // 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:76
AWS_TRANSFER_API UserDetails()=default
UserDetails & WithServerId(ServerIdT &&value)
Definition UserDetails.h:63
void SetSessionId(SessionIdT &&value)
Definition UserDetails.h:74
void SetUserName(UserNameT &&value)
Definition UserDetails.h:49
UserDetails & WithUserName(UserNameT &&value)
Definition UserDetails.h:51
const Aws::String & GetUserName() const
Definition UserDetails.h:46
AWS_TRANSFER_API UserDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSessionId() const
Definition UserDetails.h:71
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