AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Statement.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lex-models/model/Message.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelBuildingService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LEXMODELBUILDINGSERVICE_API Statement();
38 AWS_LEXMODELBUILDINGSERVICE_API Statement(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELBUILDINGSERVICE_API Statement& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
48 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
49 inline void SetMessages(const Aws::Vector<Message>& value) { m_messagesHasBeenSet = true; m_messages = value; }
50 inline void SetMessages(Aws::Vector<Message>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
51 inline Statement& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
52 inline Statement& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
53 inline Statement& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
54 inline Statement& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
56
58
65 inline const Aws::String& GetResponseCard() const{ return m_responseCard; }
66 inline bool ResponseCardHasBeenSet() const { return m_responseCardHasBeenSet; }
67 inline void SetResponseCard(const Aws::String& value) { m_responseCardHasBeenSet = true; m_responseCard = value; }
68 inline void SetResponseCard(Aws::String&& value) { m_responseCardHasBeenSet = true; m_responseCard = std::move(value); }
69 inline void SetResponseCard(const char* value) { m_responseCardHasBeenSet = true; m_responseCard.assign(value); }
70 inline Statement& WithResponseCard(const Aws::String& value) { SetResponseCard(value); return *this;}
71 inline Statement& WithResponseCard(Aws::String&& value) { SetResponseCard(std::move(value)); return *this;}
72 inline Statement& WithResponseCard(const char* value) { SetResponseCard(value); return *this;}
74 private:
75
76 Aws::Vector<Message> m_messages;
77 bool m_messagesHasBeenSet = false;
78
79 Aws::String m_responseCard;
80 bool m_responseCardHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace LexModelBuildingService
85} // namespace Aws
Statement & WithResponseCard(Aws::String &&value)
Definition Statement.h:71
AWS_LEXMODELBUILDINGSERVICE_API Statement(Aws::Utils::Json::JsonView jsonValue)
Statement & AddMessages(Message &&value)
Definition Statement.h:54
Statement & WithResponseCard(const Aws::String &value)
Definition Statement.h:70
Statement & AddMessages(const Message &value)
Definition Statement.h:53
void SetMessages(Aws::Vector< Message > &&value)
Definition Statement.h:50
void SetResponseCard(const Aws::String &value)
Definition Statement.h:67
void SetResponseCard(Aws::String &&value)
Definition Statement.h:68
const Aws::Vector< Message > & GetMessages() const
Definition Statement.h:47
Statement & WithMessages(Aws::Vector< Message > &&value)
Definition Statement.h:52
AWS_LEXMODELBUILDINGSERVICE_API Statement()
const Aws::String & GetResponseCard() const
Definition Statement.h:65
void SetMessages(const Aws::Vector< Message > &value)
Definition Statement.h:49
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Statement & WithMessages(const Aws::Vector< Message > &value)
Definition Statement.h:51
Statement & WithResponseCard(const char *value)
Definition Statement.h:72
AWS_LEXMODELBUILDINGSERVICE_API Statement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue