AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
NoteUpdate.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
28 public:
29 AWS_SECURITYHUB_API NoteUpdate() = default;
30 AWS_SECURITYHUB_API NoteUpdate(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API NoteUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetText() const { return m_text; }
39 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
40 template <typename TextT = Aws::String>
41 void SetText(TextT&& value) {
42 m_textHasBeenSet = true;
43 m_text = std::forward<TextT>(value);
44 }
45 template <typename TextT = Aws::String>
46 NoteUpdate& WithText(TextT&& value) {
47 SetText(std::forward<TextT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
57 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
58 template <typename UpdatedByT = Aws::String>
59 void SetUpdatedBy(UpdatedByT&& value) {
60 m_updatedByHasBeenSet = true;
61 m_updatedBy = std::forward<UpdatedByT>(value);
62 }
63 template <typename UpdatedByT = Aws::String>
64 NoteUpdate& WithUpdatedBy(UpdatedByT&& value) {
65 SetUpdatedBy(std::forward<UpdatedByT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_text;
71
72 Aws::String m_updatedBy;
73 bool m_textHasBeenSet = false;
74 bool m_updatedByHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityHub
79} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
NoteUpdate & WithUpdatedBy(UpdatedByT &&value)
Definition NoteUpdate.h:64
NoteUpdate & WithText(TextT &&value)
Definition NoteUpdate.h:46
AWS_SECURITYHUB_API NoteUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedBy(UpdatedByT &&value)
Definition NoteUpdate.h:59
AWS_SECURITYHUB_API NoteUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API NoteUpdate()=default
const Aws::String & GetUpdatedBy() const
Definition NoteUpdate.h:56
const Aws::String & GetText() const
Definition NoteUpdate.h:38
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue