AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ResponseSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9#include <aws/lexv2-models/model/MessageGroup.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API ResponseSpecification() = default;
32 AWS_LEXMODELSV2_API ResponseSpecification(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<MessageGroup>& GetMessageGroups() const { return m_messageGroups; }
42 inline bool MessageGroupsHasBeenSet() const { return m_messageGroupsHasBeenSet; }
43 template <typename MessageGroupsT = Aws::Vector<MessageGroup>>
44 void SetMessageGroups(MessageGroupsT&& value) {
45 m_messageGroupsHasBeenSet = true;
46 m_messageGroups = std::forward<MessageGroupsT>(value);
47 }
48 template <typename MessageGroupsT = Aws::Vector<MessageGroup>>
49 ResponseSpecification& WithMessageGroups(MessageGroupsT&& value) {
50 SetMessageGroups(std::forward<MessageGroupsT>(value));
51 return *this;
52 }
53 template <typename MessageGroupsT = MessageGroup>
54 ResponseSpecification& AddMessageGroups(MessageGroupsT&& value) {
55 m_messageGroupsHasBeenSet = true;
56 m_messageGroups.emplace_back(std::forward<MessageGroupsT>(value));
57 return *this;
58 }
60
62
66 inline bool GetAllowInterrupt() const { return m_allowInterrupt; }
67 inline bool AllowInterruptHasBeenSet() const { return m_allowInterruptHasBeenSet; }
68 inline void SetAllowInterrupt(bool value) {
69 m_allowInterruptHasBeenSet = true;
70 m_allowInterrupt = value;
71 }
73 SetAllowInterrupt(value);
74 return *this;
75 }
77 private:
78 Aws::Vector<MessageGroup> m_messageGroups;
79
80 bool m_allowInterrupt{false};
81 bool m_messageGroupsHasBeenSet = false;
82 bool m_allowInterruptHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace LexModelsV2
87} // namespace Aws
ResponseSpecification & AddMessageGroups(MessageGroupsT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< MessageGroup > & GetMessageGroups() const
AWS_LEXMODELSV2_API ResponseSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API ResponseSpecification()=default
ResponseSpecification & WithMessageGroups(MessageGroupsT &&value)
ResponseSpecification & WithAllowInterrupt(bool value)
AWS_LEXMODELSV2_API ResponseSpecification(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue