AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssociationTime(const Aws::Utils::DateTime& value) { m_associationTimeHasBeenSet = true; m_associationTime = value; }
52 inline void SetAssociationTime(Aws::Utils::DateTime&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::move(value); }
56
58
61 inline const RelatedItemContent& GetContent() const{ return m_content; }
62 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
63 inline void SetContent(const RelatedItemContent& value) { m_contentHasBeenSet = true; m_content = value; }
64 inline void SetContent(RelatedItemContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
65 inline SearchRelatedItemsResponseItem& WithContent(const RelatedItemContent& value) { SetContent(value); return *this;}
66 inline SearchRelatedItemsResponseItem& WithContent(RelatedItemContent&& value) { SetContent(std::move(value)); return *this;}
68
70
73 inline const UserUnion& GetPerformedBy() const{ return m_performedBy; }
74 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
75 inline void SetPerformedBy(const UserUnion& value) { m_performedByHasBeenSet = true; m_performedBy = value; }
76 inline void SetPerformedBy(UserUnion&& value) { m_performedByHasBeenSet = true; m_performedBy = std::move(value); }
77 inline SearchRelatedItemsResponseItem& WithPerformedBy(const UserUnion& value) { SetPerformedBy(value); return *this;}
78 inline SearchRelatedItemsResponseItem& WithPerformedBy(UserUnion&& value) { SetPerformedBy(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetRelatedItemId() const{ return m_relatedItemId; }
86 inline bool RelatedItemIdHasBeenSet() const { return m_relatedItemIdHasBeenSet; }
87 inline void SetRelatedItemId(const Aws::String& value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId = value; }
88 inline void SetRelatedItemId(Aws::String&& value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId = std::move(value); }
89 inline void SetRelatedItemId(const char* value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId.assign(value); }
91 inline SearchRelatedItemsResponseItem& WithRelatedItemId(Aws::String&& value) { SetRelatedItemId(std::move(value)); return *this;}
92 inline SearchRelatedItemsResponseItem& WithRelatedItemId(const char* value) { SetRelatedItemId(value); return *this;}
94
96
100 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
103 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline SearchRelatedItemsResponseItem& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
106 inline SearchRelatedItemsResponseItem& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107 inline SearchRelatedItemsResponseItem& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
108 inline SearchRelatedItemsResponseItem& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
109 inline SearchRelatedItemsResponseItem& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
110 inline SearchRelatedItemsResponseItem& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
111 inline SearchRelatedItemsResponseItem& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
112 inline SearchRelatedItemsResponseItem& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
114
116
119 inline const RelatedItemType& GetType() const{ return m_type; }
120 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
121 inline void SetType(const RelatedItemType& value) { m_typeHasBeenSet = true; m_type = value; }
122 inline void SetType(RelatedItemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
123 inline SearchRelatedItemsResponseItem& WithType(const RelatedItemType& value) { SetType(value); return *this;}
124 inline SearchRelatedItemsResponseItem& WithType(RelatedItemType&& value) { SetType(std::move(value)); return *this;}
126 private:
127
128 Aws::Utils::DateTime m_associationTime;
129 bool m_associationTimeHasBeenSet = false;
130
131 RelatedItemContent m_content;
132 bool m_contentHasBeenSet = false;
133
134 UserUnion m_performedBy;
135 bool m_performedByHasBeenSet = false;
136
137 Aws::String m_relatedItemId;
138 bool m_relatedItemIdHasBeenSet = false;
139
141 bool m_tagsHasBeenSet = false;
142
143 RelatedItemType m_type;
144 bool m_typeHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace ConnectCases
149} // 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