AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRoomIdentifier(const Aws::String& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = value; }
43 inline void SetRoomIdentifier(Aws::String&& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = std::move(value); }
44 inline void SetRoomIdentifier(const char* value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier.assign(value); }
45 inline DisconnectUserRequest& WithRoomIdentifier(const Aws::String& value) { SetRoomIdentifier(value); return *this;}
46 inline DisconnectUserRequest& WithRoomIdentifier(Aws::String&& value) { SetRoomIdentifier(std::move(value)); return *this;}
47 inline DisconnectUserRequest& WithRoomIdentifier(const char* value) { SetRoomIdentifier(value); return *this;}
49
51
54 inline const Aws::String& GetUserId() const{ return m_userId; }
55 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
56 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
57 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
58 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
59 inline DisconnectUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
60 inline DisconnectUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
61 inline DisconnectUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
63
65
68 inline const Aws::String& GetReason() const{ return m_reason; }
69 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
70 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
71 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
72 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
73 inline DisconnectUserRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
74 inline DisconnectUserRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
75 inline DisconnectUserRequest& WithReason(const char* value) { SetReason(value); return *this;}
77 private:
78
79 Aws::String m_roomIdentifier;
80 bool m_roomIdentifierHasBeenSet = false;
81
82 Aws::String m_userId;
83 bool m_userIdHasBeenSet = false;
84
85 Aws::String m_reason;
86 bool m_reasonHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ivschat
91} // namespace Aws
DisconnectUserRequest & WithReason(const char *value)
virtual const char * GetServiceRequestName() const override
DisconnectUserRequest & WithRoomIdentifier(Aws::String &&value)
DisconnectUserRequest & WithUserId(const Aws::String &value)
DisconnectUserRequest & WithReason(const Aws::String &value)
void SetRoomIdentifier(const Aws::String &value)
DisconnectUserRequest & WithUserId(const char *value)
DisconnectUserRequest & WithRoomIdentifier(const Aws::String &value)
AWS_IVSCHAT_API Aws::String SerializePayload() const override
DisconnectUserRequest & WithReason(Aws::String &&value)
DisconnectUserRequest & WithUserId(Aws::String &&value)
DisconnectUserRequest & WithRoomIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String