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

An array of objects that provides details about a change to a finding, * including the Amazon Web Services Security Finding Format (ASFF) field that * changed, the value of the field before the change, and the value of the field * after the change.

See Also:

AWS * API Reference

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

The ASFF field that changed during the finding change event.

*/ inline const Aws::String& GetUpdatedField() const{ return m_updatedField; } /** *

The ASFF field that changed during the finding change event.

*/ inline bool UpdatedFieldHasBeenSet() const { return m_updatedFieldHasBeenSet; } /** *

The ASFF field that changed during the finding change event.

*/ inline void SetUpdatedField(const Aws::String& value) { m_updatedFieldHasBeenSet = true; m_updatedField = value; } /** *

The ASFF field that changed during the finding change event.

*/ inline void SetUpdatedField(Aws::String&& value) { m_updatedFieldHasBeenSet = true; m_updatedField = std::move(value); } /** *

The ASFF field that changed during the finding change event.

*/ inline void SetUpdatedField(const char* value) { m_updatedFieldHasBeenSet = true; m_updatedField.assign(value); } /** *

The ASFF field that changed during the finding change event.

*/ inline FindingHistoryUpdate& WithUpdatedField(const Aws::String& value) { SetUpdatedField(value); return *this;} /** *

The ASFF field that changed during the finding change event.

*/ inline FindingHistoryUpdate& WithUpdatedField(Aws::String&& value) { SetUpdatedField(std::move(value)); return *this;} /** *

The ASFF field that changed during the finding change event.

*/ inline FindingHistoryUpdate& WithUpdatedField(const char* value) { SetUpdatedField(value); return *this;} /** *

The value of the ASFF field before the finding change event.

*/ inline const Aws::String& GetOldValue() const{ return m_oldValue; } /** *

The value of the ASFF field before the finding change event.

*/ inline bool OldValueHasBeenSet() const { return m_oldValueHasBeenSet; } /** *

The value of the ASFF field before the finding change event.

*/ inline void SetOldValue(const Aws::String& value) { m_oldValueHasBeenSet = true; m_oldValue = value; } /** *

The value of the ASFF field before the finding change event.

*/ inline void SetOldValue(Aws::String&& value) { m_oldValueHasBeenSet = true; m_oldValue = std::move(value); } /** *

The value of the ASFF field before the finding change event.

*/ inline void SetOldValue(const char* value) { m_oldValueHasBeenSet = true; m_oldValue.assign(value); } /** *

The value of the ASFF field before the finding change event.

*/ inline FindingHistoryUpdate& WithOldValue(const Aws::String& value) { SetOldValue(value); return *this;} /** *

The value of the ASFF field before the finding change event.

*/ inline FindingHistoryUpdate& WithOldValue(Aws::String&& value) { SetOldValue(std::move(value)); return *this;} /** *

The value of the ASFF field before the finding change event.

*/ inline FindingHistoryUpdate& WithOldValue(const char* value) { SetOldValue(value); return *this;} /** *

The value of the ASFF field after the finding change event. To preserve * storage and readability, Security Hub omits this value if * FindingHistoryRecord exceeds database limits.

*/ inline const Aws::String& GetNewValue() const{ return m_newValue; } /** *

The value of the ASFF field after the finding change event. To preserve * storage and readability, Security Hub omits this value if * FindingHistoryRecord exceeds database limits.

*/ inline bool NewValueHasBeenSet() const { return m_newValueHasBeenSet; } /** *

The value of the ASFF field after the finding change event. To preserve * storage and readability, Security Hub omits this value if * FindingHistoryRecord exceeds database limits.

*/ inline void SetNewValue(const Aws::String& value) { m_newValueHasBeenSet = true; m_newValue = value; } /** *

The value of the ASFF field after the finding change event. To preserve * storage and readability, Security Hub omits this value if * FindingHistoryRecord exceeds database limits.

*/ inline void SetNewValue(Aws::String&& value) { m_newValueHasBeenSet = true; m_newValue = std::move(value); } /** *

The value of the ASFF field after the finding change event. To preserve * storage and readability, Security Hub omits this value if * FindingHistoryRecord exceeds database limits.

*/ inline void SetNewValue(const char* value) { m_newValueHasBeenSet = true; m_newValue.assign(value); } /** *

The value of the ASFF field after the finding change event. To preserve * storage and readability, Security Hub omits this value if * FindingHistoryRecord exceeds database limits.

*/ inline FindingHistoryUpdate& WithNewValue(const Aws::String& value) { SetNewValue(value); return *this;} /** *

The value of the ASFF field after the finding change event. To preserve * storage and readability, Security Hub omits this value if * FindingHistoryRecord exceeds database limits.

*/ inline FindingHistoryUpdate& WithNewValue(Aws::String&& value) { SetNewValue(std::move(value)); return *this;} /** *

The value of the ASFF field after the finding change event. To preserve * storage and readability, Security Hub omits this value if * FindingHistoryRecord exceeds database limits.

*/ inline FindingHistoryUpdate& WithNewValue(const char* value) { SetNewValue(value); return *this;} private: Aws::String m_updatedField; bool m_updatedFieldHasBeenSet = false; Aws::String m_oldValue; bool m_oldValueHasBeenSet = false; Aws::String m_newValue; bool m_newValueHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws