/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the codecommit-2015-04-13.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CodeCommit.Model { /// /// Information about the reaction values provided by users on a comment. /// public partial class ReactionForComment { private ReactionValueFormats _reaction; private int? _reactionsFromDeletedUsersCount; private List _reactionUsers = new List(); /// /// Gets and sets the property Reaction. /// /// The reaction for a specified comment. /// /// public ReactionValueFormats Reaction { get { return this._reaction; } set { this._reaction = value; } } // Check to see if Reaction property is set internal bool IsSetReaction() { return this._reaction != null; } /// /// Gets and sets the property ReactionsFromDeletedUsersCount. /// /// A numerical count of users who reacted with the specified emoji whose identities have /// been subsequently deleted from IAM. While these IAM users or roles no longer exist, /// the reactions might still appear in total reaction counts. /// /// public int ReactionsFromDeletedUsersCount { get { return this._reactionsFromDeletedUsersCount.GetValueOrDefault(); } set { this._reactionsFromDeletedUsersCount = value; } } // Check to see if ReactionsFromDeletedUsersCount property is set internal bool IsSetReactionsFromDeletedUsersCount() { return this._reactionsFromDeletedUsersCount.HasValue; } /// /// Gets and sets the property ReactionUsers. /// /// The Amazon Resource Names (ARNs) of users who have provided reactions to the comment. /// /// public List ReactionUsers { get { return this._reactionUsers; } set { this._reactionUsers = value; } } // Check to see if ReactionUsers property is set internal bool IsSetReactionUsers() { return this._reactionUsers != null && this._reactionUsers.Count > 0; } } }