AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODECOMMIT_API ReactionForComment() = default;
38 AWS_CODECOMMIT_API ReactionForComment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ReactionValueFormats& GetReaction() const { return m_reaction; }
48 inline bool ReactionHasBeenSet() const { return m_reactionHasBeenSet; }
49 template<typename ReactionT = ReactionValueFormats>
50 void SetReaction(ReactionT&& value) { m_reactionHasBeenSet = true; m_reaction = std::forward<ReactionT>(value); }
51 template<typename ReactionT = ReactionValueFormats>
52 ReactionForComment& WithReaction(ReactionT&& value) { SetReaction(std::forward<ReactionT>(value)); return *this;}
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) { m_reactionUsersHasBeenSet = true; m_reactionUsers = std::forward<ReactionUsersT>(value); }
64 template<typename ReactionUsersT = Aws::Vector<Aws::String>>
65 ReactionForComment& WithReactionUsers(ReactionUsersT&& value) { SetReactionUsers(std::forward<ReactionUsersT>(value)); return *this;}
66 template<typename ReactionUsersT = Aws::String>
67 ReactionForComment& AddReactionUsers(ReactionUsersT&& value) { m_reactionUsersHasBeenSet = true; m_reactionUsers.emplace_back(std::forward<ReactionUsersT>(value)); return *this; }
69
71
77 inline int GetReactionsFromDeletedUsersCount() const { return m_reactionsFromDeletedUsersCount; }
78 inline bool ReactionsFromDeletedUsersCountHasBeenSet() const { return m_reactionsFromDeletedUsersCountHasBeenSet; }
79 inline void SetReactionsFromDeletedUsersCount(int value) { m_reactionsFromDeletedUsersCountHasBeenSet = true; m_reactionsFromDeletedUsersCount = value; }
82 private:
83
84 ReactionValueFormats m_reaction;
85 bool m_reactionHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_reactionUsers;
88 bool m_reactionUsersHasBeenSet = false;
89
90 int m_reactionsFromDeletedUsersCount{0};
91 bool m_reactionsFromDeletedUsersCountHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CodeCommit
96} // 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