AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
MessageUsefulnessFeedback.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/MessageUsefulness.h>
9#include <aws/qbusiness/model/MessageUsefulnessReason.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QBusiness
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QBUSINESS_API MessageUsefulnessFeedback() = default;
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline MessageUsefulness GetUsefulness() const { return m_usefulness; }
49 inline bool UsefulnessHasBeenSet() const { return m_usefulnessHasBeenSet; }
50 inline void SetUsefulness(MessageUsefulness value) { m_usefulnessHasBeenSet = true; m_usefulness = value; }
53
55
58 inline MessageUsefulnessReason GetReason() const { return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(MessageUsefulnessReason value) { m_reasonHasBeenSet = true; m_reason = value; }
63
65
69 inline const Aws::String& GetComment() const { return m_comment; }
70 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
71 template<typename CommentT = Aws::String>
72 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
73 template<typename CommentT = Aws::String>
74 MessageUsefulnessFeedback& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetSubmittedAt() const { return m_submittedAt; }
82 inline bool SubmittedAtHasBeenSet() const { return m_submittedAtHasBeenSet; }
83 template<typename SubmittedAtT = Aws::Utils::DateTime>
84 void SetSubmittedAt(SubmittedAtT&& value) { m_submittedAtHasBeenSet = true; m_submittedAt = std::forward<SubmittedAtT>(value); }
85 template<typename SubmittedAtT = Aws::Utils::DateTime>
86 MessageUsefulnessFeedback& WithSubmittedAt(SubmittedAtT&& value) { SetSubmittedAt(std::forward<SubmittedAtT>(value)); return *this;}
88 private:
89
91 bool m_usefulnessHasBeenSet = false;
92
94 bool m_reasonHasBeenSet = false;
95
96 Aws::String m_comment;
97 bool m_commentHasBeenSet = false;
98
99 Aws::Utils::DateTime m_submittedAt{};
100 bool m_submittedAtHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace QBusiness
105} // namespace Aws
AWS_QBUSINESS_API MessageUsefulnessFeedback()=default
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API MessageUsefulnessFeedback & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageUsefulnessFeedback & WithReason(MessageUsefulnessReason value)
MessageUsefulnessFeedback & WithUsefulness(MessageUsefulness value)
MessageUsefulnessFeedback & WithSubmittedAt(SubmittedAtT &&value)
MessageUsefulnessFeedback & WithComment(CommentT &&value)
AWS_QBUSINESS_API MessageUsefulnessFeedback(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue