AWS SDK for C++  1.8.152
AWS SDK for C++
ReactionValueFormats.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetEmoji() const{ return m_emoji; }
46 
51  inline bool EmojiHasBeenSet() const { return m_emojiHasBeenSet; }
52 
57  inline void SetEmoji(const Aws::String& value) { m_emojiHasBeenSet = true; m_emoji = value; }
58 
63  inline void SetEmoji(Aws::String&& value) { m_emojiHasBeenSet = true; m_emoji = std::move(value); }
64 
69  inline void SetEmoji(const char* value) { m_emojiHasBeenSet = true; m_emoji.assign(value); }
70 
75  inline ReactionValueFormats& WithEmoji(const Aws::String& value) { SetEmoji(value); return *this;}
76 
81  inline ReactionValueFormats& WithEmoji(Aws::String&& value) { SetEmoji(std::move(value)); return *this;}
82 
87  inline ReactionValueFormats& WithEmoji(const char* value) { SetEmoji(value); return *this;}
88 
89 
94  inline const Aws::String& GetShortCode() const{ return m_shortCode; }
95 
100  inline bool ShortCodeHasBeenSet() const { return m_shortCodeHasBeenSet; }
101 
106  inline void SetShortCode(const Aws::String& value) { m_shortCodeHasBeenSet = true; m_shortCode = value; }
107 
112  inline void SetShortCode(Aws::String&& value) { m_shortCodeHasBeenSet = true; m_shortCode = std::move(value); }
113 
118  inline void SetShortCode(const char* value) { m_shortCodeHasBeenSet = true; m_shortCode.assign(value); }
119 
124  inline ReactionValueFormats& WithShortCode(const Aws::String& value) { SetShortCode(value); return *this;}
125 
130  inline ReactionValueFormats& WithShortCode(Aws::String&& value) { SetShortCode(std::move(value)); return *this;}
131 
136  inline ReactionValueFormats& WithShortCode(const char* value) { SetShortCode(value); return *this;}
137 
138 
142  inline const Aws::String& GetUnicode() const{ return m_unicode; }
143 
147  inline bool UnicodeHasBeenSet() const { return m_unicodeHasBeenSet; }
148 
152  inline void SetUnicode(const Aws::String& value) { m_unicodeHasBeenSet = true; m_unicode = value; }
153 
157  inline void SetUnicode(Aws::String&& value) { m_unicodeHasBeenSet = true; m_unicode = std::move(value); }
158 
162  inline void SetUnicode(const char* value) { m_unicodeHasBeenSet = true; m_unicode.assign(value); }
163 
167  inline ReactionValueFormats& WithUnicode(const Aws::String& value) { SetUnicode(value); return *this;}
168 
172  inline ReactionValueFormats& WithUnicode(Aws::String&& value) { SetUnicode(std::move(value)); return *this;}
173 
177  inline ReactionValueFormats& WithUnicode(const char* value) { SetUnicode(value); return *this;}
178 
179  private:
180 
181  Aws::String m_emoji;
182  bool m_emojiHasBeenSet;
183 
184  Aws::String m_shortCode;
185  bool m_shortCodeHasBeenSet;
186 
187  Aws::String m_unicode;
188  bool m_unicodeHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace CodeCommit
193 } // namespace Aws
Aws::CodeCommit::Model::ReactionValueFormats::SetEmoji
void SetEmoji(const Aws::String &value)
Definition: ReactionValueFormats.h:57
Aws::CodeCommit::Model::ReactionValueFormats::SetUnicode
void SetUnicode(const char *value)
Definition: ReactionValueFormats.h:162
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ReactionValueFormats::SetShortCode
void SetShortCode(const char *value)
Definition: ReactionValueFormats.h:118
Aws::CodeCommit::Model::ReactionValueFormats::GetEmoji
const Aws::String & GetEmoji() const
Definition: ReactionValueFormats.h:45
Aws::CodeCommit::Model::ReactionValueFormats::UnicodeHasBeenSet
bool UnicodeHasBeenSet() const
Definition: ReactionValueFormats.h:147
Aws::CodeCommit::Model::ReactionValueFormats::SetUnicode
void SetUnicode(const Aws::String &value)
Definition: ReactionValueFormats.h:152
Aws::CodeCommit::Model::ReactionValueFormats::EmojiHasBeenSet
bool EmojiHasBeenSet() const
Definition: ReactionValueFormats.h:51
Aws::CodeCommit::Model::ReactionValueFormats::WithUnicode
ReactionValueFormats & WithUnicode(const Aws::String &value)
Definition: ReactionValueFormats.h:167
Aws::CodeCommit::Model::ReactionValueFormats::SetShortCode
void SetShortCode(const Aws::String &value)
Definition: ReactionValueFormats.h:106
Aws::CodeCommit::Model::ReactionValueFormats::ReactionValueFormats
ReactionValueFormats()
Aws::CodeCommit::Model::ReactionValueFormats::WithEmoji
ReactionValueFormats & WithEmoji(const Aws::String &value)
Definition: ReactionValueFormats.h:75
Aws::CodeCommit::Model::ReactionValueFormats::WithEmoji
ReactionValueFormats & WithEmoji(const char *value)
Definition: ReactionValueFormats.h:87
Aws::CodeCommit::Model::ReactionValueFormats::ReactionValueFormats
ReactionValueFormats(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ReactionValueFormats::SetUnicode
void SetUnicode(Aws::String &&value)
Definition: ReactionValueFormats.h:157
Aws::CodeCommit::Model::ReactionValueFormats
Definition: ReactionValueFormats.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::ReactionValueFormats::SetEmoji
void SetEmoji(const char *value)
Definition: ReactionValueFormats.h:69
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::ReactionValueFormats::ShortCodeHasBeenSet
bool ShortCodeHasBeenSet() const
Definition: ReactionValueFormats.h:100
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ReactionValueFormats::WithUnicode
ReactionValueFormats & WithUnicode(const char *value)
Definition: ReactionValueFormats.h:177
Aws::CodeCommit::Model::ReactionValueFormats::WithShortCode
ReactionValueFormats & WithShortCode(const char *value)
Definition: ReactionValueFormats.h:136
Aws::CodeCommit::Model::ReactionValueFormats::GetShortCode
const Aws::String & GetShortCode() const
Definition: ReactionValueFormats.h:94
Aws::CodeCommit::Model::ReactionValueFormats::SetEmoji
void SetEmoji(Aws::String &&value)
Definition: ReactionValueFormats.h:63
Aws::CodeCommit::Model::ReactionValueFormats::WithShortCode
ReactionValueFormats & WithShortCode(const Aws::String &value)
Definition: ReactionValueFormats.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ReactionValueFormats::WithUnicode
ReactionValueFormats & WithUnicode(Aws::String &&value)
Definition: ReactionValueFormats.h:172
Aws::CodeCommit::Model::ReactionValueFormats::WithEmoji
ReactionValueFormats & WithEmoji(Aws::String &&value)
Definition: ReactionValueFormats.h:81
Aws::CodeCommit::Model::ReactionValueFormats::SetShortCode
void SetShortCode(Aws::String &&value)
Definition: ReactionValueFormats.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ReactionValueFormats::WithShortCode
ReactionValueFormats & WithShortCode(Aws::String &&value)
Definition: ReactionValueFormats.h:130
Aws::CodeCommit::Model::ReactionValueFormats::GetUnicode
const Aws::String & GetUnicode() const
Definition: ReactionValueFormats.h:142
Aws::CodeCommit::Model::ReactionValueFormats::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::ReactionValueFormats::operator=
ReactionValueFormats & operator=(Aws::Utils::Json::JsonView jsonValue)