AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
DisconnectUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ivschat/IvschatRequest.h>
9#include <aws/ivschat/Ivschat_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ivschat {
15namespace Model {
16
20 public:
21 AWS_IVSCHAT_API DisconnectUserRequest() = 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 "DisconnectUser"; }
28
29 AWS_IVSCHAT_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetRoomIdentifier() const { return m_roomIdentifier; }
37 inline bool RoomIdentifierHasBeenSet() const { return m_roomIdentifierHasBeenSet; }
38 template <typename RoomIdentifierT = Aws::String>
39 void SetRoomIdentifier(RoomIdentifierT&& value) {
40 m_roomIdentifierHasBeenSet = true;
41 m_roomIdentifier = std::forward<RoomIdentifierT>(value);
42 }
43 template <typename RoomIdentifierT = Aws::String>
44 DisconnectUserRequest& WithRoomIdentifier(RoomIdentifierT&& value) {
45 SetRoomIdentifier(std::forward<RoomIdentifierT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetUserId() const { return m_userId; }
55 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
56 template <typename UserIdT = Aws::String>
57 void SetUserId(UserIdT&& value) {
58 m_userIdHasBeenSet = true;
59 m_userId = std::forward<UserIdT>(value);
60 }
61 template <typename UserIdT = Aws::String>
63 SetUserId(std::forward<UserIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetReason() const { return m_reason; }
73 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
74 template <typename ReasonT = Aws::String>
75 void SetReason(ReasonT&& value) {
76 m_reasonHasBeenSet = true;
77 m_reason = std::forward<ReasonT>(value);
78 }
79 template <typename ReasonT = Aws::String>
81 SetReason(std::forward<ReasonT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_roomIdentifier;
87 bool m_roomIdentifierHasBeenSet = false;
88
89 Aws::String m_userId;
90 bool m_userIdHasBeenSet = false;
91
92 Aws::String m_reason;
93 bool m_reasonHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace ivschat
98} // namespace Aws
virtual const char * GetServiceRequestName() const override
DisconnectUserRequest & WithRoomIdentifier(RoomIdentifierT &&value)
void SetRoomIdentifier(RoomIdentifierT &&value)
DisconnectUserRequest & WithUserId(UserIdT &&value)
AWS_IVSCHAT_API DisconnectUserRequest()=default
DisconnectUserRequest & WithReason(ReasonT &&value)
AWS_IVSCHAT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String