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

Provides summary information for an operation that occurred on an App Runner * service.

See Also:

AWS * API Reference

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

A unique ID of this operation. It's unique in the scope of the App Runner * service.

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

A unique ID of this operation. It's unique in the scope of the App Runner * service.

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

A unique ID of this operation. It's unique in the scope of the App Runner * service.

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

A unique ID of this operation. It's unique in the scope of the App Runner * service.

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

A unique ID of this operation. It's unique in the scope of the App Runner * service.

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

A unique ID of this operation. It's unique in the scope of the App Runner * service.

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

A unique ID of this operation. It's unique in the scope of the App Runner * service.

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

A unique ID of this operation. It's unique in the scope of the App Runner * service.

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

The type of operation. It indicates a specific action that occured.

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

The type of operation. It indicates a specific action that occured.

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

The type of operation. It indicates a specific action that occured.

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

The type of operation. It indicates a specific action that occured.

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

The type of operation. It indicates a specific action that occured.

*/ inline OperationSummary& WithType(const OperationType& value) { SetType(value); return *this;} /** *

The type of operation. It indicates a specific action that occured.

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

The current state of the operation.

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

The current state of the operation.

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

The current state of the operation.

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

The current state of the operation.

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

The current state of the operation.

*/ inline OperationSummary& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;} /** *

The current state of the operation.

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

The Amazon Resource Name (ARN) of the resource that the operation acted on * (for example, an App Runner service).

*/ inline const Aws::String& GetTargetArn() const{ return m_targetArn; } /** *

The Amazon Resource Name (ARN) of the resource that the operation acted on * (for example, an App Runner service).

*/ inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the resource that the operation acted on * (for example, an App Runner service).

*/ inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } /** *

The Amazon Resource Name (ARN) of the resource that the operation acted on * (for example, an App Runner service).

*/ inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resource that the operation acted on * (for example, an App Runner service).

*/ inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the resource that the operation acted on * (for example, an App Runner service).

*/ inline OperationSummary& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource that the operation acted on * (for example, an App Runner service).

*/ inline OperationSummary& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resource that the operation acted on * (for example, an App Runner service).

*/ inline OperationSummary& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} /** *

The time when the operation started. It's in the Unix time stamp format.

*/ inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } /** *

The time when the operation started. It's in the Unix time stamp format.

*/ inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; } /** *

The time when the operation started. It's in the Unix time stamp format.

*/ inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; } /** *

The time when the operation started. It's in the Unix time stamp format.

*/ inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); } /** *

The time when the operation started. It's in the Unix time stamp format.

*/ inline OperationSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} /** *

The time when the operation started. It's in the Unix time stamp format.

*/ inline OperationSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} /** *

The time when the operation ended. It's in the Unix time stamp format.

*/ inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; } /** *

The time when the operation ended. It's in the Unix time stamp format.

*/ inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; } /** *

The time when the operation ended. It's in the Unix time stamp format.

*/ inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; } /** *

The time when the operation ended. It's in the Unix time stamp format.

*/ inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); } /** *

The time when the operation ended. It's in the Unix time stamp format.

*/ inline OperationSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;} /** *

The time when the operation ended. It's in the Unix time stamp format.

*/ inline OperationSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;} /** *

The time when the operation was last updated. It's in the Unix time stamp * format.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The time when the operation was last updated. It's in the Unix time stamp * format.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The time when the operation was last updated. It's in the Unix time stamp * format.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The time when the operation was last updated. It's in the Unix time stamp * format.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The time when the operation was last updated. It's in the Unix time stamp * format.

*/ inline OperationSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The time when the operation was last updated. It's in the Unix time stamp * format.

*/ inline OperationSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; OperationType m_type; bool m_typeHasBeenSet = false; OperationStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; Aws::Utils::DateTime m_startedAt; bool m_startedAtHasBeenSet = false; Aws::Utils::DateTime m_endedAt; bool m_endedAtHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws