AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ContentType& GetContentType() const{ return m_contentType; }
47 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
48 inline void SetContentType(const ContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
49 inline void SetContentType(ContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
50 inline Message& WithContentType(const ContentType& value) { SetContentType(value); return *this;}
51 inline Message& WithContentType(ContentType&& value) { SetContentType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetContent() const{ return m_content; }
59 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
60 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
61 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
62 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
63 inline Message& WithContent(const Aws::String& value) { SetContent(value); return *this;}
64 inline Message& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
65 inline Message& WithContent(const char* value) { SetContent(value); return *this;}
67
69
74 inline int GetGroupNumber() const{ return m_groupNumber; }
75 inline bool GroupNumberHasBeenSet() const { return m_groupNumberHasBeenSet; }
76 inline void SetGroupNumber(int value) { m_groupNumberHasBeenSet = true; m_groupNumber = value; }
77 inline Message& WithGroupNumber(int value) { SetGroupNumber(value); return *this;}
79 private:
80
81 ContentType m_contentType;
82 bool m_contentTypeHasBeenSet = false;
83
84 Aws::String m_content;
85 bool m_contentHasBeenSet = false;
86
87 int m_groupNumber;
88 bool m_groupNumberHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace LexModelBuildingService
93} // namespace Aws
void SetContentType(ContentType &&value)
Definition Message.h:49
void SetContent(Aws::String &&value)
Definition Message.h:61
AWS_LEXMODELBUILDINGSERVICE_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(const ContentType &value)
Definition Message.h:48
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Message & WithContentType(const ContentType &value)
Definition Message.h:50
const Aws::String & GetContent() const
Definition Message.h:58
AWS_LEXMODELBUILDINGSERVICE_API Message()
Message & WithContent(Aws::String &&value)
Definition Message.h:64
void SetContent(const Aws::String &value)
Definition Message.h:60
Message & WithContentType(ContentType &&value)
Definition Message.h:51
Message & WithContent(const Aws::String &value)
Definition Message.h:63
AWS_LEXMODELBUILDINGSERVICE_API Message(Aws::Utils::Json::JsonView jsonValue)
const ContentType & GetContentType() const
Definition Message.h:46
Message & WithContent(const char *value)
Definition Message.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue