AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Alternative.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
10#include <aws/transcribestreaming/model/Entity.h>
11#include <aws/transcribestreaming/model/Item.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace TranscribeStreamingService {
23namespace Model {
24
33 public:
34 AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative() = default;
35 AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetTranscript() const { return m_transcript; }
44 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
45 template <typename TranscriptT = Aws::String>
46 void SetTranscript(TranscriptT&& value) {
47 m_transcriptHasBeenSet = true;
48 m_transcript = std::forward<TranscriptT>(value);
49 }
50 template <typename TranscriptT = Aws::String>
51 Alternative& WithTranscript(TranscriptT&& value) {
52 SetTranscript(std::forward<TranscriptT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Item>& GetItems() const { return m_items; }
63 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
64 template <typename ItemsT = Aws::Vector<Item>>
65 void SetItems(ItemsT&& value) {
66 m_itemsHasBeenSet = true;
67 m_items = std::forward<ItemsT>(value);
68 }
69 template <typename ItemsT = Aws::Vector<Item>>
70 Alternative& WithItems(ItemsT&& value) {
71 SetItems(std::forward<ItemsT>(value));
72 return *this;
73 }
74 template <typename ItemsT = Item>
75 Alternative& AddItems(ItemsT&& value) {
76 m_itemsHasBeenSet = true;
77 m_items.emplace_back(std::forward<ItemsT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Vector<Entity>& GetEntities() const { return m_entities; }
88 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
89 template <typename EntitiesT = Aws::Vector<Entity>>
90 void SetEntities(EntitiesT&& value) {
91 m_entitiesHasBeenSet = true;
92 m_entities = std::forward<EntitiesT>(value);
93 }
94 template <typename EntitiesT = Aws::Vector<Entity>>
95 Alternative& WithEntities(EntitiesT&& value) {
96 SetEntities(std::forward<EntitiesT>(value));
97 return *this;
98 }
99 template <typename EntitiesT = Entity>
100 Alternative& AddEntities(EntitiesT&& value) {
101 m_entitiesHasBeenSet = true;
102 m_entities.emplace_back(std::forward<EntitiesT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_transcript;
108
109 Aws::Vector<Item> m_items;
110
111 Aws::Vector<Entity> m_entities;
112 bool m_transcriptHasBeenSet = false;
113 bool m_itemsHasBeenSet = false;
114 bool m_entitiesHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace TranscribeStreamingService
119} // namespace Aws
const Aws::Vector< Item > & GetItems() const
Definition Alternative.h:62
AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative(Aws::Utils::Json::JsonView jsonValue)
Alternative & WithTranscript(TranscriptT &&value)
Definition Alternative.h:51
Alternative & AddEntities(EntitiesT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative()=default
Alternative & WithEntities(EntitiesT &&value)
Definition Alternative.h:95
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Entity > & GetEntities() const
Definition Alternative.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue