AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SupportedLanguage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/support/Support_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Support {
20namespace Model {
21
31 public:
32 AWS_SUPPORT_API SupportedLanguage() = default;
35 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCode() const { return m_code; }
42 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
43 template <typename CodeT = Aws::String>
44 void SetCode(CodeT&& value) {
45 m_codeHasBeenSet = true;
46 m_code = std::forward<CodeT>(value);
47 }
48 template <typename CodeT = Aws::String>
49 SupportedLanguage& WithCode(CodeT&& value) {
50 SetCode(std::forward<CodeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLanguage() const { return m_language; }
60 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
61 template <typename LanguageT = Aws::String>
62 void SetLanguage(LanguageT&& value) {
63 m_languageHasBeenSet = true;
64 m_language = std::forward<LanguageT>(value);
65 }
66 template <typename LanguageT = Aws::String>
67 SupportedLanguage& WithLanguage(LanguageT&& value) {
68 SetLanguage(std::forward<LanguageT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDisplay() const { return m_display; }
78 inline bool DisplayHasBeenSet() const { return m_displayHasBeenSet; }
79 template <typename DisplayT = Aws::String>
80 void SetDisplay(DisplayT&& value) {
81 m_displayHasBeenSet = true;
82 m_display = std::forward<DisplayT>(value);
83 }
84 template <typename DisplayT = Aws::String>
85 SupportedLanguage& WithDisplay(DisplayT&& value) {
86 SetDisplay(std::forward<DisplayT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_code;
92
93 Aws::String m_language;
94
95 Aws::String m_display;
96 bool m_codeHasBeenSet = false;
97 bool m_languageHasBeenSet = false;
98 bool m_displayHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Support
103} // namespace Aws
const Aws::String & GetCode() const
const Aws::String & GetDisplay() const
const Aws::String & GetLanguage() const
SupportedLanguage & WithLanguage(LanguageT &&value)
AWS_SUPPORT_API SupportedLanguage & operator=(Aws::Utils::Json::JsonView jsonValue)
SupportedLanguage & WithCode(CodeT &&value)
AWS_SUPPORT_API SupportedLanguage()=default
SupportedLanguage & WithDisplay(DisplayT &&value)
AWS_SUPPORT_API SupportedLanguage(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue