AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const MessageUsefulness& GetUsefulness() const{ return m_usefulness; }
49 inline bool UsefulnessHasBeenSet() const { return m_usefulnessHasBeenSet; }
50 inline void SetUsefulness(const MessageUsefulness& value) { m_usefulnessHasBeenSet = true; m_usefulness = value; }
51 inline void SetUsefulness(MessageUsefulness&& value) { m_usefulnessHasBeenSet = true; m_usefulness = std::move(value); }
52 inline MessageUsefulnessFeedback& WithUsefulness(const MessageUsefulness& value) { SetUsefulness(value); return *this;}
53 inline MessageUsefulnessFeedback& WithUsefulness(MessageUsefulness&& value) { SetUsefulness(std::move(value)); return *this;}
55
57
60 inline const MessageUsefulnessReason& GetReason() const{ return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 inline void SetReason(const MessageUsefulnessReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
63 inline void SetReason(MessageUsefulnessReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
64 inline MessageUsefulnessFeedback& WithReason(const MessageUsefulnessReason& value) { SetReason(value); return *this;}
65 inline MessageUsefulnessFeedback& WithReason(MessageUsefulnessReason&& value) { SetReason(std::move(value)); return *this;}
67
69
73 inline const Aws::String& GetComment() const{ return m_comment; }
74 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
75 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
76 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
77 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
78 inline MessageUsefulnessFeedback& WithComment(const Aws::String& value) { SetComment(value); return *this;}
79 inline MessageUsefulnessFeedback& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
80 inline MessageUsefulnessFeedback& WithComment(const char* value) { SetComment(value); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetSubmittedAt() const{ return m_submittedAt; }
88 inline bool SubmittedAtHasBeenSet() const { return m_submittedAtHasBeenSet; }
89 inline void SetSubmittedAt(const Aws::Utils::DateTime& value) { m_submittedAtHasBeenSet = true; m_submittedAt = value; }
90 inline void SetSubmittedAt(Aws::Utils::DateTime&& value) { m_submittedAtHasBeenSet = true; m_submittedAt = std::move(value); }
92 inline MessageUsefulnessFeedback& WithSubmittedAt(Aws::Utils::DateTime&& value) { SetSubmittedAt(std::move(value)); return *this;}
94 private:
95
96 MessageUsefulness m_usefulness;
97 bool m_usefulnessHasBeenSet = false;
98
100 bool m_reasonHasBeenSet = false;
101
102 Aws::String m_comment;
103 bool m_commentHasBeenSet = false;
104
105 Aws::Utils::DateTime m_submittedAt;
106 bool m_submittedAtHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace QBusiness
111} // namespace Aws
MessageUsefulnessFeedback & WithUsefulness(const MessageUsefulness &value)
const MessageUsefulnessReason & GetReason() const
MessageUsefulnessFeedback & WithReason(const MessageUsefulnessReason &value)
MessageUsefulnessFeedback & WithSubmittedAt(const Aws::Utils::DateTime &value)
MessageUsefulnessFeedback & WithComment(Aws::String &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API MessageUsefulnessFeedback & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReason(const MessageUsefulnessReason &value)
MessageUsefulnessFeedback & WithComment(const char *value)
void SetSubmittedAt(const Aws::Utils::DateTime &value)
MessageUsefulnessFeedback & WithSubmittedAt(Aws::Utils::DateTime &&value)
MessageUsefulnessFeedback & WithComment(const Aws::String &value)
AWS_QBUSINESS_API MessageUsefulnessFeedback(Aws::Utils::Json::JsonView jsonValue)
MessageUsefulnessFeedback & WithUsefulness(MessageUsefulness &&value)
MessageUsefulnessFeedback & WithReason(MessageUsefulnessReason &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue