AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ReactionForComment.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/ReactionValueFormats.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit {
22namespace Model {
23
31 public:
32 AWS_CODECOMMIT_API ReactionForComment() = default;
33 AWS_CODECOMMIT_API ReactionForComment(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const ReactionValueFormats& GetReaction() const { return m_reaction; }
42 inline bool ReactionHasBeenSet() const { return m_reactionHasBeenSet; }
43 template <typename ReactionT = ReactionValueFormats>
44 void SetReaction(ReactionT&& value) {
45 m_reactionHasBeenSet = true;
46 m_reaction = std::forward<ReactionT>(value);
47 }
48 template <typename ReactionT = ReactionValueFormats>
49 ReactionForComment& WithReaction(ReactionT&& value) {
50 SetReaction(std::forward<ReactionT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetReactionUsers() const { return m_reactionUsers; }
61 inline bool ReactionUsersHasBeenSet() const { return m_reactionUsersHasBeenSet; }
62 template <typename ReactionUsersT = Aws::Vector<Aws::String>>
63 void SetReactionUsers(ReactionUsersT&& value) {
64 m_reactionUsersHasBeenSet = true;
65 m_reactionUsers = std::forward<ReactionUsersT>(value);
66 }
67 template <typename ReactionUsersT = Aws::Vector<Aws::String>>
68 ReactionForComment& WithReactionUsers(ReactionUsersT&& value) {
69 SetReactionUsers(std::forward<ReactionUsersT>(value));
70 return *this;
71 }
72 template <typename ReactionUsersT = Aws::String>
73 ReactionForComment& AddReactionUsers(ReactionUsersT&& value) {
74 m_reactionUsersHasBeenSet = true;
75 m_reactionUsers.emplace_back(std::forward<ReactionUsersT>(value));
76 return *this;
77 }
79
81
87 inline int GetReactionsFromDeletedUsersCount() const { return m_reactionsFromDeletedUsersCount; }
88 inline bool ReactionsFromDeletedUsersCountHasBeenSet() const { return m_reactionsFromDeletedUsersCountHasBeenSet; }
89 inline void SetReactionsFromDeletedUsersCount(int value) {
90 m_reactionsFromDeletedUsersCountHasBeenSet = true;
91 m_reactionsFromDeletedUsersCount = value;
92 }
95 return *this;
96 }
98 private:
99 ReactionValueFormats m_reaction;
100
101 Aws::Vector<Aws::String> m_reactionUsers;
102
103 int m_reactionsFromDeletedUsersCount{0};
104 bool m_reactionHasBeenSet = false;
105 bool m_reactionUsersHasBeenSet = false;
106 bool m_reactionsFromDeletedUsersCountHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace CodeCommit
111} // namespace Aws
const Aws::Vector< Aws::String > & GetReactionUsers() const
AWS_CODECOMMIT_API ReactionForComment()=default
AWS_CODECOMMIT_API ReactionForComment(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API ReactionForComment & operator=(Aws::Utils::Json::JsonView jsonValue)
ReactionForComment & WithReactionUsers(ReactionUsersT &&value)
void SetReactionUsers(ReactionUsersT &&value)
ReactionForComment & WithReactionsFromDeletedUsersCount(int value)
ReactionForComment & WithReaction(ReactionT &&value)
const ReactionValueFormats & GetReaction() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
ReactionForComment & AddReactionUsers(ReactionUsersT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue