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

Used as one of the elements of the AssessmentRun data * type.

See Also:

AWS * API Reference

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

The last time the assessment run state changed.

*/ inline const Aws::Utils::DateTime& GetStateChangedAt() const{ return m_stateChangedAt; } /** *

The last time the assessment run state changed.

*/ inline bool StateChangedAtHasBeenSet() const { return m_stateChangedAtHasBeenSet; } /** *

The last time the assessment run state changed.

*/ inline void SetStateChangedAt(const Aws::Utils::DateTime& value) { m_stateChangedAtHasBeenSet = true; m_stateChangedAt = value; } /** *

The last time the assessment run state changed.

*/ inline void SetStateChangedAt(Aws::Utils::DateTime&& value) { m_stateChangedAtHasBeenSet = true; m_stateChangedAt = std::move(value); } /** *

The last time the assessment run state changed.

*/ inline AssessmentRunStateChange& WithStateChangedAt(const Aws::Utils::DateTime& value) { SetStateChangedAt(value); return *this;} /** *

The last time the assessment run state changed.

*/ inline AssessmentRunStateChange& WithStateChangedAt(Aws::Utils::DateTime&& value) { SetStateChangedAt(std::move(value)); return *this;} /** *

The assessment run state.

*/ inline const AssessmentRunState& GetState() const{ return m_state; } /** *

The assessment run state.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The assessment run state.

*/ inline void SetState(const AssessmentRunState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The assessment run state.

*/ inline void SetState(AssessmentRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The assessment run state.

*/ inline AssessmentRunStateChange& WithState(const AssessmentRunState& value) { SetState(value); return *this;} /** *

The assessment run state.

*/ inline AssessmentRunStateChange& WithState(AssessmentRunState&& value) { SetState(std::move(value)); return *this;} private: Aws::Utils::DateTime m_stateChangedAt; bool m_stateChangedAtHasBeenSet = false; AssessmentRunState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws