AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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