/* * 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 workdocs-2016-05-01.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.WorkDocs.Model { /// /// Describes a comment. /// public partial class Comment { private string _commentId; private User _contributor; private DateTime? _createdTimestamp; private string _parentId; private string _recipientId; private CommentStatusType _status; private string _text; private string _threadId; private CommentVisibilityType _visibility; /// /// Gets and sets the property CommentId. /// /// The ID of the comment. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string CommentId { get { return this._commentId; } set { this._commentId = value; } } // Check to see if CommentId property is set internal bool IsSetCommentId() { return this._commentId != null; } /// /// Gets and sets the property Contributor. /// /// The details of the user who made the comment. /// /// public User Contributor { get { return this._contributor; } set { this._contributor = value; } } // Check to see if Contributor property is set internal bool IsSetContributor() { return this._contributor != null; } /// /// Gets and sets the property CreatedTimestamp. /// /// The time that the comment was created. /// /// public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// /// Gets and sets the property ParentId. /// /// The ID of the parent comment. /// /// [AWSProperty(Min=1, Max=128)] public string ParentId { get { return this._parentId; } set { this._parentId = value; } } // Check to see if ParentId property is set internal bool IsSetParentId() { return this._parentId != null; } /// /// Gets and sets the property RecipientId. /// /// If the comment is a reply to another user's comment, this field contains the user /// ID of the user being replied to. /// /// [AWSProperty(Min=1, Max=256)] public string RecipientId { get { return this._recipientId; } set { this._recipientId = value; } } // Check to see if RecipientId property is set internal bool IsSetRecipientId() { return this._recipientId != null; } /// /// Gets and sets the property Status. /// /// The status of the comment. /// /// public CommentStatusType Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property Text. /// /// The text of the comment. /// /// [AWSProperty(Sensitive=true, Min=1, Max=2048)] public string Text { get { return this._text; } set { this._text = value; } } // Check to see if Text property is set internal bool IsSetText() { return this._text != null; } /// /// Gets and sets the property ThreadId. /// /// The ID of the root comment in the thread. /// /// [AWSProperty(Min=1, Max=128)] public string ThreadId { get { return this._threadId; } set { this._threadId = value; } } // Check to see if ThreadId property is set internal bool IsSetThreadId() { return this._threadId != null; } /// /// Gets and sets the property Visibility. /// /// The visibility of the comment. Options are either PRIVATE, where the comment is visible /// only to the comment author and document owner and co-owners, or PUBLIC, where the /// comment is visible to document owners, co-owners, and contributors. /// /// public CommentVisibilityType Visibility { get { return this._visibility; } set { this._visibility = value; } } // Check to see if Visibility property is set internal bool IsSetVisibility() { return this._visibility != null; } } }