/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

Information about the values for reactions to a comment. AWS CodeCommit * supports a limited set of reactions.

See Also:

AWS * API Reference

*/ class ReactionValueFormats { public: AWS_CODECOMMIT_API ReactionValueFormats(); AWS_CODECOMMIT_API ReactionValueFormats(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API ReactionValueFormats& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted * slightly differently on different operating systems.

*/ inline const Aws::String& GetEmoji() const{ return m_emoji; } /** *

The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted * slightly differently on different operating systems.

*/ inline bool EmojiHasBeenSet() const { return m_emojiHasBeenSet; } /** *

The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted * slightly differently on different operating systems.

*/ inline void SetEmoji(const Aws::String& value) { m_emojiHasBeenSet = true; m_emoji = value; } /** *

The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted * slightly differently on different operating systems.

*/ inline void SetEmoji(Aws::String&& value) { m_emojiHasBeenSet = true; m_emoji = std::move(value); } /** *

The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted * slightly differently on different operating systems.

*/ inline void SetEmoji(const char* value) { m_emojiHasBeenSet = true; m_emoji.assign(value); } /** *

The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted * slightly differently on different operating systems.

*/ inline ReactionValueFormats& WithEmoji(const Aws::String& value) { SetEmoji(value); return *this;} /** *

The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted * slightly differently on different operating systems.

*/ inline ReactionValueFormats& WithEmoji(Aws::String&& value) { SetEmoji(std::move(value)); return *this;} /** *

The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted * slightly differently on different operating systems.

*/ inline ReactionValueFormats& WithEmoji(const char* value) { SetEmoji(value); return *this;} /** *

The emoji short code for the reaction. Short codes are interpreted slightly * differently on different operating systems.

*/ inline const Aws::String& GetShortCode() const{ return m_shortCode; } /** *

The emoji short code for the reaction. Short codes are interpreted slightly * differently on different operating systems.

*/ inline bool ShortCodeHasBeenSet() const { return m_shortCodeHasBeenSet; } /** *

The emoji short code for the reaction. Short codes are interpreted slightly * differently on different operating systems.

*/ inline void SetShortCode(const Aws::String& value) { m_shortCodeHasBeenSet = true; m_shortCode = value; } /** *

The emoji short code for the reaction. Short codes are interpreted slightly * differently on different operating systems.

*/ inline void SetShortCode(Aws::String&& value) { m_shortCodeHasBeenSet = true; m_shortCode = std::move(value); } /** *

The emoji short code for the reaction. Short codes are interpreted slightly * differently on different operating systems.

*/ inline void SetShortCode(const char* value) { m_shortCodeHasBeenSet = true; m_shortCode.assign(value); } /** *

The emoji short code for the reaction. Short codes are interpreted slightly * differently on different operating systems.

*/ inline ReactionValueFormats& WithShortCode(const Aws::String& value) { SetShortCode(value); return *this;} /** *

The emoji short code for the reaction. Short codes are interpreted slightly * differently on different operating systems.

*/ inline ReactionValueFormats& WithShortCode(Aws::String&& value) { SetShortCode(std::move(value)); return *this;} /** *

The emoji short code for the reaction. Short codes are interpreted slightly * differently on different operating systems.

*/ inline ReactionValueFormats& WithShortCode(const char* value) { SetShortCode(value); return *this;} /** *

The Unicode codepoint for the reaction.

*/ inline const Aws::String& GetUnicode() const{ return m_unicode; } /** *

The Unicode codepoint for the reaction.

*/ inline bool UnicodeHasBeenSet() const { return m_unicodeHasBeenSet; } /** *

The Unicode codepoint for the reaction.

*/ inline void SetUnicode(const Aws::String& value) { m_unicodeHasBeenSet = true; m_unicode = value; } /** *

The Unicode codepoint for the reaction.

*/ inline void SetUnicode(Aws::String&& value) { m_unicodeHasBeenSet = true; m_unicode = std::move(value); } /** *

The Unicode codepoint for the reaction.

*/ inline void SetUnicode(const char* value) { m_unicodeHasBeenSet = true; m_unicode.assign(value); } /** *

The Unicode codepoint for the reaction.

*/ inline ReactionValueFormats& WithUnicode(const Aws::String& value) { SetUnicode(value); return *this;} /** *

The Unicode codepoint for the reaction.

*/ inline ReactionValueFormats& WithUnicode(Aws::String&& value) { SetUnicode(std::move(value)); return *this;} /** *

The Unicode codepoint for the reaction.

*/ inline ReactionValueFormats& WithUnicode(const char* value) { SetUnicode(value); return *this;} private: Aws::String m_emoji; bool m_emojiHasBeenSet = false; Aws::String m_shortCode; bool m_shortCodeHasBeenSet = false; Aws::String m_unicode; bool m_unicodeHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws