AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DeleteUserRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Transfer {
15namespace Model {
16
20 public:
21 AWS_TRANSFER_API DeleteUserRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteUser"; }
28
29 AWS_TRANSFER_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetServerId() const { return m_serverId; }
39 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
40 template <typename ServerIdT = Aws::String>
41 void SetServerId(ServerIdT&& value) {
42 m_serverIdHasBeenSet = true;
43 m_serverId = std::forward<ServerIdT>(value);
44 }
45 template <typename ServerIdT = Aws::String>
46 DeleteUserRequest& WithServerId(ServerIdT&& value) {
47 SetServerId(std::forward<ServerIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetUserName() const { return m_userName; }
58 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
59 template <typename UserNameT = Aws::String>
60 void SetUserName(UserNameT&& value) {
61 m_userNameHasBeenSet = true;
62 m_userName = std::forward<UserNameT>(value);
63 }
64 template <typename UserNameT = Aws::String>
65 DeleteUserRequest& WithUserName(UserNameT&& value) {
66 SetUserName(std::forward<UserNameT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_serverId;
72
73 Aws::String m_userName;
74 bool m_serverIdHasBeenSet = false;
75 bool m_userNameHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Transfer
80} // namespace Aws
DeleteUserRequest & WithUserName(UserNameT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
DeleteUserRequest & WithServerId(ServerIdT &&value)
const Aws::String & GetUserName() const
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const Aws::String & GetServerId() const
AWS_TRANSFER_API DeleteUserRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String