AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetectDominantLanguageItemResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/DominantLanguage.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
35 {
36 public:
40 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetIndex() const{ return m_index; }
48 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
49 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
50 inline BatchDetectDominantLanguageItemResult& WithIndex(int value) { SetIndex(value); return *this;}
52
54
58 inline const Aws::Vector<DominantLanguage>& GetLanguages() const{ return m_languages; }
59 inline bool LanguagesHasBeenSet() const { return m_languagesHasBeenSet; }
60 inline void SetLanguages(const Aws::Vector<DominantLanguage>& value) { m_languagesHasBeenSet = true; m_languages = value; }
61 inline void SetLanguages(Aws::Vector<DominantLanguage>&& value) { m_languagesHasBeenSet = true; m_languages = std::move(value); }
64 inline BatchDetectDominantLanguageItemResult& AddLanguages(const DominantLanguage& value) { m_languagesHasBeenSet = true; m_languages.push_back(value); return *this; }
65 inline BatchDetectDominantLanguageItemResult& AddLanguages(DominantLanguage&& value) { m_languagesHasBeenSet = true; m_languages.push_back(std::move(value)); return *this; }
67 private:
68
69 int m_index;
70 bool m_indexHasBeenSet = false;
71
73 bool m_languagesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Comprehend
78} // namespace Aws
AWS_COMPREHEND_API BatchDetectDominantLanguageItemResult(Aws::Utils::Json::JsonView jsonValue)
BatchDetectDominantLanguageItemResult & AddLanguages(DominantLanguage &&value)
BatchDetectDominantLanguageItemResult & WithLanguages(Aws::Vector< DominantLanguage > &&value)
BatchDetectDominantLanguageItemResult & AddLanguages(const DominantLanguage &value)
BatchDetectDominantLanguageItemResult & WithLanguages(const Aws::Vector< DominantLanguage > &value)
AWS_COMPREHEND_API BatchDetectDominantLanguageItemResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue