AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DisconnectUserRequest.h
1
6#pragma once
7#include <aws/ivschat/Ivschat_EXPORTS.h>
8#include <aws/ivschat/IvschatRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ivschat
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_IVSCHAT_API DisconnectUserRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DisconnectUser"; }
31
32 AWS_IVSCHAT_API Aws::String SerializePayload() const override;
33
34
36
40 inline const Aws::String& GetRoomIdentifier() const { return m_roomIdentifier; }
41 inline bool RoomIdentifierHasBeenSet() const { return m_roomIdentifierHasBeenSet; }
42 template<typename RoomIdentifierT = Aws::String>
43 void SetRoomIdentifier(RoomIdentifierT&& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = std::forward<RoomIdentifierT>(value); }
44 template<typename RoomIdentifierT = Aws::String>
45 DisconnectUserRequest& WithRoomIdentifier(RoomIdentifierT&& value) { SetRoomIdentifier(std::forward<RoomIdentifierT>(value)); return *this;}
47
49
52 inline const Aws::String& GetUserId() const { return m_userId; }
53 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
54 template<typename UserIdT = Aws::String>
55 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
56 template<typename UserIdT = Aws::String>
57 DisconnectUserRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetReason() const { return m_reason; }
65 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
66 template<typename ReasonT = Aws::String>
67 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
68 template<typename ReasonT = Aws::String>
69 DisconnectUserRequest& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
71 private:
72
73 Aws::String m_roomIdentifier;
74 bool m_roomIdentifierHasBeenSet = false;
75
76 Aws::String m_userId;
77 bool m_userIdHasBeenSet = false;
78
79 Aws::String m_reason;
80 bool m_reasonHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ivschat
85} // 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