AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DominantLanguage.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Comprehend
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_COMPREHEND_API DominantLanguage();
37 AWS_COMPREHEND_API DominantLanguage(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetLanguageCode() const{ return m_languageCode; }
49 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
50 inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
51 inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
52 inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); }
53 inline DominantLanguage& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;}
54 inline DominantLanguage& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;}
55 inline DominantLanguage& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;}
57
59
63 inline double GetScore() const{ return m_score; }
64 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
65 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
66 inline DominantLanguage& WithScore(double value) { SetScore(value); return *this;}
68 private:
69
70 Aws::String m_languageCode;
71 bool m_languageCodeHasBeenSet = false;
72
73 double m_score;
74 bool m_scoreHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Comprehend
79} // namespace Aws
void SetLanguageCode(const Aws::String &value)
DominantLanguage & WithLanguageCode(const Aws::String &value)
AWS_COMPREHEND_API DominantLanguage & operator=(Aws::Utils::Json::JsonView jsonValue)
DominantLanguage & WithLanguageCode(Aws::String &&value)
DominantLanguage & WithScore(double value)
void SetLanguageCode(Aws::String &&value)
DominantLanguage & WithLanguageCode(const char *value)
const Aws::String & GetLanguageCode() const
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API DominantLanguage(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue