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

A complex type that contains information about an operation that matches the * criteria that you specified in a ListOperations * request.

See Also:

AWS * API Reference

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

The ID for an operation.

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

The ID for an operation.

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

The ID for an operation.

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

The ID for an operation.

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

The ID for an operation.

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

The ID for an operation.

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

The ID for an operation.

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

The ID for an operation.

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

The status of the operation. Values include the following:

  • * SUBMITTED: This is the initial state immediately after you submit a * request.

  • PENDING: Cloud Map is performing the * operation.

  • SUCCESS: The operation succeeded.

  • *
  • FAIL: The operation failed. For the failure reason, see * ErrorMessage.

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

The status of the operation. Values include the following:

  • * SUBMITTED: This is the initial state immediately after you submit a * request.

  • PENDING: Cloud Map is performing the * operation.

  • SUCCESS: The operation succeeded.

  • *
  • FAIL: The operation failed. For the failure reason, see * ErrorMessage.

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

The status of the operation. Values include the following:

  • * SUBMITTED: This is the initial state immediately after you submit a * request.

  • PENDING: Cloud Map is performing the * operation.

  • SUCCESS: The operation succeeded.

  • *
  • FAIL: The operation failed. For the failure reason, see * ErrorMessage.

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

The status of the operation. Values include the following:

  • * SUBMITTED: This is the initial state immediately after you submit a * request.

  • PENDING: Cloud Map is performing the * operation.

  • SUCCESS: The operation succeeded.

  • *
  • FAIL: The operation failed. For the failure reason, see * ErrorMessage.

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

The status of the operation. Values include the following:

  • * SUBMITTED: This is the initial state immediately after you submit a * request.

  • PENDING: Cloud Map is performing the * operation.

  • SUCCESS: The operation succeeded.

  • *
  • FAIL: The operation failed. For the failure reason, see * ErrorMessage.

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

The status of the operation. Values include the following:

  • * SUBMITTED: This is the initial state immediately after you submit a * request.

  • PENDING: Cloud Map is performing the * operation.

  • SUCCESS: The operation succeeded.

  • *
  • FAIL: The operation failed. For the failure reason, see * ErrorMessage.

*/ inline OperationSummary& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; OperationStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws