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

The current status of the configuration recorder.

For a * detailed status of recording events over time, add your Config events to * CloudWatch metrics and use CloudWatch metrics.

See Also:

* AWS * API Reference

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

The name of the configuration recorder.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the configuration recorder.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the configuration recorder.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the configuration recorder.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the configuration recorder.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the configuration recorder.

*/ inline ConfigurationRecorderStatus& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the configuration recorder.

*/ inline ConfigurationRecorderStatus& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the configuration recorder.

*/ inline ConfigurationRecorderStatus& WithName(const char* value) { SetName(value); return *this;} /** *

The time the recorder was last started.

*/ inline const Aws::Utils::DateTime& GetLastStartTime() const{ return m_lastStartTime; } /** *

The time the recorder was last started.

*/ inline bool LastStartTimeHasBeenSet() const { return m_lastStartTimeHasBeenSet; } /** *

The time the recorder was last started.

*/ inline void SetLastStartTime(const Aws::Utils::DateTime& value) { m_lastStartTimeHasBeenSet = true; m_lastStartTime = value; } /** *

The time the recorder was last started.

*/ inline void SetLastStartTime(Aws::Utils::DateTime&& value) { m_lastStartTimeHasBeenSet = true; m_lastStartTime = std::move(value); } /** *

The time the recorder was last started.

*/ inline ConfigurationRecorderStatus& WithLastStartTime(const Aws::Utils::DateTime& value) { SetLastStartTime(value); return *this;} /** *

The time the recorder was last started.

*/ inline ConfigurationRecorderStatus& WithLastStartTime(Aws::Utils::DateTime&& value) { SetLastStartTime(std::move(value)); return *this;} /** *

The time the recorder was last stopped.

*/ inline const Aws::Utils::DateTime& GetLastStopTime() const{ return m_lastStopTime; } /** *

The time the recorder was last stopped.

*/ inline bool LastStopTimeHasBeenSet() const { return m_lastStopTimeHasBeenSet; } /** *

The time the recorder was last stopped.

*/ inline void SetLastStopTime(const Aws::Utils::DateTime& value) { m_lastStopTimeHasBeenSet = true; m_lastStopTime = value; } /** *

The time the recorder was last stopped.

*/ inline void SetLastStopTime(Aws::Utils::DateTime&& value) { m_lastStopTimeHasBeenSet = true; m_lastStopTime = std::move(value); } /** *

The time the recorder was last stopped.

*/ inline ConfigurationRecorderStatus& WithLastStopTime(const Aws::Utils::DateTime& value) { SetLastStopTime(value); return *this;} /** *

The time the recorder was last stopped.

*/ inline ConfigurationRecorderStatus& WithLastStopTime(Aws::Utils::DateTime&& value) { SetLastStopTime(std::move(value)); return *this;} /** *

Specifies whether or not the recorder is currently recording.

*/ inline bool GetRecording() const{ return m_recording; } /** *

Specifies whether or not the recorder is currently recording.

*/ inline bool RecordingHasBeenSet() const { return m_recordingHasBeenSet; } /** *

Specifies whether or not the recorder is currently recording.

*/ inline void SetRecording(bool value) { m_recordingHasBeenSet = true; m_recording = value; } /** *

Specifies whether or not the recorder is currently recording.

*/ inline ConfigurationRecorderStatus& WithRecording(bool value) { SetRecording(value); return *this;} /** *

The status of the latest recording event processed by the recorder.

*/ inline const RecorderStatus& GetLastStatus() const{ return m_lastStatus; } /** *

The status of the latest recording event processed by the recorder.

*/ inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; } /** *

The status of the latest recording event processed by the recorder.

*/ inline void SetLastStatus(const RecorderStatus& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; } /** *

The status of the latest recording event processed by the recorder.

*/ inline void SetLastStatus(RecorderStatus&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::move(value); } /** *

The status of the latest recording event processed by the recorder.

*/ inline ConfigurationRecorderStatus& WithLastStatus(const RecorderStatus& value) { SetLastStatus(value); return *this;} /** *

The status of the latest recording event processed by the recorder.

*/ inline ConfigurationRecorderStatus& WithLastStatus(RecorderStatus&& value) { SetLastStatus(std::move(value)); return *this;} /** *

The latest error code from when the recorder last failed.

*/ inline const Aws::String& GetLastErrorCode() const{ return m_lastErrorCode; } /** *

The latest error code from when the recorder last failed.

*/ inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; } /** *

The latest error code from when the recorder last failed.

*/ inline void SetLastErrorCode(const Aws::String& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; } /** *

The latest error code from when the recorder last failed.

*/ inline void SetLastErrorCode(Aws::String&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::move(value); } /** *

The latest error code from when the recorder last failed.

*/ inline void SetLastErrorCode(const char* value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode.assign(value); } /** *

The latest error code from when the recorder last failed.

*/ inline ConfigurationRecorderStatus& WithLastErrorCode(const Aws::String& value) { SetLastErrorCode(value); return *this;} /** *

The latest error code from when the recorder last failed.

*/ inline ConfigurationRecorderStatus& WithLastErrorCode(Aws::String&& value) { SetLastErrorCode(std::move(value)); return *this;} /** *

The latest error code from when the recorder last failed.

*/ inline ConfigurationRecorderStatus& WithLastErrorCode(const char* value) { SetLastErrorCode(value); return *this;} /** *

The latest error message from when the recorder last failed.

*/ inline const Aws::String& GetLastErrorMessage() const{ return m_lastErrorMessage; } /** *

The latest error message from when the recorder last failed.

*/ inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; } /** *

The latest error message from when the recorder last failed.

*/ inline void SetLastErrorMessage(const Aws::String& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; } /** *

The latest error message from when the recorder last failed.

*/ inline void SetLastErrorMessage(Aws::String&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::move(value); } /** *

The latest error message from when the recorder last failed.

*/ inline void SetLastErrorMessage(const char* value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage.assign(value); } /** *

The latest error message from when the recorder last failed.

*/ inline ConfigurationRecorderStatus& WithLastErrorMessage(const Aws::String& value) { SetLastErrorMessage(value); return *this;} /** *

The latest error message from when the recorder last failed.

*/ inline ConfigurationRecorderStatus& WithLastErrorMessage(Aws::String&& value) { SetLastErrorMessage(std::move(value)); return *this;} /** *

The latest error message from when the recorder last failed.

*/ inline ConfigurationRecorderStatus& WithLastErrorMessage(const char* value) { SetLastErrorMessage(value); return *this;} /** *

The time of the latest change in status of an recording event processed by * the recorder.

*/ inline const Aws::Utils::DateTime& GetLastStatusChangeTime() const{ return m_lastStatusChangeTime; } /** *

The time of the latest change in status of an recording event processed by * the recorder.

*/ inline bool LastStatusChangeTimeHasBeenSet() const { return m_lastStatusChangeTimeHasBeenSet; } /** *

The time of the latest change in status of an recording event processed by * the recorder.

*/ inline void SetLastStatusChangeTime(const Aws::Utils::DateTime& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = value; } /** *

The time of the latest change in status of an recording event processed by * the recorder.

*/ inline void SetLastStatusChangeTime(Aws::Utils::DateTime&& value) { m_lastStatusChangeTimeHasBeenSet = true; m_lastStatusChangeTime = std::move(value); } /** *

The time of the latest change in status of an recording event processed by * the recorder.

*/ inline ConfigurationRecorderStatus& WithLastStatusChangeTime(const Aws::Utils::DateTime& value) { SetLastStatusChangeTime(value); return *this;} /** *

The time of the latest change in status of an recording event processed by * the recorder.

*/ inline ConfigurationRecorderStatus& WithLastStatusChangeTime(Aws::Utils::DateTime&& value) { SetLastStatusChangeTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::DateTime m_lastStartTime; bool m_lastStartTimeHasBeenSet = false; Aws::Utils::DateTime m_lastStopTime; bool m_lastStopTimeHasBeenSet = false; bool m_recording; bool m_recordingHasBeenSet = false; RecorderStatus m_lastStatus; bool m_lastStatusHasBeenSet = false; Aws::String m_lastErrorCode; bool m_lastErrorCodeHasBeenSet = false; Aws::String m_lastErrorMessage; bool m_lastErrorMessageHasBeenSet = false; Aws::Utils::DateTime m_lastStatusChangeTime; bool m_lastStatusChangeTimeHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws