AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PostCommentReplyRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeCommit {
16namespace Model {
17
21 public:
22 AWS_CODECOMMIT_API PostCommentReplyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PostCommentReply"; }
29
30 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
31
33
35
40 inline const Aws::String& GetInReplyTo() const { return m_inReplyTo; }
41 inline bool InReplyToHasBeenSet() const { return m_inReplyToHasBeenSet; }
42 template <typename InReplyToT = Aws::String>
43 void SetInReplyTo(InReplyToT&& value) {
44 m_inReplyToHasBeenSet = true;
45 m_inReplyTo = std::forward<InReplyToT>(value);
46 }
47 template <typename InReplyToT = Aws::String>
49 SetInReplyTo(std::forward<InReplyToT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
62 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
63 template <typename ClientRequestTokenT = Aws::String>
64 void SetClientRequestToken(ClientRequestTokenT&& value) {
65 m_clientRequestTokenHasBeenSet = true;
66 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
67 }
68 template <typename ClientRequestTokenT = Aws::String>
69 PostCommentReplyRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
70 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetContent() const { return m_content; }
80 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
81 template <typename ContentT = Aws::String>
82 void SetContent(ContentT&& value) {
83 m_contentHasBeenSet = true;
84 m_content = std::forward<ContentT>(value);
85 }
86 template <typename ContentT = Aws::String>
88 SetContent(std::forward<ContentT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_inReplyTo;
94
95 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
96
97 Aws::String m_content;
98 bool m_inReplyToHasBeenSet = false;
99 bool m_clientRequestTokenHasBeenSet = true;
100 bool m_contentHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CodeCommit
105} // namespace Aws
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
PostCommentReplyRequest & WithInReplyTo(InReplyToT &&value)
PostCommentReplyRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetInReplyTo(InReplyToT &&value)
const Aws::String & GetInReplyTo() const
void SetContent(ContentT &&value)
AWS_CODECOMMIT_API PostCommentReplyRequest()=default
bool InReplyToHasBeenSet() const
PostCommentReplyRequest & WithContent(ContentT &&value)
bool ContentHasBeenSet() const
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool ClientRequestTokenHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClientRequestToken() const
const Aws::String & GetContent() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String