/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

The updated note.

See Also:

AWS * API Reference

*/ class NoteUpdate { public: AWS_SECURITYHUB_API NoteUpdate(); AWS_SECURITYHUB_API NoteUpdate(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API NoteUpdate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The updated note text.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The updated note text.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The updated note text.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The updated note text.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The updated note text.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The updated note text.

*/ inline NoteUpdate& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The updated note text.

*/ inline NoteUpdate& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The updated note text.

*/ inline NoteUpdate& WithText(const char* value) { SetText(value); return *this;} /** *

The principal that updated the note.

*/ inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; } /** *

The principal that updated the note.

*/ inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; } /** *

The principal that updated the note.

*/ inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; } /** *

The principal that updated the note.

*/ inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); } /** *

The principal that updated the note.

*/ inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); } /** *

The principal that updated the note.

*/ inline NoteUpdate& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;} /** *

The principal that updated the note.

*/ inline NoteUpdate& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;} /** *

The principal that updated the note.

*/ inline NoteUpdate& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;} private: Aws::String m_text; bool m_textHasBeenSet = false; Aws::String m_updatedBy; bool m_updatedByHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws