AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Note.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
27class Note {
28 public:
29 AWS_SECURITYHUB_API Note() = default;
30 AWS_SECURITYHUB_API Note(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API Note& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetText() const { return m_text; }
40 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
41 template <typename TextT = Aws::String>
42 void SetText(TextT&& value) {
43 m_textHasBeenSet = true;
44 m_text = std::forward<TextT>(value);
45 }
46 template <typename TextT = Aws::String>
47 Note& WithText(TextT&& value) {
48 SetText(std::forward<TextT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
58 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
59 template <typename UpdatedByT = Aws::String>
60 void SetUpdatedBy(UpdatedByT&& value) {
61 m_updatedByHasBeenSet = true;
62 m_updatedBy = std::forward<UpdatedByT>(value);
63 }
64 template <typename UpdatedByT = Aws::String>
65 Note& WithUpdatedBy(UpdatedByT&& value) {
66 SetUpdatedBy(std::forward<UpdatedByT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
79 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
80 template <typename UpdatedAtT = Aws::String>
81 void SetUpdatedAt(UpdatedAtT&& value) {
82 m_updatedAtHasBeenSet = true;
83 m_updatedAt = std::forward<UpdatedAtT>(value);
84 }
85 template <typename UpdatedAtT = Aws::String>
86 Note& WithUpdatedAt(UpdatedAtT&& value) {
87 SetUpdatedAt(std::forward<UpdatedAtT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_text;
93
94 Aws::String m_updatedBy;
95
96 Aws::String m_updatedAt;
97 bool m_textHasBeenSet = false;
98 bool m_updatedByHasBeenSet = false;
99 bool m_updatedAtHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace SecurityHub
104} // namespace Aws
bool UpdatedAtHasBeenSet() const
Definition Note.h:79
const Aws::String & GetUpdatedBy() const
Definition Note.h:57
AWS_SECURITYHUB_API Note(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedBy(UpdatedByT &&value)
Definition Note.h:60
AWS_SECURITYHUB_API Note & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetText(TextT &&value)
Definition Note.h:42
const Aws::String & GetText() const
Definition Note.h:39
AWS_SECURITYHUB_API Note()=default
bool UpdatedByHasBeenSet() const
Definition Note.h:58
Note & WithText(TextT &&value)
Definition Note.h:47
Note & WithUpdatedAt(UpdatedAtT &&value)
Definition Note.h:86
void SetUpdatedAt(UpdatedAtT &&value)
Definition Note.h:81
const Aws::String & GetUpdatedAt() const
Definition Note.h:78
bool TextHasBeenSet() const
Definition Note.h:40
Note & WithUpdatedBy(UpdatedByT &&value)
Definition Note.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue