/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the status of the last update on the environment, and any errors
* that were encountered.See Also:
AWS API
* Reference
The day and time of the last update on the environment.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The day and time of the last update on the environment.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The day and time of the last update on the environment.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The day and time of the last update on the environment.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The day and time of the last update on the environment.
*/ inline LastUpdate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The day and time of the last update on the environment.
*/ inline LastUpdate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The error that was encountered during the last update of the environment.
*/ inline const UpdateError& GetError() const{ return m_error; } /** *The error that was encountered during the last update of the environment.
*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *The error that was encountered during the last update of the environment.
*/ inline void SetError(const UpdateError& value) { m_errorHasBeenSet = true; m_error = value; } /** *The error that was encountered during the last update of the environment.
*/ inline void SetError(UpdateError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *The error that was encountered during the last update of the environment.
*/ inline LastUpdate& WithError(const UpdateError& value) { SetError(value); return *this;} /** *The error that was encountered during the last update of the environment.
*/ inline LastUpdate& WithError(UpdateError&& value) { SetError(std::move(value)); return *this;} /** *The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.
*/ inline const Aws::String& GetSource() const{ return m_source; } /** *The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.
*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.
*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.
*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.
*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.
*/ inline LastUpdate& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.
*/ inline LastUpdate& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *The source of the last update to the environment. Includes internal processes * by Amazon MWAA, such as an environment maintenance update.
*/ inline LastUpdate& WithSource(const char* value) { SetSource(value); return *this;} /** *The status of the last update on the environment.
*/ inline const UpdateStatus& GetStatus() const{ return m_status; } /** *The status of the last update on the environment.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the last update on the environment.
*/ inline void SetStatus(const UpdateStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the last update on the environment.
*/ inline void SetStatus(UpdateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the last update on the environment.
*/ inline LastUpdate& WithStatus(const UpdateStatus& value) { SetStatus(value); return *this;} /** *The status of the last update on the environment.
*/ inline LastUpdate& WithStatus(UpdateStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; UpdateError m_error; bool m_errorHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; UpdateStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace MWAA } // namespace Aws