AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
9#include <aws/lex-models/model/ContentType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelBuildingService {
21namespace Model {
22
29class Message {
30 public:
31 AWS_LEXMODELBUILDINGSERVICE_API Message() = default;
32 AWS_LEXMODELBUILDINGSERVICE_API Message(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELBUILDINGSERVICE_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ContentType GetContentType() const { return m_contentType; }
41 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
42 inline void SetContentType(ContentType value) {
43 m_contentTypeHasBeenSet = true;
44 m_contentType = value;
45 }
47 SetContentType(value);
48 return *this;
49 }
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) {
60 m_contentHasBeenSet = true;
61 m_content = std::forward<ContentT>(value);
62 }
63 template <typename ContentT = Aws::String>
64 Message& WithContent(ContentT&& value) {
65 SetContent(std::forward<ContentT>(value));
66 return *this;
67 }
69
71
76 inline int GetGroupNumber() const { return m_groupNumber; }
77 inline bool GroupNumberHasBeenSet() const { return m_groupNumberHasBeenSet; }
78 inline void SetGroupNumber(int value) {
79 m_groupNumberHasBeenSet = true;
80 m_groupNumber = value;
81 }
82 inline Message& WithGroupNumber(int value) {
83 SetGroupNumber(value);
84 return *this;
85 }
87 private:
88 ContentType m_contentType{ContentType::NOT_SET};
89
90 Aws::String m_content;
91
92 int m_groupNumber{0};
93 bool m_contentTypeHasBeenSet = false;
94 bool m_contentHasBeenSet = false;
95 bool m_groupNumberHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace LexModelBuildingService
100} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(ContentType value)
Definition Message.h:42
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:64
AWS_LEXMODELBUILDINGSERVICE_API Message()=default
Message & WithContentType(ContentType value)
Definition Message.h:46
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