AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Language.h
1
6#pragma once
7#include <aws/translate/Translate_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 Translate
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_TRANSLATE_API Language();
35 AWS_TRANSLATE_API Language(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSLATE_API Language& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetLanguageName() const{ return m_languageName; }
45 inline bool LanguageNameHasBeenSet() const { return m_languageNameHasBeenSet; }
46 inline void SetLanguageName(const Aws::String& value) { m_languageNameHasBeenSet = true; m_languageName = value; }
47 inline void SetLanguageName(Aws::String&& value) { m_languageNameHasBeenSet = true; m_languageName = std::move(value); }
48 inline void SetLanguageName(const char* value) { m_languageNameHasBeenSet = true; m_languageName.assign(value); }
49 inline Language& WithLanguageName(const Aws::String& value) { SetLanguageName(value); return *this;}
50 inline Language& WithLanguageName(Aws::String&& value) { SetLanguageName(std::move(value)); return *this;}
51 inline Language& WithLanguageName(const char* value) { SetLanguageName(value); return *this;}
53
55
58 inline const Aws::String& GetLanguageCode() const{ return m_languageCode; }
59 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
60 inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
61 inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
62 inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); }
63 inline Language& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;}
64 inline Language& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;}
65 inline Language& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;}
67 private:
68
69 Aws::String m_languageName;
70 bool m_languageNameHasBeenSet = false;
71
72 Aws::String m_languageCode;
73 bool m_languageCodeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Translate
78} // namespace Aws
const Aws::String & GetLanguageCode() const
Definition Language.h:58
AWS_TRANSLATE_API Language()
Language & WithLanguageCode(const char *value)
Definition Language.h:65
AWS_TRANSLATE_API Language & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLanguageCode(Aws::String &&value)
Definition Language.h:61
Language & WithLanguageCode(Aws::String &&value)
Definition Language.h:64
Language & WithLanguageName(Aws::String &&value)
Definition Language.h:50
void SetLanguageCode(const Aws::String &value)
Definition Language.h:60
void SetLanguageName(const char *value)
Definition Language.h:48
Language & WithLanguageCode(const Aws::String &value)
Definition Language.h:63
bool LanguageCodeHasBeenSet() const
Definition Language.h:59
void SetLanguageName(const Aws::String &value)
Definition Language.h:46
void SetLanguageName(Aws::String &&value)
Definition Language.h:47
AWS_TRANSLATE_API Language(Aws::Utils::Json::JsonView jsonValue)
void SetLanguageCode(const char *value)
Definition Language.h:62
bool LanguageNameHasBeenSet() const
Definition Language.h:45
Language & WithLanguageName(const Aws::String &value)
Definition Language.h:49
Language & WithLanguageName(const char *value)
Definition Language.h:51
const Aws::String & GetLanguageName() const
Definition Language.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue