AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DefinitionDocument.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
9#include <aws/iotthingsgraph/model/DefinitionLanguage.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTThingsGraph {
21namespace Model {
22
29 public:
30 AWS_IOTTHINGSGRAPH_API DefinitionDocument() = default;
31 AWS_IOTTHINGSGRAPH_API DefinitionDocument(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTTHINGSGRAPH_API DefinitionDocument& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline DefinitionLanguage GetLanguage() const { return m_language; }
41 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
42 inline void SetLanguage(DefinitionLanguage value) {
43 m_languageHasBeenSet = true;
44 m_language = value;
45 }
47 SetLanguage(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetText() const { return m_text; }
57 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
58 template <typename TextT = Aws::String>
59 void SetText(TextT&& value) {
60 m_textHasBeenSet = true;
61 m_text = std::forward<TextT>(value);
62 }
63 template <typename TextT = Aws::String>
64 DefinitionDocument& WithText(TextT&& value) {
65 SetText(std::forward<TextT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_text;
73 bool m_languageHasBeenSet = false;
74 bool m_textHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace IoTThingsGraph
79} // namespace Aws
DefinitionDocument & WithLanguage(DefinitionLanguage value)
AWS_IOTTHINGSGRAPH_API DefinitionDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
DefinitionDocument & WithText(TextT &&value)
AWS_IOTTHINGSGRAPH_API DefinitionDocument(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTTHINGSGRAPH_API DefinitionDocument()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue