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

A list of items that represent RelatedItems.

See Also:

AWS * API Reference

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

Time at which a related item was associated with a case.

*/ inline const Aws::Utils::DateTime& GetAssociationTime() const{ return m_associationTime; } /** *

Time at which a related item was associated with a case.

*/ inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; } /** *

Time at which a related item was associated with a case.

*/ inline void SetAssociationTime(const Aws::Utils::DateTime& value) { m_associationTimeHasBeenSet = true; m_associationTime = value; } /** *

Time at which a related item was associated with a case.

*/ inline void SetAssociationTime(Aws::Utils::DateTime&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::move(value); } /** *

Time at which a related item was associated with a case.

*/ inline SearchRelatedItemsResponseItem& WithAssociationTime(const Aws::Utils::DateTime& value) { SetAssociationTime(value); return *this;} /** *

Time at which a related item was associated with a case.

*/ inline SearchRelatedItemsResponseItem& WithAssociationTime(Aws::Utils::DateTime&& value) { SetAssociationTime(std::move(value)); return *this;} /** *

Represents the content of a particular type of related item.

*/ inline const RelatedItemContent& GetContent() const{ return m_content; } /** *

Represents the content of a particular type of related item.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

Represents the content of a particular type of related item.

*/ inline void SetContent(const RelatedItemContent& value) { m_contentHasBeenSet = true; m_content = value; } /** *

Represents the content of a particular type of related item.

*/ inline void SetContent(RelatedItemContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

Represents the content of a particular type of related item.

*/ inline SearchRelatedItemsResponseItem& WithContent(const RelatedItemContent& value) { SetContent(value); return *this;} /** *

Represents the content of a particular type of related item.

*/ inline SearchRelatedItemsResponseItem& WithContent(RelatedItemContent&& value) { SetContent(std::move(value)); return *this;} /** *

Unique identifier of a related item.

*/ inline const Aws::String& GetRelatedItemId() const{ return m_relatedItemId; } /** *

Unique identifier of a related item.

*/ inline bool RelatedItemIdHasBeenSet() const { return m_relatedItemIdHasBeenSet; } /** *

Unique identifier of a related item.

*/ inline void SetRelatedItemId(const Aws::String& value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId = value; } /** *

Unique identifier of a related item.

*/ inline void SetRelatedItemId(Aws::String&& value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId = std::move(value); } /** *

Unique identifier of a related item.

*/ inline void SetRelatedItemId(const char* value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId.assign(value); } /** *

Unique identifier of a related item.

*/ inline SearchRelatedItemsResponseItem& WithRelatedItemId(const Aws::String& value) { SetRelatedItemId(value); return *this;} /** *

Unique identifier of a related item.

*/ inline SearchRelatedItemsResponseItem& WithRelatedItemId(Aws::String&& value) { SetRelatedItemId(std::move(value)); return *this;} /** *

Unique identifier of a related item.

*/ inline SearchRelatedItemsResponseItem& WithRelatedItemId(const char* value) { SetRelatedItemId(value); return *this;} /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline SearchRelatedItemsResponseItem& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Type of a related item.

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

Type of a related item.

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

Type of a related item.

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

Type of a related item.

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

Type of a related item.

*/ inline SearchRelatedItemsResponseItem& WithType(const RelatedItemType& value) { SetType(value); return *this;} /** *

Type of a related item.

*/ inline SearchRelatedItemsResponseItem& WithType(RelatedItemType&& value) { SetType(std::move(value)); return *this;} private: Aws::Utils::DateTime m_associationTime; bool m_associationTimeHasBeenSet = false; RelatedItemContent m_content; bool m_contentHasBeenSet = false; Aws::String m_relatedItemId; bool m_relatedItemIdHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; RelatedItemType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws