AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
InvestigationFeedback.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/security-ir/SecurityIR_EXPORTS.h>
10#include <aws/security-ir/model/UsefulnessRating.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityIR {
22namespace Model {
23
32 public:
33 AWS_SECURITYIR_API InvestigationFeedback() = default;
36 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline UsefulnessRating GetUsefulness() const { return m_usefulness; }
45 inline bool UsefulnessHasBeenSet() const { return m_usefulnessHasBeenSet; }
46 inline void SetUsefulness(UsefulnessRating value) {
47 m_usefulnessHasBeenSet = true;
48 m_usefulness = value;
49 }
51 SetUsefulness(value);
52 return *this;
53 }
55
57
62 inline const Aws::String& GetComment() const { return m_comment; }
63 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
64 template <typename CommentT = Aws::String>
65 void SetComment(CommentT&& value) {
66 m_commentHasBeenSet = true;
67 m_comment = std::forward<CommentT>(value);
68 }
69 template <typename CommentT = Aws::String>
71 SetComment(std::forward<CommentT>(value));
72 return *this;
73 }
75
77
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) {
85 m_submittedAtHasBeenSet = true;
86 m_submittedAt = std::forward<SubmittedAtT>(value);
87 }
88 template <typename SubmittedAtT = Aws::Utils::DateTime>
89 InvestigationFeedback& WithSubmittedAt(SubmittedAtT&& value) {
90 SetSubmittedAt(std::forward<SubmittedAtT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::String m_comment;
98
99 Aws::Utils::DateTime m_submittedAt{};
100 bool m_usefulnessHasBeenSet = false;
101 bool m_commentHasBeenSet = false;
102 bool m_submittedAtHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace SecurityIR
107} // namespace Aws
AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const
InvestigationFeedback & WithUsefulness(UsefulnessRating value)
InvestigationFeedback & WithSubmittedAt(SubmittedAtT &&value)
const Aws::Utils::DateTime & GetSubmittedAt() const
AWS_SECURITYIR_API InvestigationFeedback & operator=(Aws::Utils::Json::JsonView jsonValue)
InvestigationFeedback & WithComment(CommentT &&value)
AWS_SECURITYIR_API InvestigationFeedback(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYIR_API InvestigationFeedback()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue