AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetCommentReactionsRequest.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 GetCommentReactionsRequest() = 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 "GetCommentReactions"; }
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
56 inline const Aws::String& GetReactionUserArn() const { return m_reactionUserArn; }
57 inline bool ReactionUserArnHasBeenSet() const { return m_reactionUserArnHasBeenSet; }
58 template <typename ReactionUserArnT = Aws::String>
59 void SetReactionUserArn(ReactionUserArnT&& value) {
60 m_reactionUserArnHasBeenSet = true;
61 m_reactionUserArn = std::forward<ReactionUserArnT>(value);
62 }
63 template <typename ReactionUserArnT = Aws::String>
65 SetReactionUserArn(std::forward<ReactionUserArnT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template <typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) {
79 m_nextTokenHasBeenSet = true;
80 m_nextToken = std::forward<NextTokenT>(value);
81 }
82 template <typename NextTokenT = Aws::String>
84 SetNextToken(std::forward<NextTokenT>(value));
85 return *this;
86 }
88
90
94 inline int GetMaxResults() const { return m_maxResults; }
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96 inline void SetMaxResults(int value) {
97 m_maxResultsHasBeenSet = true;
98 m_maxResults = value;
99 }
101 SetMaxResults(value);
102 return *this;
103 }
105 private:
106 Aws::String m_commentId;
107
108 Aws::String m_reactionUserArn;
109
110 Aws::String m_nextToken;
111
112 int m_maxResults{0};
113 bool m_commentIdHasBeenSet = false;
114 bool m_reactionUserArnHasBeenSet = false;
115 bool m_nextTokenHasBeenSet = false;
116 bool m_maxResultsHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CodeCommit
121} // namespace Aws
GetCommentReactionsRequest & WithNextToken(NextTokenT &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
GetCommentReactionsRequest & WithCommentId(CommentIdT &&value)
GetCommentReactionsRequest & WithReactionUserArn(ReactionUserArnT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_CODECOMMIT_API GetCommentReactionsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String