/** * 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 #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EKS { namespace Model { /** *

An object representing an asynchronous update.

See Also:

AWS API * Reference

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

A UUID that is used to track the update.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

A UUID that is used to track the update.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

A UUID that is used to track the update.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

A UUID that is used to track the update.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

A UUID that is used to track the update.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

A UUID that is used to track the update.

*/ inline Update& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

A UUID that is used to track the update.

*/ inline Update& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

A UUID that is used to track the update.

*/ inline Update& WithId(const char* value) { SetId(value); return *this;} /** *

The current status of the update.

*/ inline const UpdateStatus& GetStatus() const{ return m_status; } /** *

The current status of the update.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the update.

*/ inline void SetStatus(const UpdateStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the update.

*/ inline void SetStatus(UpdateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the update.

*/ inline Update& WithStatus(const UpdateStatus& value) { SetStatus(value); return *this;} /** *

The current status of the update.

*/ inline Update& WithStatus(UpdateStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The type of the update.

*/ inline const UpdateType& GetType() const{ return m_type; } /** *

The type of the update.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the update.

*/ inline void SetType(const UpdateType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the update.

*/ inline void SetType(UpdateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the update.

*/ inline Update& WithType(const UpdateType& value) { SetType(value); return *this;} /** *

The type of the update.

*/ inline Update& WithType(UpdateType&& value) { SetType(std::move(value)); return *this;} /** *

A key-value map that contains the parameters associated with the update.

*/ inline const Aws::Vector& GetParams() const{ return m_params; } /** *

A key-value map that contains the parameters associated with the update.

*/ inline bool ParamsHasBeenSet() const { return m_paramsHasBeenSet; } /** *

A key-value map that contains the parameters associated with the update.

*/ inline void SetParams(const Aws::Vector& value) { m_paramsHasBeenSet = true; m_params = value; } /** *

A key-value map that contains the parameters associated with the update.

*/ inline void SetParams(Aws::Vector&& value) { m_paramsHasBeenSet = true; m_params = std::move(value); } /** *

A key-value map that contains the parameters associated with the update.

*/ inline Update& WithParams(const Aws::Vector& value) { SetParams(value); return *this;} /** *

A key-value map that contains the parameters associated with the update.

*/ inline Update& WithParams(Aws::Vector&& value) { SetParams(std::move(value)); return *this;} /** *

A key-value map that contains the parameters associated with the update.

*/ inline Update& AddParams(const UpdateParam& value) { m_paramsHasBeenSet = true; m_params.push_back(value); return *this; } /** *

A key-value map that contains the parameters associated with the update.

*/ inline Update& AddParams(UpdateParam&& value) { m_paramsHasBeenSet = true; m_params.push_back(std::move(value)); return *this; } /** *

The Unix epoch timestamp in seconds for when the update was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The Unix epoch timestamp in seconds for when the update was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The Unix epoch timestamp in seconds for when the update was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The Unix epoch timestamp in seconds for when the update was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The Unix epoch timestamp in seconds for when the update was created.

*/ inline Update& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The Unix epoch timestamp in seconds for when the update was created.

*/ inline Update& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

Any errors associated with a Failed update.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

Any errors associated with a Failed update.

*/ inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; } /** *

Any errors associated with a Failed update.

*/ inline void SetErrors(const Aws::Vector& value) { m_errorsHasBeenSet = true; m_errors = value; } /** *

Any errors associated with a Failed update.

*/ inline void SetErrors(Aws::Vector&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); } /** *

Any errors associated with a Failed update.

*/ inline Update& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

Any errors associated with a Failed update.

*/ inline Update& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

Any errors associated with a Failed update.

*/ inline Update& AddErrors(const ErrorDetail& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; } /** *

Any errors associated with a Failed update.

*/ inline Update& AddErrors(ErrorDetail&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; UpdateStatus m_status; bool m_statusHasBeenSet = false; UpdateType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_params; bool m_paramsHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Vector m_errors; bool m_errorsHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws