AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageGroup.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/Message.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API MessageGroup();
37 AWS_LEXMODELSV2_API MessageGroup(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API MessageGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Message& GetMessage() const{ return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 inline void SetMessage(const Message& value) { m_messageHasBeenSet = true; m_message = value; }
49 inline void SetMessage(Message&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
50 inline MessageGroup& WithMessage(const Message& value) { SetMessage(value); return *this;}
51 inline MessageGroup& WithMessage(Message&& value) { SetMessage(std::move(value)); return *this;}
53
55
60 inline const Aws::Vector<Message>& GetVariations() const{ return m_variations; }
61 inline bool VariationsHasBeenSet() const { return m_variationsHasBeenSet; }
62 inline void SetVariations(const Aws::Vector<Message>& value) { m_variationsHasBeenSet = true; m_variations = value; }
63 inline void SetVariations(Aws::Vector<Message>&& value) { m_variationsHasBeenSet = true; m_variations = std::move(value); }
64 inline MessageGroup& WithVariations(const Aws::Vector<Message>& value) { SetVariations(value); return *this;}
65 inline MessageGroup& WithVariations(Aws::Vector<Message>&& value) { SetVariations(std::move(value)); return *this;}
66 inline MessageGroup& AddVariations(const Message& value) { m_variationsHasBeenSet = true; m_variations.push_back(value); return *this; }
67 inline MessageGroup& AddVariations(Message&& value) { m_variationsHasBeenSet = true; m_variations.push_back(std::move(value)); return *this; }
69 private:
70
71 Message m_message;
72 bool m_messageHasBeenSet = false;
73
74 Aws::Vector<Message> m_variations;
75 bool m_variationsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace LexModelsV2
80} // namespace Aws
MessageGroup & WithMessage(const Message &value)
MessageGroup & WithMessage(Message &&value)
AWS_LEXMODELSV2_API MessageGroup(Aws::Utils::Json::JsonView jsonValue)
MessageGroup & AddVariations(const Message &value)
const Aws::Vector< Message > & GetVariations() const
MessageGroup & AddVariations(Message &&value)
void SetVariations(Aws::Vector< Message > &&value)
AWS_LEXMODELSV2_API MessageGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageGroup & WithVariations(const Aws::Vector< Message > &value)
MessageGroup & WithVariations(Aws::Vector< Message > &&value)
void SetMessage(const Message &value)
void SetVariations(const Aws::Vector< Message > &value)
AWS_LEXMODELSV2_API MessageGroup()
const Message & GetMessage() const
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue