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

An OpsItems that shares something in common with the current OpsItem. For * example, related OpsItems can include OpsItems with similar error messages, * impacted resources, or statuses for the impacted resource.

See * Also:

AWS * API Reference

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

The ID of an OpsItem related to the current OpsItem.

*/ inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; } /** *

The ID of an OpsItem related to the current OpsItem.

*/ inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; } /** *

The ID of an OpsItem related to the current OpsItem.

*/ inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; } /** *

The ID of an OpsItem related to the current OpsItem.

*/ inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); } /** *

The ID of an OpsItem related to the current OpsItem.

*/ inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); } /** *

The ID of an OpsItem related to the current OpsItem.

*/ inline RelatedOpsItem& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;} /** *

The ID of an OpsItem related to the current OpsItem.

*/ inline RelatedOpsItem& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;} /** *

The ID of an OpsItem related to the current OpsItem.

*/ inline RelatedOpsItem& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;} private: Aws::String m_opsItemId; bool m_opsItemIdHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws