AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
UtteranceData.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelBuildingService {
21namespace Model {
22
30 public:
31 AWS_LEXMODELBUILDINGSERVICE_API UtteranceData() = default;
32 AWS_LEXMODELBUILDINGSERVICE_API UtteranceData(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELBUILDINGSERVICE_API UtteranceData& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetUtteranceString() const { return m_utteranceString; }
42 inline bool UtteranceStringHasBeenSet() const { return m_utteranceStringHasBeenSet; }
43 template <typename UtteranceStringT = Aws::String>
44 void SetUtteranceString(UtteranceStringT&& value) {
45 m_utteranceStringHasBeenSet = true;
46 m_utteranceString = std::forward<UtteranceStringT>(value);
47 }
48 template <typename UtteranceStringT = Aws::String>
49 UtteranceData& WithUtteranceString(UtteranceStringT&& value) {
50 SetUtteranceString(std::forward<UtteranceStringT>(value));
51 return *this;
52 }
54
56
59 inline int GetCount() const { return m_count; }
60 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
61 inline void SetCount(int value) {
62 m_countHasBeenSet = true;
63 m_count = value;
64 }
65 inline UtteranceData& WithCount(int value) {
66 SetCount(value);
67 return *this;
68 }
70
72
75 inline int GetDistinctUsers() const { return m_distinctUsers; }
76 inline bool DistinctUsersHasBeenSet() const { return m_distinctUsersHasBeenSet; }
77 inline void SetDistinctUsers(int value) {
78 m_distinctUsersHasBeenSet = true;
79 m_distinctUsers = value;
80 }
81 inline UtteranceData& WithDistinctUsers(int value) {
82 SetDistinctUsers(value);
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetFirstUtteredDate() const { return m_firstUtteredDate; }
92 inline bool FirstUtteredDateHasBeenSet() const { return m_firstUtteredDateHasBeenSet; }
93 template <typename FirstUtteredDateT = Aws::Utils::DateTime>
94 void SetFirstUtteredDate(FirstUtteredDateT&& value) {
95 m_firstUtteredDateHasBeenSet = true;
96 m_firstUtteredDate = std::forward<FirstUtteredDateT>(value);
97 }
98 template <typename FirstUtteredDateT = Aws::Utils::DateTime>
99 UtteranceData& WithFirstUtteredDate(FirstUtteredDateT&& value) {
100 SetFirstUtteredDate(std::forward<FirstUtteredDateT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Utils::DateTime& GetLastUtteredDate() const { return m_lastUtteredDate; }
110 inline bool LastUtteredDateHasBeenSet() const { return m_lastUtteredDateHasBeenSet; }
111 template <typename LastUtteredDateT = Aws::Utils::DateTime>
112 void SetLastUtteredDate(LastUtteredDateT&& value) {
113 m_lastUtteredDateHasBeenSet = true;
114 m_lastUtteredDate = std::forward<LastUtteredDateT>(value);
115 }
116 template <typename LastUtteredDateT = Aws::Utils::DateTime>
117 UtteranceData& WithLastUtteredDate(LastUtteredDateT&& value) {
118 SetLastUtteredDate(std::forward<LastUtteredDateT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_utteranceString;
124
125 int m_count{0};
126
127 int m_distinctUsers{0};
128
129 Aws::Utils::DateTime m_firstUtteredDate{};
130
131 Aws::Utils::DateTime m_lastUtteredDate{};
132 bool m_utteranceStringHasBeenSet = false;
133 bool m_countHasBeenSet = false;
134 bool m_distinctUsersHasBeenSet = false;
135 bool m_firstUtteredDateHasBeenSet = false;
136 bool m_lastUtteredDateHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace LexModelBuildingService
141} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
UtteranceData & WithFirstUtteredDate(FirstUtteredDateT &&value)
void SetLastUtteredDate(LastUtteredDateT &&value)
AWS_LEXMODELBUILDINGSERVICE_API UtteranceData & operator=(Aws::Utils::Json::JsonView jsonValue)
UtteranceData & WithUtteranceString(UtteranceStringT &&value)
const Aws::Utils::DateTime & GetLastUtteredDate() const
AWS_LEXMODELBUILDINGSERVICE_API UtteranceData()=default
AWS_LEXMODELBUILDINGSERVICE_API UtteranceData(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetFirstUtteredDate() const
UtteranceData & WithLastUtteredDate(LastUtteredDateT &&value)
void SetUtteranceString(UtteranceStringT &&value)
void SetFirstUtteredDate(FirstUtteredDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue