AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Alternative.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/transcribestreaming/model/Item.h>
11#include <aws/transcribestreaming/model/Entity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace TranscribeStreamingService
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative();
40 AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetTranscript() const{ return m_transcript; }
50 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
51 inline void SetTranscript(const Aws::String& value) { m_transcriptHasBeenSet = true; m_transcript = value; }
52 inline void SetTranscript(Aws::String&& value) { m_transcriptHasBeenSet = true; m_transcript = std::move(value); }
53 inline void SetTranscript(const char* value) { m_transcriptHasBeenSet = true; m_transcript.assign(value); }
54 inline Alternative& WithTranscript(const Aws::String& value) { SetTranscript(value); return *this;}
55 inline Alternative& WithTranscript(Aws::String&& value) { SetTranscript(std::move(value)); return *this;}
56 inline Alternative& WithTranscript(const char* value) { SetTranscript(value); return *this;}
58
60
64 inline const Aws::Vector<Item>& GetItems() const{ return m_items; }
65 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
66 inline void SetItems(const Aws::Vector<Item>& value) { m_itemsHasBeenSet = true; m_items = value; }
67 inline void SetItems(Aws::Vector<Item>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
68 inline Alternative& WithItems(const Aws::Vector<Item>& value) { SetItems(value); return *this;}
69 inline Alternative& WithItems(Aws::Vector<Item>&& value) { SetItems(std::move(value)); return *this;}
70 inline Alternative& AddItems(const Item& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
71 inline Alternative& AddItems(Item&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
73
75
79 inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
80 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
81 inline void SetEntities(const Aws::Vector<Entity>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
82 inline void SetEntities(Aws::Vector<Entity>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
83 inline Alternative& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
84 inline Alternative& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
85 inline Alternative& AddEntities(const Entity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
86 inline Alternative& AddEntities(Entity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
88 private:
89
90 Aws::String m_transcript;
91 bool m_transcriptHasBeenSet = false;
92
93 Aws::Vector<Item> m_items;
94 bool m_itemsHasBeenSet = false;
95
96 Aws::Vector<Entity> m_entities;
97 bool m_entitiesHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace TranscribeStreamingService
102} // namespace Aws
const Aws::Vector< Item > & GetItems() const
Definition Alternative.h:64
AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative(Aws::Utils::Json::JsonView jsonValue)
Alternative & WithItems(Aws::Vector< Item > &&value)
Definition Alternative.h:69
void SetEntities(const Aws::Vector< Entity > &value)
Definition Alternative.h:81
Alternative & WithTranscript(const char *value)
Definition Alternative.h:56
void SetItems(const Aws::Vector< Item > &value)
Definition Alternative.h:66
AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative()
AWS_TRANSCRIBESTREAMINGSERVICE_API Alternative & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEntities(Aws::Vector< Entity > &&value)
Definition Alternative.h:82
void SetItems(Aws::Vector< Item > &&value)
Definition Alternative.h:67
Alternative & AddItems(const Item &value)
Definition Alternative.h:70
Alternative & WithTranscript(Aws::String &&value)
Definition Alternative.h:55
Alternative & WithItems(const Aws::Vector< Item > &value)
Definition Alternative.h:68
Alternative & AddEntities(const Entity &value)
Definition Alternative.h:85
Alternative & WithTranscript(const Aws::String &value)
Definition Alternative.h:54
Alternative & WithEntities(const Aws::Vector< Entity > &value)
Definition Alternative.h:83
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Alternative & WithEntities(Aws::Vector< Entity > &&value)
Definition Alternative.h:84
const Aws::Vector< Entity > & GetEntities() const
Definition Alternative.h:79
void SetTranscript(const Aws::String &value)
Definition Alternative.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue