AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetCaseRuleResponse.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/DateTime.h>
10#include <aws/connectcases/model/CaseRuleDetails.h>
11#include <aws/core/utils/memory/stl/AWSMap.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
39 {
40 public:
41 AWS_CONNECTCASES_API GetCaseRuleResponse() = default;
42 AWS_CONNECTCASES_API GetCaseRuleResponse(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetCaseRuleArn() const { return m_caseRuleArn; }
52 inline bool CaseRuleArnHasBeenSet() const { return m_caseRuleArnHasBeenSet; }
53 template<typename CaseRuleArnT = Aws::String>
54 void SetCaseRuleArn(CaseRuleArnT&& value) { m_caseRuleArnHasBeenSet = true; m_caseRuleArn = std::forward<CaseRuleArnT>(value); }
55 template<typename CaseRuleArnT = Aws::String>
56 GetCaseRuleResponse& WithCaseRuleArn(CaseRuleArnT&& value) { SetCaseRuleArn(std::forward<CaseRuleArnT>(value)); return *this;}
58
60
63 inline const Aws::String& GetCaseRuleId() const { return m_caseRuleId; }
64 inline bool CaseRuleIdHasBeenSet() const { return m_caseRuleIdHasBeenSet; }
65 template<typename CaseRuleIdT = Aws::String>
66 void SetCaseRuleId(CaseRuleIdT&& value) { m_caseRuleIdHasBeenSet = true; m_caseRuleId = std::forward<CaseRuleIdT>(value); }
67 template<typename CaseRuleIdT = Aws::String>
68 GetCaseRuleResponse& WithCaseRuleId(CaseRuleIdT&& value) { SetCaseRuleId(std::forward<CaseRuleIdT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
76 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
77 template<typename CreatedTimeT = Aws::Utils::DateTime>
78 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
79 template<typename CreatedTimeT = Aws::Utils::DateTime>
80 GetCaseRuleResponse& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
82
84
87 inline bool GetDeleted() const { return m_deleted; }
88 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
89 inline void SetDeleted(bool value) { m_deletedHasBeenSet = true; m_deleted = value; }
90 inline GetCaseRuleResponse& WithDeleted(bool value) { SetDeleted(value); return *this;}
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 GetCaseRuleResponse& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
110 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
111 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
112 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
113 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
114 GetCaseRuleResponse& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
116
118
121 inline const Aws::String& GetName() const { return m_name; }
122 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
123 template<typename NameT = Aws::String>
124 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
125 template<typename NameT = Aws::String>
126 GetCaseRuleResponse& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
128
130
133 inline const CaseRuleDetails& GetRule() const { return m_rule; }
134 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
135 template<typename RuleT = CaseRuleDetails>
136 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
137 template<typename RuleT = CaseRuleDetails>
138 GetCaseRuleResponse& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
140
142
146 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
150 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 GetCaseRuleResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
152 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
153 GetCaseRuleResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
154 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
155 }
157 private:
158
159 Aws::String m_caseRuleArn;
160 bool m_caseRuleArnHasBeenSet = false;
161
162 Aws::String m_caseRuleId;
163 bool m_caseRuleIdHasBeenSet = false;
164
165 Aws::Utils::DateTime m_createdTime{};
166 bool m_createdTimeHasBeenSet = false;
167
168 bool m_deleted{false};
169 bool m_deletedHasBeenSet = false;
170
171 Aws::String m_description;
172 bool m_descriptionHasBeenSet = false;
173
174 Aws::Utils::DateTime m_lastModifiedTime{};
175 bool m_lastModifiedTimeHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 CaseRuleDetails m_rule;
181 bool m_ruleHasBeenSet = false;
182
184 bool m_tagsHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace ConnectCases
189} // namespace Aws
GetCaseRuleResponse & WithTags(TagsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
GetCaseRuleResponse & WithDescription(DescriptionT &&value)
GetCaseRuleResponse & WithCreatedTime(CreatedTimeT &&value)
AWS_CONNECTCASES_API GetCaseRuleResponse(Aws::Utils::Json::JsonView jsonValue)
GetCaseRuleResponse & WithDeleted(bool value)
GetCaseRuleResponse & WithRule(RuleT &&value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
GetCaseRuleResponse & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECTCASES_API GetCaseRuleResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API GetCaseRuleResponse()=default
GetCaseRuleResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetCaseRuleResponse & WithCaseRuleArn(CaseRuleArnT &&value)
GetCaseRuleResponse & WithCaseRuleId(CaseRuleIdT &&value)
GetCaseRuleResponse & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
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