AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/lex-models/model/ContentType.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 LexModelBuildingService
23{
24namespace Model
25{
26
33 class Message
34 {
35 public:
36 AWS_LEXMODELBUILDINGSERVICE_API Message() = default;
37 AWS_LEXMODELBUILDINGSERVICE_API Message(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELBUILDINGSERVICE_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline ContentType GetContentType() const { return m_contentType; }
47 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
48 inline void SetContentType(ContentType value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
49 inline Message& WithContentType(ContentType value) { SetContentType(value); return *this;}
51
53
56 inline const Aws::String& GetContent() const { return m_content; }
57 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
58 template<typename ContentT = Aws::String>
59 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
60 template<typename ContentT = Aws::String>
61 Message& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
63
65
70 inline int GetGroupNumber() const { return m_groupNumber; }
71 inline bool GroupNumberHasBeenSet() const { return m_groupNumberHasBeenSet; }
72 inline void SetGroupNumber(int value) { m_groupNumberHasBeenSet = true; m_groupNumber = value; }
73 inline Message& WithGroupNumber(int value) { SetGroupNumber(value); return *this;}
75 private:
76
77 ContentType m_contentType{ContentType::NOT_SET};
78 bool m_contentTypeHasBeenSet = false;
79
80 Aws::String m_content;
81 bool m_contentHasBeenSet = false;
82
83 int m_groupNumber{0};
84 bool m_groupNumberHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace LexModelBuildingService
89} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(ContentType value)
Definition Message.h:48
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContent() const
Definition Message.h:56
Message & WithContent(ContentT &&value)
Definition Message.h:61
AWS_LEXMODELBUILDINGSERVICE_API Message()=default
Message & WithContentType(ContentType value)
Definition Message.h:49
AWS_LEXMODELBUILDINGSERVICE_API Message(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue