/** * 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 Inspector2 { namespace Model { /** *

Contains information on when this exploit was observed.

See * Also:

AWS * API Reference

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

The date an time when the exploit was first seen.

*/ inline const Aws::Utils::DateTime& GetFirstSeen() const{ return m_firstSeen; } /** *

The date an time when the exploit was first seen.

*/ inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; } /** *

The date an time when the exploit was first seen.

*/ inline void SetFirstSeen(const Aws::Utils::DateTime& value) { m_firstSeenHasBeenSet = true; m_firstSeen = value; } /** *

The date an time when the exploit was first seen.

*/ inline void SetFirstSeen(Aws::Utils::DateTime&& value) { m_firstSeenHasBeenSet = true; m_firstSeen = std::move(value); } /** *

The date an time when the exploit was first seen.

*/ inline ExploitObserved& WithFirstSeen(const Aws::Utils::DateTime& value) { SetFirstSeen(value); return *this;} /** *

The date an time when the exploit was first seen.

*/ inline ExploitObserved& WithFirstSeen(Aws::Utils::DateTime&& value) { SetFirstSeen(std::move(value)); return *this;} /** *

The date an time when the exploit was last seen.

*/ inline const Aws::Utils::DateTime& GetLastSeen() const{ return m_lastSeen; } /** *

The date an time when the exploit was last seen.

*/ inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; } /** *

The date an time when the exploit was last seen.

*/ inline void SetLastSeen(const Aws::Utils::DateTime& value) { m_lastSeenHasBeenSet = true; m_lastSeen = value; } /** *

The date an time when the exploit was last seen.

*/ inline void SetLastSeen(Aws::Utils::DateTime&& value) { m_lastSeenHasBeenSet = true; m_lastSeen = std::move(value); } /** *

The date an time when the exploit was last seen.

*/ inline ExploitObserved& WithLastSeen(const Aws::Utils::DateTime& value) { SetLastSeen(value); return *this;} /** *

The date an time when the exploit was last seen.

*/ inline ExploitObserved& WithLastSeen(Aws::Utils::DateTime&& value) { SetLastSeen(std::move(value)); return *this;} private: Aws::Utils::DateTime m_firstSeen; bool m_firstSeenHasBeenSet = false; Aws::Utils::DateTime m_lastSeen; bool m_lastSeenHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws