AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
MessageUsefulnessFeedback.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/MessageUsefulness.h>
11#include <aws/qbusiness/model/MessageUsefulnessReason.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness {
23namespace Model {
24
32 public:
33 AWS_QBUSINESS_API MessageUsefulnessFeedback() = default;
36 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline MessageUsefulness GetUsefulness() const { return m_usefulness; }
43 inline bool UsefulnessHasBeenSet() const { return m_usefulnessHasBeenSet; }
44 inline void SetUsefulness(MessageUsefulness value) {
45 m_usefulnessHasBeenSet = true;
46 m_usefulness = value;
47 }
49 SetUsefulness(value);
50 return *this;
51 }
53
55
58 inline MessageUsefulnessReason GetReason() const { return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 m_reasonHasBeenSet = true;
62 m_reason = value;
63 }
65 SetReason(value);
66 return *this;
67 }
69
71
75 inline const Aws::String& GetComment() const { return m_comment; }
76 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
77 template <typename CommentT = Aws::String>
78 void SetComment(CommentT&& value) {
79 m_commentHasBeenSet = true;
80 m_comment = std::forward<CommentT>(value);
81 }
82 template <typename CommentT = Aws::String>
84 SetComment(std::forward<CommentT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetSubmittedAt() const { return m_submittedAt; }
94 inline bool SubmittedAtHasBeenSet() const { return m_submittedAtHasBeenSet; }
95 template <typename SubmittedAtT = Aws::Utils::DateTime>
97 m_submittedAtHasBeenSet = true;
98 m_submittedAt = std::forward<SubmittedAtT>(value);
99 }
100 template <typename SubmittedAtT = Aws::Utils::DateTime>
102 SetSubmittedAt(std::forward<SubmittedAtT>(value));
103 return *this;
104 }
106 private:
108
110
111 Aws::String m_comment;
112
113 Aws::Utils::DateTime m_submittedAt{};
114 bool m_usefulnessHasBeenSet = false;
115 bool m_reasonHasBeenSet = false;
116 bool m_commentHasBeenSet = false;
117 bool m_submittedAtHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace QBusiness
122} // 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