AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Prompt.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
29class Prompt {
30 public:
31 AWS_CONNECT_API Prompt() = default;
32 AWS_CONNECT_API Prompt(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Prompt& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPromptARN() const { return m_promptARN; }
41 inline bool PromptARNHasBeenSet() const { return m_promptARNHasBeenSet; }
42 template <typename PromptARNT = Aws::String>
43 void SetPromptARN(PromptARNT&& value) {
44 m_promptARNHasBeenSet = true;
45 m_promptARN = std::forward<PromptARNT>(value);
46 }
47 template <typename PromptARNT = Aws::String>
48 Prompt& WithPromptARN(PromptARNT&& value) {
49 SetPromptARN(std::forward<PromptARNT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPromptId() const { return m_promptId; }
59 inline bool PromptIdHasBeenSet() const { return m_promptIdHasBeenSet; }
60 template <typename PromptIdT = Aws::String>
61 void SetPromptId(PromptIdT&& value) {
62 m_promptIdHasBeenSet = true;
63 m_promptId = std::forward<PromptIdT>(value);
64 }
65 template <typename PromptIdT = Aws::String>
66 Prompt& WithPromptId(PromptIdT&& value) {
67 SetPromptId(std::forward<PromptIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 Prompt& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
102 Prompt& WithDescription(DescriptionT&& value) {
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags = std::forward<TagsT>(value);
119 }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 Prompt& WithTags(TagsT&& value) {
122 SetTags(std::forward<TagsT>(value));
123 return *this;
124 }
125 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 Prompt& AddTags(TagsKeyT&& key, TagsValueT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
138 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
139 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
140 void SetLastModifiedTime(LastModifiedTimeT&& value) {
141 m_lastModifiedTimeHasBeenSet = true;
142 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
143 }
144 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
145 Prompt& WithLastModifiedTime(LastModifiedTimeT&& value) {
146 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
156 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
157 template <typename LastModifiedRegionT = Aws::String>
158 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
159 m_lastModifiedRegionHasBeenSet = true;
160 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
161 }
162 template <typename LastModifiedRegionT = Aws::String>
163 Prompt& WithLastModifiedRegion(LastModifiedRegionT&& value) {
164 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_promptARN;
170
171 Aws::String m_promptId;
172
173 Aws::String m_name;
174
175 Aws::String m_description;
176
178
179 Aws::Utils::DateTime m_lastModifiedTime{};
180
181 Aws::String m_lastModifiedRegion;
182 bool m_promptARNHasBeenSet = false;
183 bool m_promptIdHasBeenSet = false;
184 bool m_nameHasBeenSet = false;
185 bool m_descriptionHasBeenSet = false;
186 bool m_tagsHasBeenSet = false;
187 bool m_lastModifiedTimeHasBeenSet = false;
188 bool m_lastModifiedRegionHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Connect
193} // namespace Aws
AWS_CONNECT_API Prompt & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PromptARNHasBeenSet() const
Definition Prompt.h:41
Prompt & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Prompt.h:126
Prompt & WithLastModifiedRegion(LastModifiedRegionT &&value)
Definition Prompt.h:163
AWS_CONNECT_API Prompt(Aws::Utils::Json::JsonView jsonValue)
Prompt & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Prompt.h:145
void SetDescription(DescriptionT &&value)
Definition Prompt.h:97
Prompt & WithDescription(DescriptionT &&value)
Definition Prompt.h:102
bool NameHasBeenSet() const
Definition Prompt.h:77
bool DescriptionHasBeenSet() const
Definition Prompt.h:95
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
bool PromptIdHasBeenSet() const
Definition Prompt.h:59
void SetPromptId(PromptIdT &&value)
Definition Prompt.h:61
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Prompt.h:140
const Aws::String & GetName() const
Definition Prompt.h:76
const Aws::String & GetPromptARN() const
Definition Prompt.h:40
void SetLastModifiedRegion(LastModifiedRegionT &&value)
Definition Prompt.h:158
bool LastModifiedTimeHasBeenSet() const
Definition Prompt.h:138
const Aws::String & GetDescription() const
Definition Prompt.h:94
const Aws::String & GetPromptId() const
Definition Prompt.h:58
Prompt & WithPromptId(PromptIdT &&value)
Definition Prompt.h:66
void SetTags(TagsT &&value)
Definition Prompt.h:116
Prompt & WithName(NameT &&value)
Definition Prompt.h:84
bool LastModifiedRegionHasBeenSet() const
Definition Prompt.h:156
bool TagsHasBeenSet() const
Definition Prompt.h:114
const Aws::String & GetLastModifiedRegion() const
Definition Prompt.h:155
AWS_CONNECT_API Prompt()=default
Prompt & WithPromptARN(PromptARNT &&value)
Definition Prompt.h:48
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Prompt.h:113
void SetPromptARN(PromptARNT &&value)
Definition Prompt.h:43
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Prompt.h:137
Prompt & WithTags(TagsT &&value)
Definition Prompt.h:121
void SetName(NameT &&value)
Definition Prompt.h:79
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