AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DTMFSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
28 public:
29 AWS_LEXMODELSV2_API DTMFSpecification() = default;
30 AWS_LEXMODELSV2_API DTMFSpecification(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetMaxLength() const { return m_maxLength; }
39 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
40 inline void SetMaxLength(int value) {
41 m_maxLengthHasBeenSet = true;
42 m_maxLength = value;
43 }
44 inline DTMFSpecification& WithMaxLength(int value) {
45 SetMaxLength(value);
46 return *this;
47 }
49
51
55 inline int GetEndTimeoutMs() const { return m_endTimeoutMs; }
56 inline bool EndTimeoutMsHasBeenSet() const { return m_endTimeoutMsHasBeenSet; }
57 inline void SetEndTimeoutMs(int value) {
58 m_endTimeoutMsHasBeenSet = true;
59 m_endTimeoutMs = value;
60 }
62 SetEndTimeoutMs(value);
63 return *this;
64 }
66
68
72 inline const Aws::String& GetDeletionCharacter() const { return m_deletionCharacter; }
73 inline bool DeletionCharacterHasBeenSet() const { return m_deletionCharacterHasBeenSet; }
74 template <typename DeletionCharacterT = Aws::String>
75 void SetDeletionCharacter(DeletionCharacterT&& value) {
76 m_deletionCharacterHasBeenSet = true;
77 m_deletionCharacter = std::forward<DeletionCharacterT>(value);
78 }
79 template <typename DeletionCharacterT = Aws::String>
80 DTMFSpecification& WithDeletionCharacter(DeletionCharacterT&& value) {
81 SetDeletionCharacter(std::forward<DeletionCharacterT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetEndCharacter() const { return m_endCharacter; }
92 inline bool EndCharacterHasBeenSet() const { return m_endCharacterHasBeenSet; }
93 template <typename EndCharacterT = Aws::String>
94 void SetEndCharacter(EndCharacterT&& value) {
95 m_endCharacterHasBeenSet = true;
96 m_endCharacter = std::forward<EndCharacterT>(value);
97 }
98 template <typename EndCharacterT = Aws::String>
99 DTMFSpecification& WithEndCharacter(EndCharacterT&& value) {
100 SetEndCharacter(std::forward<EndCharacterT>(value));
101 return *this;
102 }
104 private:
105 int m_maxLength{0};
106
107 int m_endTimeoutMs{0};
108
109 Aws::String m_deletionCharacter;
110
111 Aws::String m_endCharacter;
112 bool m_maxLengthHasBeenSet = false;
113 bool m_endTimeoutMsHasBeenSet = false;
114 bool m_deletionCharacterHasBeenSet = false;
115 bool m_endCharacterHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace LexModelsV2
120} // namespace Aws
void SetDeletionCharacter(DeletionCharacterT &&value)
AWS_LEXMODELSV2_API DTMFSpecification(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEndCharacter() const
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDeletionCharacter() const
AWS_LEXMODELSV2_API DTMFSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
DTMFSpecification & WithDeletionCharacter(DeletionCharacterT &&value)
DTMFSpecification & WithMaxLength(int value)
AWS_LEXMODELSV2_API DTMFSpecification()=default
DTMFSpecification & WithEndCharacter(EndCharacterT &&value)
void SetEndCharacter(EndCharacterT &&value)
DTMFSpecification & WithEndTimeoutMs(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue