/** * 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 { /** *

A user-defined note added to a finding.

See Also:

AWS * API Reference

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

The text of a note.

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

The text of a note.

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

The text of a note.

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

The text of a note.

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

The text of a note.

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

The text of a note.

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

The text of a note.

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

The text of a note.

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

The principal that created a note.

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

The principal that created a note.

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

The principal that created a note.

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

The principal that created a note.

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

The principal that created a note.

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

The principal that created a note.

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

The principal that created a note.

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

The principal that created a note.

*/ inline Note& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;} /** *

The timestamp of when the note was updated.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetUpdatedAt() const{ return m_updatedAt; } /** *

The timestamp of when the note was updated.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The timestamp of when the note was updated.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetUpdatedAt(const Aws::String& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The timestamp of when the note was updated.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetUpdatedAt(Aws::String&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The timestamp of when the note was updated.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetUpdatedAt(const char* value) { m_updatedAtHasBeenSet = true; m_updatedAt.assign(value); } /** *

The timestamp of when the note was updated.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline Note& WithUpdatedAt(const Aws::String& value) { SetUpdatedAt(value); return *this;} /** *

The timestamp of when the note was updated.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline Note& WithUpdatedAt(Aws::String&& value) { SetUpdatedAt(std::move(value)); return *this;} /** *

The timestamp of when the note was updated.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline Note& WithUpdatedAt(const char* value) { SetUpdatedAt(value); return *this;} private: Aws::String m_text; bool m_textHasBeenSet = false; Aws::String m_updatedBy; bool m_updatedByHasBeenSet = false; Aws::String m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws