AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
DeleteMessageRequest.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 DeleteMessageRequest() = 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 "DeleteMessage"; }
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 DeleteMessageRequest& WithRoomIdentifier(RoomIdentifierT&& value) {
45 SetRoomIdentifier(std::forward<RoomIdentifierT>(value));
46 return *this;
47 }
49
51
57 inline const Aws::String& GetId() const { return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 template <typename IdT = Aws::String>
60 void SetId(IdT&& value) {
61 m_idHasBeenSet = true;
62 m_id = std::forward<IdT>(value);
63 }
64 template <typename IdT = Aws::String>
66 SetId(std::forward<IdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetReason() const { return m_reason; }
76 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
77 template <typename ReasonT = Aws::String>
78 void SetReason(ReasonT&& value) {
79 m_reasonHasBeenSet = true;
80 m_reason = std::forward<ReasonT>(value);
81 }
82 template <typename ReasonT = Aws::String>
83 DeleteMessageRequest& WithReason(ReasonT&& value) {
84 SetReason(std::forward<ReasonT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_roomIdentifier;
90 bool m_roomIdentifierHasBeenSet = false;
91
92 Aws::String m_id;
93 bool m_idHasBeenSet = false;
94
95 Aws::String m_reason;
96 bool m_reasonHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ivschat
101} // 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