AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchRelatedItemsResponseItem.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/connectcases/model/RelatedItemContent.h>
10#include <aws/connectcases/model/UserUnion.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/connectcases/model/RelatedItemType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConnectCases
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONNECTCASES_API SearchRelatedItemsResponseItem() = default;
42 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetAssociationTime() const { return m_associationTime; }
50 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
51 template<typename AssociationTimeT = Aws::Utils::DateTime>
52 void SetAssociationTime(AssociationTimeT&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::forward<AssociationTimeT>(value); }
53 template<typename AssociationTimeT = Aws::Utils::DateTime>
54 SearchRelatedItemsResponseItem& WithAssociationTime(AssociationTimeT&& value) { SetAssociationTime(std::forward<AssociationTimeT>(value)); return *this;}
56
58
61 inline const RelatedItemContent& GetContent() const { return m_content; }
62 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
63 template<typename ContentT = RelatedItemContent>
64 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
65 template<typename ContentT = RelatedItemContent>
66 SearchRelatedItemsResponseItem& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
68
70
73 inline const UserUnion& GetPerformedBy() const { return m_performedBy; }
74 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
75 template<typename PerformedByT = UserUnion>
76 void SetPerformedBy(PerformedByT&& value) { m_performedByHasBeenSet = true; m_performedBy = std::forward<PerformedByT>(value); }
77 template<typename PerformedByT = UserUnion>
78 SearchRelatedItemsResponseItem& WithPerformedBy(PerformedByT&& value) { SetPerformedBy(std::forward<PerformedByT>(value)); return *this;}
80
82
85 inline const Aws::String& GetRelatedItemId() const { return m_relatedItemId; }
86 inline bool RelatedItemIdHasBeenSet() const { return m_relatedItemIdHasBeenSet; }
87 template<typename RelatedItemIdT = Aws::String>
88 void SetRelatedItemId(RelatedItemIdT&& value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId = std::forward<RelatedItemIdT>(value); }
89 template<typename RelatedItemIdT = Aws::String>
90 SearchRelatedItemsResponseItem& WithRelatedItemId(RelatedItemIdT&& value) { SetRelatedItemId(std::forward<RelatedItemIdT>(value)); return *this;}
92
94
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
102 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 SearchRelatedItemsResponseItem& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
104 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 SearchRelatedItemsResponseItem& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
107 }
109
111
114 inline RelatedItemType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(RelatedItemType value) { m_typeHasBeenSet = true; m_type = value; }
117 inline SearchRelatedItemsResponseItem& WithType(RelatedItemType value) { SetType(value); return *this;}
119 private:
120
121 Aws::Utils::DateTime m_associationTime{};
122 bool m_associationTimeHasBeenSet = false;
123
124 RelatedItemContent m_content;
125 bool m_contentHasBeenSet = false;
126
127 UserUnion m_performedBy;
128 bool m_performedByHasBeenSet = false;
129
130 Aws::String m_relatedItemId;
131 bool m_relatedItemIdHasBeenSet = false;
132
134 bool m_tagsHasBeenSet = false;
135
137 bool m_typeHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace ConnectCases
142} // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue