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

Represents the content of a Comment to be returned to * agents.

See Also:

AWS * API Reference

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

Text in the body of a Comment on a case.

*/ inline const Aws::String& GetBody() const{ return m_body; } /** *

Text in the body of a Comment on a case.

*/ inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; } /** *

Text in the body of a Comment on a case.

*/ inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; } /** *

Text in the body of a Comment on a case.

*/ inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); } /** *

Text in the body of a Comment on a case.

*/ inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); } /** *

Text in the body of a Comment on a case.

*/ inline CommentContent& WithBody(const Aws::String& value) { SetBody(value); return *this;} /** *

Text in the body of a Comment on a case.

*/ inline CommentContent& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;} /** *

Text in the body of a Comment on a case.

*/ inline CommentContent& WithBody(const char* value) { SetBody(value); return *this;} /** *

Type of the text in the box of a Comment on a case.

*/ inline const CommentBodyTextType& GetContentType() const{ return m_contentType; } /** *

Type of the text in the box of a Comment on a case.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

Type of the text in the box of a Comment on a case.

*/ inline void SetContentType(const CommentBodyTextType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

Type of the text in the box of a Comment on a case.

*/ inline void SetContentType(CommentBodyTextType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

Type of the text in the box of a Comment on a case.

*/ inline CommentContent& WithContentType(const CommentBodyTextType& value) { SetContentType(value); return *this;} /** *

Type of the text in the box of a Comment on a case.

*/ inline CommentContent& WithContentType(CommentBodyTextType&& value) { SetContentType(std::move(value)); return *this;} private: Aws::String m_body; bool m_bodyHasBeenSet = false; CommentBodyTextType m_contentType; bool m_contentTypeHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws