AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CategoryProperties.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/transcribe/TranscribeService_EXPORTS.h>
11#include <aws/transcribe/model/InputType.h>
12#include <aws/transcribe/model/Rule.h>
13#include <aws/transcribe/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace TranscribeService {
25namespace Model {
26
35 public:
36 AWS_TRANSCRIBESERVICE_API CategoryProperties() = default;
37 AWS_TRANSCRIBESERVICE_API CategoryProperties(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TRANSCRIBESERVICE_API CategoryProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetCategoryName() const { return m_categoryName; }
47 inline bool CategoryNameHasBeenSet() const { return m_categoryNameHasBeenSet; }
48 template <typename CategoryNameT = Aws::String>
49 void SetCategoryName(CategoryNameT&& value) {
50 m_categoryNameHasBeenSet = true;
51 m_categoryName = std::forward<CategoryNameT>(value);
52 }
53 template <typename CategoryNameT = Aws::String>
54 CategoryProperties& WithCategoryName(CategoryNameT&& value) {
55 SetCategoryName(std::forward<CategoryNameT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
66 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
67 template <typename RulesT = Aws::Vector<Rule>>
68 void SetRules(RulesT&& value) {
69 m_rulesHasBeenSet = true;
70 m_rules = std::forward<RulesT>(value);
71 }
72 template <typename RulesT = Aws::Vector<Rule>>
73 CategoryProperties& WithRules(RulesT&& value) {
74 SetRules(std::forward<RulesT>(value));
75 return *this;
76 }
77 template <typename RulesT = Rule>
78 CategoryProperties& AddRules(RulesT&& value) {
79 m_rulesHasBeenSet = true;
80 m_rules.emplace_back(std::forward<RulesT>(value));
81 return *this;
82 }
84
86
92 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
93 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
94 template <typename CreateTimeT = Aws::Utils::DateTime>
95 void SetCreateTime(CreateTimeT&& value) {
96 m_createTimeHasBeenSet = true;
97 m_createTime = std::forward<CreateTimeT>(value);
98 }
99 template <typename CreateTimeT = Aws::Utils::DateTime>
100 CategoryProperties& WithCreateTime(CreateTimeT&& value) {
101 SetCreateTime(std::forward<CreateTimeT>(value));
102 return *this;
103 }
105
107
113 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
114 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
115 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
116 void SetLastUpdateTime(LastUpdateTimeT&& value) {
117 m_lastUpdateTimeHasBeenSet = true;
118 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
119 }
120 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
121 CategoryProperties& WithLastUpdateTime(LastUpdateTimeT&& value) {
122 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Vector<Tag>>
140 CategoryProperties& WithTags(TagsT&& value) {
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsT = Tag>
145 CategoryProperties& AddTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace_back(std::forward<TagsT>(value));
148 return *this;
149 }
151
153
159 inline InputType GetInputType() const { return m_inputType; }
160 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
161 inline void SetInputType(InputType value) {
162 m_inputTypeHasBeenSet = true;
163 m_inputType = value;
164 }
166 SetInputType(value);
167 return *this;
168 }
170 private:
171 Aws::String m_categoryName;
172
173 Aws::Vector<Rule> m_rules;
174
175 Aws::Utils::DateTime m_createTime{};
176
177 Aws::Utils::DateTime m_lastUpdateTime{};
178
179 Aws::Vector<Tag> m_tags;
180
181 InputType m_inputType{InputType::NOT_SET};
182 bool m_categoryNameHasBeenSet = false;
183 bool m_rulesHasBeenSet = false;
184 bool m_createTimeHasBeenSet = false;
185 bool m_lastUpdateTimeHasBeenSet = false;
186 bool m_tagsHasBeenSet = false;
187 bool m_inputTypeHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace TranscribeService
192} // namespace Aws
CategoryProperties & AddRules(RulesT &&value)
CategoryProperties & WithInputType(InputType value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
CategoryProperties & WithLastUpdateTime(LastUpdateTimeT &&value)
const Aws::Vector< Rule > & GetRules() const
const Aws::Utils::DateTime & GetCreateTime() const
AWS_TRANSCRIBESERVICE_API CategoryProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CategoryProperties & WithRules(RulesT &&value)
CategoryProperties & WithCreateTime(CreateTimeT &&value)
CategoryProperties & WithCategoryName(CategoryNameT &&value)
AWS_TRANSCRIBESERVICE_API CategoryProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESERVICE_API CategoryProperties()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue