AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResponseSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/model/MessageGroup.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 ResponseSpecification() = default;
37 AWS_LEXMODELSV2_API ResponseSpecification(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<MessageGroup>& GetMessageGroups() const { return m_messageGroups; }
48 inline bool MessageGroupsHasBeenSet() const { return m_messageGroupsHasBeenSet; }
49 template<typename MessageGroupsT = Aws::Vector<MessageGroup>>
50 void SetMessageGroups(MessageGroupsT&& value) { m_messageGroupsHasBeenSet = true; m_messageGroups = std::forward<MessageGroupsT>(value); }
51 template<typename MessageGroupsT = Aws::Vector<MessageGroup>>
52 ResponseSpecification& WithMessageGroups(MessageGroupsT&& value) { SetMessageGroups(std::forward<MessageGroupsT>(value)); return *this;}
53 template<typename MessageGroupsT = MessageGroup>
54 ResponseSpecification& AddMessageGroups(MessageGroupsT&& value) { m_messageGroupsHasBeenSet = true; m_messageGroups.emplace_back(std::forward<MessageGroupsT>(value)); return *this; }
56
58
62 inline bool GetAllowInterrupt() const { return m_allowInterrupt; }
63 inline bool AllowInterruptHasBeenSet() const { return m_allowInterruptHasBeenSet; }
64 inline void SetAllowInterrupt(bool value) { m_allowInterruptHasBeenSet = true; m_allowInterrupt = value; }
65 inline ResponseSpecification& WithAllowInterrupt(bool value) { SetAllowInterrupt(value); return *this;}
67 private:
68
69 Aws::Vector<MessageGroup> m_messageGroups;
70 bool m_messageGroupsHasBeenSet = false;
71
72 bool m_allowInterrupt{false};
73 bool m_allowInterruptHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace LexModelsV2
78} // 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