AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
StillWaitingResponseSpecification.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 StillWaitingResponseSpecification() = default;
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>>
50 SetMessageGroups(std::forward<MessageGroupsT>(value));
51 return *this;
52 }
53 template <typename MessageGroupsT = MessageGroup>
55 m_messageGroupsHasBeenSet = true;
56 m_messageGroups.emplace_back(std::forward<MessageGroupsT>(value));
57 return *this;
58 }
60
62
66 inline int GetFrequencyInSeconds() const { return m_frequencyInSeconds; }
67 inline bool FrequencyInSecondsHasBeenSet() const { return m_frequencyInSecondsHasBeenSet; }
68 inline void SetFrequencyInSeconds(int value) {
69 m_frequencyInSecondsHasBeenSet = true;
70 m_frequencyInSeconds = value;
71 }
74 return *this;
75 }
77
79
83 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
84 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
85 inline void SetTimeoutInSeconds(int value) {
86 m_timeoutInSecondsHasBeenSet = true;
87 m_timeoutInSeconds = value;
88 }
91 return *this;
92 }
94
96
100 inline bool GetAllowInterrupt() const { return m_allowInterrupt; }
101 inline bool AllowInterruptHasBeenSet() const { return m_allowInterruptHasBeenSet; }
102 inline void SetAllowInterrupt(bool value) {
103 m_allowInterruptHasBeenSet = true;
104 m_allowInterrupt = value;
105 }
107 SetAllowInterrupt(value);
108 return *this;
109 }
111 private:
112 Aws::Vector<MessageGroup> m_messageGroups;
113
114 int m_frequencyInSeconds{0};
115
116 int m_timeoutInSeconds{0};
117
118 bool m_allowInterrupt{false};
119 bool m_messageGroupsHasBeenSet = false;
120 bool m_frequencyInSecondsHasBeenSet = false;
121 bool m_timeoutInSecondsHasBeenSet = false;
122 bool m_allowInterruptHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace LexModelsV2
127} // namespace Aws
AWS_LEXMODELSV2_API StillWaitingResponseSpecification()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
StillWaitingResponseSpecification & AddMessageGroups(MessageGroupsT &&value)
AWS_LEXMODELSV2_API StillWaitingResponseSpecification(Aws::Utils::Json::JsonView jsonValue)
StillWaitingResponseSpecification & WithMessageGroups(MessageGroupsT &&value)
StillWaitingResponseSpecification & WithFrequencyInSeconds(int value)
AWS_LEXMODELSV2_API StillWaitingResponseSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue