AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEmoji(const Aws::String& value) { m_emojiHasBeenSet = true; m_emoji = value; }
49 inline void SetEmoji(Aws::String&& value) { m_emojiHasBeenSet = true; m_emoji = std::move(value); }
50 inline void SetEmoji(const char* value) { m_emojiHasBeenSet = true; m_emoji.assign(value); }
51 inline ReactionValueFormats& WithEmoji(const Aws::String& value) { SetEmoji(value); return *this;}
52 inline ReactionValueFormats& WithEmoji(Aws::String&& value) { SetEmoji(std::move(value)); return *this;}
53 inline ReactionValueFormats& WithEmoji(const char* value) { SetEmoji(value); return *this;}
55
57
61 inline const Aws::String& GetShortCode() const{ return m_shortCode; }
62 inline bool ShortCodeHasBeenSet() const { return m_shortCodeHasBeenSet; }
63 inline void SetShortCode(const Aws::String& value) { m_shortCodeHasBeenSet = true; m_shortCode = value; }
64 inline void SetShortCode(Aws::String&& value) { m_shortCodeHasBeenSet = true; m_shortCode = std::move(value); }
65 inline void SetShortCode(const char* value) { m_shortCodeHasBeenSet = true; m_shortCode.assign(value); }
66 inline ReactionValueFormats& WithShortCode(const Aws::String& value) { SetShortCode(value); return *this;}
67 inline ReactionValueFormats& WithShortCode(Aws::String&& value) { SetShortCode(std::move(value)); return *this;}
68 inline ReactionValueFormats& WithShortCode(const char* value) { SetShortCode(value); return *this;}
70
72
75 inline const Aws::String& GetUnicode() const{ return m_unicode; }
76 inline bool UnicodeHasBeenSet() const { return m_unicodeHasBeenSet; }
77 inline void SetUnicode(const Aws::String& value) { m_unicodeHasBeenSet = true; m_unicode = value; }
78 inline void SetUnicode(Aws::String&& value) { m_unicodeHasBeenSet = true; m_unicode = std::move(value); }
79 inline void SetUnicode(const char* value) { m_unicodeHasBeenSet = true; m_unicode.assign(value); }
80 inline ReactionValueFormats& WithUnicode(const Aws::String& value) { SetUnicode(value); return *this;}
81 inline ReactionValueFormats& WithUnicode(Aws::String&& value) { SetUnicode(std::move(value)); return *this;}
82 inline ReactionValueFormats& WithUnicode(const char* value) { SetUnicode(value); return *this;}
84 private:
85
86 Aws::String m_emoji;
87 bool m_emojiHasBeenSet = false;
88
89 Aws::String m_shortCode;
90 bool m_shortCodeHasBeenSet = false;
91
92 Aws::String m_unicode;
93 bool m_unicodeHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CodeCommit
98} // namespace Aws
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
ReactionValueFormats & WithUnicode(Aws::String &&value)
ReactionValueFormats & WithEmoji(const Aws::String &value)
ReactionValueFormats & WithShortCode(Aws::String &&value)
AWS_CODECOMMIT_API ReactionValueFormats(Aws::Utils::Json::JsonView jsonValue)
ReactionValueFormats & WithShortCode(const char *value)
ReactionValueFormats & WithUnicode(const Aws::String &value)
ReactionValueFormats & WithShortCode(const Aws::String &value)
ReactionValueFormats & WithUnicode(const char *value)
AWS_CODECOMMIT_API ReactionValueFormats & operator=(Aws::Utils::Json::JsonView jsonValue)
ReactionValueFormats & WithEmoji(Aws::String &&value)
ReactionValueFormats & WithEmoji(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue