AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
SearchRelatedItemsResponseItem.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/RelatedItemContent.h>
9#include <aws/connectcases/model/RelatedItemType.h>
10#include <aws/connectcases/model/UserUnion.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCases {
25namespace Model {
26
33 public:
34 AWS_CONNECTCASES_API SearchRelatedItemsResponseItem() = default;
37 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRelatedItemId() const { return m_relatedItemId; }
44 inline bool RelatedItemIdHasBeenSet() const { return m_relatedItemIdHasBeenSet; }
45 template <typename RelatedItemIdT = Aws::String>
46 void SetRelatedItemId(RelatedItemIdT&& value) {
47 m_relatedItemIdHasBeenSet = true;
48 m_relatedItemId = std::forward<RelatedItemIdT>(value);
49 }
50 template <typename RelatedItemIdT = Aws::String>
52 SetRelatedItemId(std::forward<RelatedItemIdT>(value));
53 return *this;
54 }
56
58
61 inline RelatedItemType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(RelatedItemType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetAssociationTime() const { return m_associationTime; }
78 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
79 template <typename AssociationTimeT = Aws::Utils::DateTime>
80 void SetAssociationTime(AssociationTimeT&& value) {
81 m_associationTimeHasBeenSet = true;
82 m_associationTime = std::forward<AssociationTimeT>(value);
83 }
84 template <typename AssociationTimeT = Aws::Utils::DateTime>
86 SetAssociationTime(std::forward<AssociationTimeT>(value));
87 return *this;
88 }
90
92
95 inline const RelatedItemContent& GetContent() const { return m_content; }
96 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
97 template <typename ContentT = RelatedItemContent>
98 void SetContent(ContentT&& value) {
99 m_contentHasBeenSet = true;
100 m_content = std::forward<ContentT>(value);
101 }
102 template <typename ContentT = RelatedItemContent>
104 SetContent(std::forward<ContentT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 SearchRelatedItemsResponseItem& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
130 return *this;
131 }
133
135
138 inline const UserUnion& GetPerformedBy() const { return m_performedBy; }
139 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
140 template <typename PerformedByT = UserUnion>
141 void SetPerformedBy(PerformedByT&& value) {
142 m_performedByHasBeenSet = true;
143 m_performedBy = std::forward<PerformedByT>(value);
144 }
145 template <typename PerformedByT = UserUnion>
147 SetPerformedBy(std::forward<PerformedByT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_relatedItemId;
153
155
156 Aws::Utils::DateTime m_associationTime{};
157
158 RelatedItemContent m_content;
159
161
162 UserUnion m_performedBy;
163 bool m_relatedItemIdHasBeenSet = false;
164 bool m_typeHasBeenSet = false;
165 bool m_associationTimeHasBeenSet = false;
166 bool m_contentHasBeenSet = false;
167 bool m_tagsHasBeenSet = false;
168 bool m_performedByHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace ConnectCases
173} // 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