AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Prompt.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
33 class Prompt
34 {
35 public:
36 AWS_CONNECT_API Prompt() = default;
37 AWS_CONNECT_API Prompt(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Prompt& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetPromptARN() const { return m_promptARN; }
47 inline bool PromptARNHasBeenSet() const { return m_promptARNHasBeenSet; }
48 template<typename PromptARNT = Aws::String>
49 void SetPromptARN(PromptARNT&& value) { m_promptARNHasBeenSet = true; m_promptARN = std::forward<PromptARNT>(value); }
50 template<typename PromptARNT = Aws::String>
51 Prompt& WithPromptARN(PromptARNT&& value) { SetPromptARN(std::forward<PromptARNT>(value)); return *this;}
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) { m_promptIdHasBeenSet = true; m_promptId = std::forward<PromptIdT>(value); }
62 template<typename PromptIdT = Aws::String>
63 Prompt& WithPromptId(PromptIdT&& value) { SetPromptId(std::forward<PromptIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 Prompt& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 Prompt& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 Prompt& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
102 Prompt& AddTags(TagsKeyT&& key, TagsValueT&& value) {
103 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
112 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
113 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
114 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
115 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
116 Prompt& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
118
120
123 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
124 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
125 template<typename LastModifiedRegionT = Aws::String>
126 void SetLastModifiedRegion(LastModifiedRegionT&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value); }
127 template<typename LastModifiedRegionT = Aws::String>
128 Prompt& WithLastModifiedRegion(LastModifiedRegionT&& value) { SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value)); return *this;}
130 private:
131
132 Aws::String m_promptARN;
133 bool m_promptARNHasBeenSet = false;
134
135 Aws::String m_promptId;
136 bool m_promptIdHasBeenSet = false;
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
145 bool m_tagsHasBeenSet = false;
146
147 Aws::Utils::DateTime m_lastModifiedTime{};
148 bool m_lastModifiedTimeHasBeenSet = false;
149
150 Aws::String m_lastModifiedRegion;
151 bool m_lastModifiedRegionHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Connect
156} // namespace Aws
AWS_CONNECT_API Prompt & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PromptARNHasBeenSet() const
Definition Prompt.h:47
Prompt & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Prompt.h:102
Prompt & WithLastModifiedRegion(LastModifiedRegionT &&value)
Definition Prompt.h:128
AWS_CONNECT_API Prompt(Aws::Utils::Json::JsonView jsonValue)
Prompt & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Prompt.h:116
void SetDescription(DescriptionT &&value)
Definition Prompt.h:85
Prompt & WithDescription(DescriptionT &&value)
Definition Prompt.h:87
bool NameHasBeenSet() const
Definition Prompt.h:71
bool DescriptionHasBeenSet() const
Definition Prompt.h:83
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:114
const Aws::String & GetName() const
Definition Prompt.h:70
const Aws::String & GetPromptARN() const
Definition Prompt.h:46
void SetLastModifiedRegion(LastModifiedRegionT &&value)
Definition Prompt.h:126
bool LastModifiedTimeHasBeenSet() const
Definition Prompt.h:112
const Aws::String & GetDescription() const
Definition Prompt.h:82
const Aws::String & GetPromptId() const
Definition Prompt.h:58
Prompt & WithPromptId(PromptIdT &&value)
Definition Prompt.h:63
void SetTags(TagsT &&value)
Definition Prompt.h:98
Prompt & WithName(NameT &&value)
Definition Prompt.h:75
bool LastModifiedRegionHasBeenSet() const
Definition Prompt.h:124
bool TagsHasBeenSet() const
Definition Prompt.h:96
const Aws::String & GetLastModifiedRegion() const
Definition Prompt.h:123
AWS_CONNECT_API Prompt()=default
Prompt & WithPromptARN(PromptARNT &&value)
Definition Prompt.h:51
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Prompt.h:95
void SetPromptARN(PromptARNT &&value)
Definition Prompt.h:49
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Prompt.h:111
Prompt & WithTags(TagsT &&value)
Definition Prompt.h:100
void SetName(NameT &&value)
Definition Prompt.h:73
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