AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ReactionValueFormats.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeCommit {
20namespace Model {
21
29 public:
30 AWS_CODECOMMIT_API ReactionValueFormats() = default;
31 AWS_CODECOMMIT_API ReactionValueFormats(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetEmoji() const { return m_emoji; }
41 inline bool EmojiHasBeenSet() const { return m_emojiHasBeenSet; }
42 template <typename EmojiT = Aws::String>
43 void SetEmoji(EmojiT&& value) {
44 m_emojiHasBeenSet = true;
45 m_emoji = std::forward<EmojiT>(value);
46 }
47 template <typename EmojiT = Aws::String>
49 SetEmoji(std::forward<EmojiT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetShortCode() const { return m_shortCode; }
60 inline bool ShortCodeHasBeenSet() const { return m_shortCodeHasBeenSet; }
61 template <typename ShortCodeT = Aws::String>
62 void SetShortCode(ShortCodeT&& value) {
63 m_shortCodeHasBeenSet = true;
64 m_shortCode = std::forward<ShortCodeT>(value);
65 }
66 template <typename ShortCodeT = Aws::String>
67 ReactionValueFormats& WithShortCode(ShortCodeT&& value) {
68 SetShortCode(std::forward<ShortCodeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetUnicode() const { return m_unicode; }
78 inline bool UnicodeHasBeenSet() const { return m_unicodeHasBeenSet; }
79 template <typename UnicodeT = Aws::String>
80 void SetUnicode(UnicodeT&& value) {
81 m_unicodeHasBeenSet = true;
82 m_unicode = std::forward<UnicodeT>(value);
83 }
84 template <typename UnicodeT = Aws::String>
85 ReactionValueFormats& WithUnicode(UnicodeT&& value) {
86 SetUnicode(std::forward<UnicodeT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_emoji;
92
93 Aws::String m_shortCode;
94
95 Aws::String m_unicode;
96 bool m_emojiHasBeenSet = false;
97 bool m_shortCodeHasBeenSet = false;
98 bool m_unicodeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CodeCommit
103} // namespace Aws
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API ReactionValueFormats(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API ReactionValueFormats()=default
ReactionValueFormats & WithUnicode(UnicodeT &&value)
AWS_CODECOMMIT_API ReactionValueFormats & operator=(Aws::Utils::Json::JsonView jsonValue)
ReactionValueFormats & WithEmoji(EmojiT &&value)
ReactionValueFormats & WithShortCode(ShortCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue