AWS SDK for C++  1.9.123
AWS SDK for C++
GetCommentRequest.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 "GetComment"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetCommentId() const{ return m_commentId; }
42 
47  inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
48 
53  inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
54 
59  inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
60 
65  inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
66 
71  inline GetCommentRequest& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
72 
77  inline GetCommentRequest& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
78 
83  inline GetCommentRequest& WithCommentId(const char* value) { SetCommentId(value); return *this;}
84 
85  private:
86 
87  Aws::String m_commentId;
88  bool m_commentIdHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace CodeCommit
93 } // namespace Aws
Aws::CodeCommit::Model::GetCommentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCommentRequest.h:30
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetCommentRequest::WithCommentId
GetCommentRequest & WithCommentId(const char *value)
Definition: GetCommentRequest.h:83
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::GetCommentRequest::WithCommentId
GetCommentRequest & WithCommentId(Aws::String &&value)
Definition: GetCommentRequest.h:77
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::GetCommentRequest
Definition: GetCommentRequest.h:22
CodeCommitRequest.h
Aws::CodeCommit::Model::GetCommentRequest::WithCommentId
GetCommentRequest & WithCommentId(const Aws::String &value)
Definition: GetCommentRequest.h:71
Aws::CodeCommit::Model::GetCommentRequest::CommentIdHasBeenSet
bool CommentIdHasBeenSet() const
Definition: GetCommentRequest.h:47
Aws::CodeCommit::Model::GetCommentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetCommentRequest::GetCommentRequest
GetCommentRequest()
Aws::CodeCommit::Model::GetCommentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::GetCommentRequest::SetCommentId
void SetCommentId(const char *value)
Definition: GetCommentRequest.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetCommentRequest::GetCommentId
const Aws::String & GetCommentId() const
Definition: GetCommentRequest.h:41
Aws::CodeCommit::Model::GetCommentRequest::SetCommentId
void SetCommentId(const Aws::String &value)
Definition: GetCommentRequest.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetCommentRequest::SetCommentId
void SetCommentId(Aws::String &&value)
Definition: GetCommentRequest.h:59