AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CategoryProperties.h
1
6#pragma once
7#include <aws/transcribe/TranscribeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/transcribe/model/InputType.h>
12#include <aws/transcribe/model/Rule.h>
13#include <aws/transcribe/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace TranscribeService
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_TRANSCRIBESERVICE_API CategoryProperties() = default;
42 AWS_TRANSCRIBESERVICE_API CategoryProperties(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TRANSCRIBESERVICE_API CategoryProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetCategoryName() const { return m_categoryName; }
53 inline bool CategoryNameHasBeenSet() const { return m_categoryNameHasBeenSet; }
54 template<typename CategoryNameT = Aws::String>
55 void SetCategoryName(CategoryNameT&& value) { m_categoryNameHasBeenSet = true; m_categoryName = std::forward<CategoryNameT>(value); }
56 template<typename CategoryNameT = Aws::String>
57 CategoryProperties& WithCategoryName(CategoryNameT&& value) { SetCategoryName(std::forward<CategoryNameT>(value)); return *this;}
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) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
69 template<typename RulesT = Aws::Vector<Rule>>
70 CategoryProperties& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
71 template<typename RulesT = Rule>
72 CategoryProperties& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
74
76
82 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
83 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
84 template<typename CreateTimeT = Aws::Utils::DateTime>
85 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
86 template<typename CreateTimeT = Aws::Utils::DateTime>
87 CategoryProperties& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
89
91
97 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
98 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
99 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
100 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
101 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
102 CategoryProperties& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
104
106
110 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Aws::Vector<Tag>>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Aws::Vector<Tag>>
115 CategoryProperties& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
116 template<typename TagsT = Tag>
117 CategoryProperties& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
119
121
127 inline InputType GetInputType() const { return m_inputType; }
128 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
129 inline void SetInputType(InputType value) { m_inputTypeHasBeenSet = true; m_inputType = value; }
130 inline CategoryProperties& WithInputType(InputType value) { SetInputType(value); return *this;}
132 private:
133
134 Aws::String m_categoryName;
135 bool m_categoryNameHasBeenSet = false;
136
137 Aws::Vector<Rule> m_rules;
138 bool m_rulesHasBeenSet = false;
139
140 Aws::Utils::DateTime m_createTime{};
141 bool m_createTimeHasBeenSet = false;
142
143 Aws::Utils::DateTime m_lastUpdateTime{};
144 bool m_lastUpdateTimeHasBeenSet = false;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148
149 InputType m_inputType{InputType::NOT_SET};
150 bool m_inputTypeHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace TranscribeService
155} // 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