AWS SDK for C++  1.9.131
AWS SDK for C++
PutCommentReactionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetCommentId() const{ return m_commentId; }
41 
45  inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
46 
50  inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
51 
55  inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
56 
60  inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
61 
65  inline PutCommentReactionRequest& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
66 
70  inline PutCommentReactionRequest& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
71 
75  inline PutCommentReactionRequest& WithCommentId(const char* value) { SetCommentId(value); return *this;}
76 
77 
85  inline const Aws::String& GetReactionValue() const{ return m_reactionValue; }
86 
94  inline bool ReactionValueHasBeenSet() const { return m_reactionValueHasBeenSet; }
95 
103  inline void SetReactionValue(const Aws::String& value) { m_reactionValueHasBeenSet = true; m_reactionValue = value; }
104 
112  inline void SetReactionValue(Aws::String&& value) { m_reactionValueHasBeenSet = true; m_reactionValue = std::move(value); }
113 
121  inline void SetReactionValue(const char* value) { m_reactionValueHasBeenSet = true; m_reactionValue.assign(value); }
122 
130  inline PutCommentReactionRequest& WithReactionValue(const Aws::String& value) { SetReactionValue(value); return *this;}
131 
139  inline PutCommentReactionRequest& WithReactionValue(Aws::String&& value) { SetReactionValue(std::move(value)); return *this;}
140 
148  inline PutCommentReactionRequest& WithReactionValue(const char* value) { SetReactionValue(value); return *this;}
149 
150  private:
151 
152  Aws::String m_commentId;
153  bool m_commentIdHasBeenSet;
154 
155  Aws::String m_reactionValue;
156  bool m_reactionValueHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace CodeCommit
161 } // namespace Aws
Aws::CodeCommit::Model::PutCommentReactionRequest::SetCommentId
void SetCommentId(const Aws::String &value)
Definition: PutCommentReactionRequest.h:50
Aws::CodeCommit::Model::PutCommentReactionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutCommentReactionRequest.h:30
CodeCommit_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::PutCommentReactionRequest::PutCommentReactionRequest
PutCommentReactionRequest()
Aws::CodeCommit::Model::PutCommentReactionRequest
Definition: PutCommentReactionRequest.h:22
Aws::CodeCommit::Model::PutCommentReactionRequest::SetReactionValue
void SetReactionValue(const Aws::String &value)
Definition: PutCommentReactionRequest.h:103
Aws::CodeCommit::Model::PutCommentReactionRequest::CommentIdHasBeenSet
bool CommentIdHasBeenSet() const
Definition: PutCommentReactionRequest.h:45
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::PutCommentReactionRequest::GetReactionValue
const Aws::String & GetReactionValue() const
Definition: PutCommentReactionRequest.h:85
Aws::CodeCommit::Model::PutCommentReactionRequest::SetReactionValue
void SetReactionValue(const char *value)
Definition: PutCommentReactionRequest.h:121
CodeCommitRequest.h
Aws::CodeCommit::Model::PutCommentReactionRequest::WithReactionValue
PutCommentReactionRequest & WithReactionValue(const Aws::String &value)
Definition: PutCommentReactionRequest.h:130
Aws::CodeCommit::Model::PutCommentReactionRequest::WithCommentId
PutCommentReactionRequest & WithCommentId(Aws::String &&value)
Definition: PutCommentReactionRequest.h:70
Aws::CodeCommit::Model::PutCommentReactionRequest::SetReactionValue
void SetReactionValue(Aws::String &&value)
Definition: PutCommentReactionRequest.h:112
Aws::CodeCommit::Model::PutCommentReactionRequest::ReactionValueHasBeenSet
bool ReactionValueHasBeenSet() const
Definition: PutCommentReactionRequest.h:94
Aws::CodeCommit::Model::PutCommentReactionRequest::WithCommentId
PutCommentReactionRequest & WithCommentId(const Aws::String &value)
Definition: PutCommentReactionRequest.h:65
Aws::CodeCommit::Model::PutCommentReactionRequest::SetCommentId
void SetCommentId(const char *value)
Definition: PutCommentReactionRequest.h:60
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PutCommentReactionRequest::GetCommentId
const Aws::String & GetCommentId() const
Definition: PutCommentReactionRequest.h:40
Aws::CodeCommit::Model::PutCommentReactionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::PutCommentReactionRequest::WithCommentId
PutCommentReactionRequest & WithCommentId(const char *value)
Definition: PutCommentReactionRequest.h:75
Aws::CodeCommit::Model::PutCommentReactionRequest::WithReactionValue
PutCommentReactionRequest & WithReactionValue(Aws::String &&value)
Definition: PutCommentReactionRequest.h:139
Aws::CodeCommit::Model::PutCommentReactionRequest::WithReactionValue
PutCommentReactionRequest & WithReactionValue(const char *value)
Definition: PutCommentReactionRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PutCommentReactionRequest::SetCommentId
void SetCommentId(Aws::String &&value)
Definition: PutCommentReactionRequest.h:55
Aws::CodeCommit::Model::PutCommentReactionRequest::SerializePayload
Aws::String SerializePayload() const override