AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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#include <aws/crt/Optional.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ConnectCases {
26namespace Model {
27
34 public:
35 AWS_CONNECTCASES_API SearchRelatedItemsResponseItem() = default;
38 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetRelatedItemId() const { return m_relatedItemId; }
45 inline bool RelatedItemIdHasBeenSet() const { return m_relatedItemIdHasBeenSet; }
46 template <typename RelatedItemIdT = Aws::String>
47 void SetRelatedItemId(RelatedItemIdT&& value) {
48 m_relatedItemIdHasBeenSet = true;
49 m_relatedItemId = std::forward<RelatedItemIdT>(value);
50 }
51 template <typename RelatedItemIdT = Aws::String>
53 SetRelatedItemId(std::forward<RelatedItemIdT>(value));
54 return *this;
55 }
57
59
62 inline RelatedItemType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(RelatedItemType value) {
65 m_typeHasBeenSet = true;
66 m_type = value;
67 }
69 SetType(value);
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetAssociationTime() const { return m_associationTime; }
79 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
80 template <typename AssociationTimeT = Aws::Utils::DateTime>
81 void SetAssociationTime(AssociationTimeT&& value) {
82 m_associationTimeHasBeenSet = true;
83 m_associationTime = std::forward<AssociationTimeT>(value);
84 }
85 template <typename AssociationTimeT = Aws::Utils::DateTime>
87 SetAssociationTime(std::forward<AssociationTimeT>(value));
88 return *this;
89 }
91
93
96 inline const RelatedItemContent& GetContent() const { return m_content; }
97 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
98 template <typename ContentT = RelatedItemContent>
99 void SetContent(ContentT&& value) {
100 m_contentHasBeenSet = true;
101 m_content = std::forward<ContentT>(value);
102 }
103 template <typename ContentT = RelatedItemContent>
105 SetContent(std::forward<ContentT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::Crt::Optional<Aws::String>>
128 SearchRelatedItemsResponseItem& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
131 return *this;
132 }
133 inline SearchRelatedItemsResponseItem& AddTags(Aws::String key, Aws::Crt::Optional<Aws::String> value) {
134 m_tagsHasBeenSet = true;
135 m_tags.emplace(key, value);
136 return *this;
137 }
139
141
144 inline const UserUnion& GetPerformedBy() const { return m_performedBy; }
145 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
146 template <typename PerformedByT = UserUnion>
147 void SetPerformedBy(PerformedByT&& value) {
148 m_performedByHasBeenSet = true;
149 m_performedBy = std::forward<PerformedByT>(value);
150 }
151 template <typename PerformedByT = UserUnion>
153 SetPerformedBy(std::forward<PerformedByT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_relatedItemId;
159
161
162 Aws::Utils::DateTime m_associationTime{};
163
164 RelatedItemContent m_content;
165
167
168 UserUnion m_performedBy;
169 bool m_relatedItemIdHasBeenSet = false;
170 bool m_typeHasBeenSet = false;
171 bool m_associationTimeHasBeenSet = false;
172 bool m_contentHasBeenSet = false;
173 bool m_tagsHasBeenSet = false;
174 bool m_performedByHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace ConnectCases
179} // 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