AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PutCommentReactionRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeCommit {
15namespace Model {
16
20 public:
21 AWS_CODECOMMIT_API PutCommentReactionRequest() = 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 "PutCommentReaction"; }
28
29 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetCommentId() const { return m_commentId; }
38 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
39 template <typename CommentIdT = Aws::String>
40 void SetCommentId(CommentIdT&& value) {
41 m_commentIdHasBeenSet = true;
42 m_commentId = std::forward<CommentIdT>(value);
43 }
44 template <typename CommentIdT = Aws::String>
46 SetCommentId(std::forward<CommentIdT>(value));
47 return *this;
48 }
50
52
59 inline const Aws::String& GetReactionValue() const { return m_reactionValue; }
60 inline bool ReactionValueHasBeenSet() const { return m_reactionValueHasBeenSet; }
61 template <typename ReactionValueT = Aws::String>
62 void SetReactionValue(ReactionValueT&& value) {
63 m_reactionValueHasBeenSet = true;
64 m_reactionValue = std::forward<ReactionValueT>(value);
65 }
66 template <typename ReactionValueT = Aws::String>
68 SetReactionValue(std::forward<ReactionValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_commentId;
74
75 Aws::String m_reactionValue;
76 bool m_commentIdHasBeenSet = false;
77 bool m_reactionValueHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CodeCommit
82} // namespace Aws
AWS_CODECOMMIT_API PutCommentReactionRequest()=default
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
PutCommentReactionRequest & WithCommentId(CommentIdT &&value)
PutCommentReactionRequest & WithReactionValue(ReactionValueT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String