AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchCasesResponseItem.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/connectcases/model/FieldValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCases
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECTCASES_API SearchCasesResponseItem();
38 AWS_CONNECTCASES_API SearchCasesResponseItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCaseId() const{ return m_caseId; }
48 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
49 inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
50 inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = std::move(value); }
51 inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); }
52 inline SearchCasesResponseItem& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;}
53 inline SearchCasesResponseItem& WithCaseId(Aws::String&& value) { SetCaseId(std::move(value)); return *this;}
54 inline SearchCasesResponseItem& WithCaseId(const char* value) { SetCaseId(value); return *this;}
56
58
61 inline const Aws::Vector<FieldValue>& GetFields() const{ return m_fields; }
62 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
63 inline void SetFields(const Aws::Vector<FieldValue>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
64 inline void SetFields(Aws::Vector<FieldValue>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
65 inline SearchCasesResponseItem& WithFields(const Aws::Vector<FieldValue>& value) { SetFields(value); return *this;}
66 inline SearchCasesResponseItem& WithFields(Aws::Vector<FieldValue>&& value) { SetFields(std::move(value)); return *this;}
67 inline SearchCasesResponseItem& AddFields(const FieldValue& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
68 inline SearchCasesResponseItem& AddFields(FieldValue&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
70
72
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
79 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
80 inline SearchCasesResponseItem& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
81 inline SearchCasesResponseItem& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
82 inline SearchCasesResponseItem& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
83 inline SearchCasesResponseItem& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
84 inline SearchCasesResponseItem& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
85 inline SearchCasesResponseItem& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
86 inline SearchCasesResponseItem& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
87 inline SearchCasesResponseItem& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
88 inline SearchCasesResponseItem& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
90
92
95 inline const Aws::String& GetTemplateId() const{ return m_templateId; }
96 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
97 inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
98 inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
99 inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
100 inline SearchCasesResponseItem& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
101 inline SearchCasesResponseItem& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
102 inline SearchCasesResponseItem& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
104 private:
105
106 Aws::String m_caseId;
107 bool m_caseIdHasBeenSet = false;
108
110 bool m_fieldsHasBeenSet = false;
111
113 bool m_tagsHasBeenSet = false;
114
115 Aws::String m_templateId;
116 bool m_templateIdHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ConnectCases
121} // namespace Aws
void SetFields(const Aws::Vector< FieldValue > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
SearchCasesResponseItem & AddTags(const Aws::String &key, const Aws::String &value)
SearchCasesResponseItem & AddTags(Aws::String &&key, Aws::String &&value)
SearchCasesResponseItem & WithCaseId(const Aws::String &value)
SearchCasesResponseItem & AddFields(FieldValue &&value)
SearchCasesResponseItem & WithFields(Aws::Vector< FieldValue > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SearchCasesResponseItem & AddTags(const char *key, const char *value)
SearchCasesResponseItem & WithTemplateId(const Aws::String &value)
AWS_CONNECTCASES_API SearchCasesResponseItem & operator=(Aws::Utils::Json::JsonView jsonValue)
SearchCasesResponseItem & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
SearchCasesResponseItem & AddTags(Aws::String &&key, const char *value)
SearchCasesResponseItem & AddTags(Aws::String &&key, const Aws::String &value)
SearchCasesResponseItem & WithCaseId(Aws::String &&value)
const Aws::Vector< FieldValue > & GetFields() const
SearchCasesResponseItem & WithFields(const Aws::Vector< FieldValue > &value)
SearchCasesResponseItem & WithTemplateId(Aws::String &&value)
SearchCasesResponseItem & AddFields(const FieldValue &value)
SearchCasesResponseItem & WithCaseId(const char *value)
SearchCasesResponseItem & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
SearchCasesResponseItem & AddTags(const Aws::String &key, Aws::String &&value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
SearchCasesResponseItem & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
SearchCasesResponseItem & WithTemplateId(const char *value)
void SetFields(Aws::Vector< FieldValue > &&value)
AWS_CONNECTCASES_API SearchCasesResponseItem(Aws::Utils::Json::JsonView jsonValue)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue