AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeleteMessageRequest.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 DeleteMessageRequest() = 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 "DeleteMessage"; }
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 DeleteMessageRequest& WithRoomIdentifier(RoomIdentifierT&& value) { SetRoomIdentifier(std::forward<RoomIdentifierT>(value)); return *this;}
47
49
55 inline const Aws::String& GetId() const { return m_id; }
56 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 template<typename IdT = Aws::String>
58 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
59 template<typename IdT = Aws::String>
60 DeleteMessageRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetReason() const { return m_reason; }
68 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
69 template<typename ReasonT = Aws::String>
70 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
71 template<typename ReasonT = Aws::String>
72 DeleteMessageRequest& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
74 private:
75
76 Aws::String m_roomIdentifier;
77 bool m_roomIdentifierHasBeenSet = false;
78
79 Aws::String m_id;
80 bool m_idHasBeenSet = false;
81
82 Aws::String m_reason;
83 bool m_reasonHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace ivschat
88} // namespace Aws
DeleteMessageRequest & WithReason(ReasonT &&value)
AWS_IVSCHAT_API DeleteMessageRequest()=default
DeleteMessageRequest & WithRoomIdentifier(RoomIdentifierT &&value)
DeleteMessageRequest & WithId(IdT &&value)
void SetRoomIdentifier(RoomIdentifierT &&value)
AWS_IVSCHAT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String