/** * 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 SSMIncidents { namespace Model { /** *

Resources that responders use to triage and mitigate the * incident.

See Also:

AWS * API Reference

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

A unique ID for a RelatedItem.

Don't specify * this parameter when you add a RelatedItem by using the * UpdateRelatedItems API action.

*/ inline const Aws::String& GetGeneratedId() const{ return m_generatedId; } /** *

A unique ID for a RelatedItem.

Don't specify * this parameter when you add a RelatedItem by using the * UpdateRelatedItems API action.

*/ inline bool GeneratedIdHasBeenSet() const { return m_generatedIdHasBeenSet; } /** *

A unique ID for a RelatedItem.

Don't specify * this parameter when you add a RelatedItem by using the * UpdateRelatedItems API action.

*/ inline void SetGeneratedId(const Aws::String& value) { m_generatedIdHasBeenSet = true; m_generatedId = value; } /** *

A unique ID for a RelatedItem.

Don't specify * this parameter when you add a RelatedItem by using the * UpdateRelatedItems API action.

*/ inline void SetGeneratedId(Aws::String&& value) { m_generatedIdHasBeenSet = true; m_generatedId = std::move(value); } /** *

A unique ID for a RelatedItem.

Don't specify * this parameter when you add a RelatedItem by using the * UpdateRelatedItems API action.

*/ inline void SetGeneratedId(const char* value) { m_generatedIdHasBeenSet = true; m_generatedId.assign(value); } /** *

A unique ID for a RelatedItem.

Don't specify * this parameter when you add a RelatedItem by using the * UpdateRelatedItems API action.

*/ inline RelatedItem& WithGeneratedId(const Aws::String& value) { SetGeneratedId(value); return *this;} /** *

A unique ID for a RelatedItem.

Don't specify * this parameter when you add a RelatedItem by using the * UpdateRelatedItems API action.

*/ inline RelatedItem& WithGeneratedId(Aws::String&& value) { SetGeneratedId(std::move(value)); return *this;} /** *

A unique ID for a RelatedItem.

Don't specify * this parameter when you add a RelatedItem by using the * UpdateRelatedItems API action.

*/ inline RelatedItem& WithGeneratedId(const char* value) { SetGeneratedId(value); return *this;} /** *

Details about the related item.

*/ inline const ItemIdentifier& GetIdentifier() const{ return m_identifier; } /** *

Details about the related item.

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

Details about the related item.

*/ inline void SetIdentifier(const ItemIdentifier& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

Details about the related item.

*/ inline void SetIdentifier(ItemIdentifier&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

Details about the related item.

*/ inline RelatedItem& WithIdentifier(const ItemIdentifier& value) { SetIdentifier(value); return *this;} /** *

Details about the related item.

*/ inline RelatedItem& WithIdentifier(ItemIdentifier&& value) { SetIdentifier(std::move(value)); return *this;} /** *

The title of the related item.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The title of the related item.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The title of the related item.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The title of the related item.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The title of the related item.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The title of the related item.

*/ inline RelatedItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The title of the related item.

*/ inline RelatedItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The title of the related item.

*/ inline RelatedItem& WithTitle(const char* value) { SetTitle(value); return *this;} private: Aws::String m_generatedId; bool m_generatedIdHasBeenSet = false; ItemIdentifier m_identifier; bool m_identifierHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws