AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetReaction(const ReactionValueFormats& value) { m_reactionHasBeenSet = true; m_reaction = value; }
50 inline void SetReaction(ReactionValueFormats&& value) { m_reactionHasBeenSet = true; m_reaction = std::move(value); }
51 inline ReactionForComment& WithReaction(const ReactionValueFormats& value) { SetReaction(value); return *this;}
52 inline ReactionForComment& WithReaction(ReactionValueFormats&& value) { SetReaction(std::move(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 inline void SetReactionUsers(const Aws::Vector<Aws::String>& value) { m_reactionUsersHasBeenSet = true; m_reactionUsers = value; }
63 inline void SetReactionUsers(Aws::Vector<Aws::String>&& value) { m_reactionUsersHasBeenSet = true; m_reactionUsers = std::move(value); }
65 inline ReactionForComment& WithReactionUsers(Aws::Vector<Aws::String>&& value) { SetReactionUsers(std::move(value)); return *this;}
66 inline ReactionForComment& AddReactionUsers(const Aws::String& value) { m_reactionUsersHasBeenSet = true; m_reactionUsers.push_back(value); return *this; }
67 inline ReactionForComment& AddReactionUsers(Aws::String&& value) { m_reactionUsersHasBeenSet = true; m_reactionUsers.push_back(std::move(value)); return *this; }
68 inline ReactionForComment& AddReactionUsers(const char* value) { m_reactionUsersHasBeenSet = true; m_reactionUsers.push_back(value); return *this; }
70
72
78 inline int GetReactionsFromDeletedUsersCount() const{ return m_reactionsFromDeletedUsersCount; }
79 inline bool ReactionsFromDeletedUsersCountHasBeenSet() const { return m_reactionsFromDeletedUsersCountHasBeenSet; }
80 inline void SetReactionsFromDeletedUsersCount(int value) { m_reactionsFromDeletedUsersCountHasBeenSet = true; m_reactionsFromDeletedUsersCount = value; }
83 private:
84
85 ReactionValueFormats m_reaction;
86 bool m_reactionHasBeenSet = false;
87
88 Aws::Vector<Aws::String> m_reactionUsers;
89 bool m_reactionUsersHasBeenSet = false;
90
91 int m_reactionsFromDeletedUsersCount;
92 bool m_reactionsFromDeletedUsersCountHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeCommit
97} // namespace Aws
const Aws::Vector< Aws::String > & GetReactionUsers() const
AWS_CODECOMMIT_API ReactionForComment(Aws::Utils::Json::JsonView jsonValue)
ReactionForComment & AddReactionUsers(const char *value)
AWS_CODECOMMIT_API ReactionForComment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReactionUsers(Aws::Vector< Aws::String > &&value)
ReactionForComment & WithReactionUsers(Aws::Vector< Aws::String > &&value)
ReactionForComment & AddReactionUsers(const Aws::String &value)
ReactionForComment & AddReactionUsers(Aws::String &&value)
ReactionForComment & WithReaction(const ReactionValueFormats &value)
void SetReaction(const ReactionValueFormats &value)
void SetReactionUsers(const Aws::Vector< Aws::String > &value)
void SetReaction(ReactionValueFormats &&value)
ReactionForComment & WithReaction(ReactionValueFormats &&value)
ReactionForComment & WithReactionsFromDeletedUsersCount(int value)
const ReactionValueFormats & GetReaction() const
ReactionForComment & WithReactionUsers(const Aws::Vector< Aws::String > &value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue