AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DefinitionDocument.h
1
6#pragma once
7#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
8#include <aws/iotthingsgraph/model/DefinitionLanguage.h>
9#include <aws/core/utils/memory/stl/AWSString.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 IoTThingsGraph
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOTTHINGSGRAPH_API DefinitionDocument();
36 AWS_IOTTHINGSGRAPH_API DefinitionDocument(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTTHINGSGRAPH_API DefinitionDocument& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const DefinitionLanguage& GetLanguage() const{ return m_language; }
47 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
48 inline void SetLanguage(const DefinitionLanguage& value) { m_languageHasBeenSet = true; m_language = value; }
49 inline void SetLanguage(DefinitionLanguage&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
50 inline DefinitionDocument& WithLanguage(const DefinitionLanguage& value) { SetLanguage(value); return *this;}
51 inline DefinitionDocument& WithLanguage(DefinitionLanguage&& value) { SetLanguage(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetText() const{ return m_text; }
59 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
60 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
61 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
62 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
63 inline DefinitionDocument& WithText(const Aws::String& value) { SetText(value); return *this;}
64 inline DefinitionDocument& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
65 inline DefinitionDocument& WithText(const char* value) { SetText(value); return *this;}
67 private:
68
69 DefinitionLanguage m_language;
70 bool m_languageHasBeenSet = false;
71
72 Aws::String m_text;
73 bool m_textHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace IoTThingsGraph
78} // namespace Aws
AWS_IOTTHINGSGRAPH_API DefinitionDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTHINGSGRAPH_API DefinitionDocument(Aws::Utils::Json::JsonView jsonValue)
DefinitionDocument & WithText(const char *value)
DefinitionDocument & WithLanguage(const DefinitionLanguage &value)
DefinitionDocument & WithText(const Aws::String &value)
DefinitionDocument & WithLanguage(DefinitionLanguage &&value)
void SetLanguage(DefinitionLanguage &&value)
AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
DefinitionDocument & WithText(Aws::String &&value)
const DefinitionLanguage & GetLanguage() const
void SetLanguage(const DefinitionLanguage &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue