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

Provides details of the current status of the invoked remediation action for * that resource.

See Also:

AWS * API Reference

*/ class RemediationExecutionStatus { public: AWS_CONFIGSERVICE_API RemediationExecutionStatus(); AWS_CONFIGSERVICE_API RemediationExecutionStatus(Aws::Utils::Json::JsonView jsonValue); AWS_CONFIGSERVICE_API RemediationExecutionStatus& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; inline const ResourceKey& GetResourceKey() const{ return m_resourceKey; } inline bool ResourceKeyHasBeenSet() const { return m_resourceKeyHasBeenSet; } inline void SetResourceKey(const ResourceKey& value) { m_resourceKeyHasBeenSet = true; m_resourceKey = value; } inline void SetResourceKey(ResourceKey&& value) { m_resourceKeyHasBeenSet = true; m_resourceKey = std::move(value); } inline RemediationExecutionStatus& WithResourceKey(const ResourceKey& value) { SetResourceKey(value); return *this;} inline RemediationExecutionStatus& WithResourceKey(ResourceKey&& value) { SetResourceKey(std::move(value)); return *this;} /** *

ENUM of the values.

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

ENUM of the values.

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

ENUM of the values.

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

ENUM of the values.

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

ENUM of the values.

*/ inline RemediationExecutionStatus& WithState(const RemediationExecutionState& value) { SetState(value); return *this;} /** *

ENUM of the values.

*/ inline RemediationExecutionStatus& WithState(RemediationExecutionState&& value) { SetState(std::move(value)); return *this;} /** *

Details of every step.

*/ inline const Aws::Vector& GetStepDetails() const{ return m_stepDetails; } /** *

Details of every step.

*/ inline bool StepDetailsHasBeenSet() const { return m_stepDetailsHasBeenSet; } /** *

Details of every step.

*/ inline void SetStepDetails(const Aws::Vector& value) { m_stepDetailsHasBeenSet = true; m_stepDetails = value; } /** *

Details of every step.

*/ inline void SetStepDetails(Aws::Vector&& value) { m_stepDetailsHasBeenSet = true; m_stepDetails = std::move(value); } /** *

Details of every step.

*/ inline RemediationExecutionStatus& WithStepDetails(const Aws::Vector& value) { SetStepDetails(value); return *this;} /** *

Details of every step.

*/ inline RemediationExecutionStatus& WithStepDetails(Aws::Vector&& value) { SetStepDetails(std::move(value)); return *this;} /** *

Details of every step.

*/ inline RemediationExecutionStatus& AddStepDetails(const RemediationExecutionStep& value) { m_stepDetailsHasBeenSet = true; m_stepDetails.push_back(value); return *this; } /** *

Details of every step.

*/ inline RemediationExecutionStatus& AddStepDetails(RemediationExecutionStep&& value) { m_stepDetailsHasBeenSet = true; m_stepDetails.push_back(std::move(value)); return *this; } /** *

Start time when the remediation was executed.

*/ inline const Aws::Utils::DateTime& GetInvocationTime() const{ return m_invocationTime; } /** *

Start time when the remediation was executed.

*/ inline bool InvocationTimeHasBeenSet() const { return m_invocationTimeHasBeenSet; } /** *

Start time when the remediation was executed.

*/ inline void SetInvocationTime(const Aws::Utils::DateTime& value) { m_invocationTimeHasBeenSet = true; m_invocationTime = value; } /** *

Start time when the remediation was executed.

*/ inline void SetInvocationTime(Aws::Utils::DateTime&& value) { m_invocationTimeHasBeenSet = true; m_invocationTime = std::move(value); } /** *

Start time when the remediation was executed.

*/ inline RemediationExecutionStatus& WithInvocationTime(const Aws::Utils::DateTime& value) { SetInvocationTime(value); return *this;} /** *

Start time when the remediation was executed.

*/ inline RemediationExecutionStatus& WithInvocationTime(Aws::Utils::DateTime&& value) { SetInvocationTime(std::move(value)); return *this;} /** *

The time when the remediation execution was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The time when the remediation execution was last updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The time when the remediation execution was last updated.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The time when the remediation execution was last updated.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The time when the remediation execution was last updated.

*/ inline RemediationExecutionStatus& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The time when the remediation execution was last updated.

*/ inline RemediationExecutionStatus& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} private: ResourceKey m_resourceKey; bool m_resourceKeyHasBeenSet = false; RemediationExecutionState m_state; bool m_stateHasBeenSet = false; Aws::Vector m_stepDetails; bool m_stepDetailsHasBeenSet = false; Aws::Utils::DateTime m_invocationTime; bool m_invocationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws