AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PostCommentReplyRequest.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#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace CodeCommit
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODECOMMIT_API PostCommentReplyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PostCommentReply"; }
32
33 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetInReplyTo() const { return m_inReplyTo; }
45 inline bool InReplyToHasBeenSet() const { return m_inReplyToHasBeenSet; }
46 template<typename InReplyToT = Aws::String>
47 void SetInReplyTo(InReplyToT&& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = std::forward<InReplyToT>(value); }
48 template<typename InReplyToT = Aws::String>
49 PostCommentReplyRequest& WithInReplyTo(InReplyToT&& value) { SetInReplyTo(std::forward<InReplyToT>(value)); return *this;}
51
53
59 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
60 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
61 template<typename ClientRequestTokenT = Aws::String>
62 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
63 template<typename ClientRequestTokenT = Aws::String>
64 PostCommentReplyRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
66
68
71 inline const Aws::String& GetContent() const { return m_content; }
72 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
73 template<typename ContentT = Aws::String>
74 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
75 template<typename ContentT = Aws::String>
76 PostCommentReplyRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
78 private:
79
80 Aws::String m_inReplyTo;
81 bool m_inReplyToHasBeenSet = false;
82
83 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
84 bool m_clientRequestTokenHasBeenSet = true;
85
86 Aws::String m_content;
87 bool m_contentHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CodeCommit
92} // 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