AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECOMMIT_API ReactionValueFormats() = default;
36 AWS_CODECOMMIT_API ReactionValueFormats(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetEmoji() const { return m_emoji; }
47 inline bool EmojiHasBeenSet() const { return m_emojiHasBeenSet; }
48 template<typename EmojiT = Aws::String>
49 void SetEmoji(EmojiT&& value) { m_emojiHasBeenSet = true; m_emoji = std::forward<EmojiT>(value); }
50 template<typename EmojiT = Aws::String>
51 ReactionValueFormats& WithEmoji(EmojiT&& value) { SetEmoji(std::forward<EmojiT>(value)); return *this;}
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) { m_shortCodeHasBeenSet = true; m_shortCode = std::forward<ShortCodeT>(value); }
63 template<typename ShortCodeT = Aws::String>
64 ReactionValueFormats& WithShortCode(ShortCodeT&& value) { SetShortCode(std::forward<ShortCodeT>(value)); return *this;}
66
68
71 inline const Aws::String& GetUnicode() const { return m_unicode; }
72 inline bool UnicodeHasBeenSet() const { return m_unicodeHasBeenSet; }
73 template<typename UnicodeT = Aws::String>
74 void SetUnicode(UnicodeT&& value) { m_unicodeHasBeenSet = true; m_unicode = std::forward<UnicodeT>(value); }
75 template<typename UnicodeT = Aws::String>
76 ReactionValueFormats& WithUnicode(UnicodeT&& value) { SetUnicode(std::forward<UnicodeT>(value)); return *this;}
78 private:
79
80 Aws::String m_emoji;
81 bool m_emojiHasBeenSet = false;
82
83 Aws::String m_shortCode;
84 bool m_shortCodeHasBeenSet = false;
85
86 Aws::String m_unicode;
87 bool m_unicodeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CodeCommit
92} // 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