AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
CodeConfigurationParameters.h
1
6#pragma once
7#include <aws/endusermessaging/EndUserMessaging_EXPORTS.h>
8#include <aws/endusermessaging/model/CodeType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EndUserMessaging {
20namespace Model {
21
31 public:
32 AWS_ENDUSERMESSAGING_API CodeConfigurationParameters() = default;
33 AWS_ENDUSERMESSAGING_API CodeConfigurationParameters(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline CodeType GetCodeType() const { return m_codeType; }
45 inline bool CodeTypeHasBeenSet() const { return m_codeTypeHasBeenSet; }
46 inline void SetCodeType(CodeType value) {
47 m_codeTypeHasBeenSet = true;
48 m_codeType = value;
49 }
51 SetCodeType(value);
52 return *this;
53 }
55
57
62 inline int GetCodeLength() const { return m_codeLength; }
63 inline bool CodeLengthHasBeenSet() const { return m_codeLengthHasBeenSet; }
64 inline void SetCodeLength(int value) {
65 m_codeLengthHasBeenSet = true;
66 m_codeLength = value;
67 }
69 SetCodeLength(value);
70 return *this;
71 }
73
75
80 inline int GetValidityPeriodMinutes() const { return m_validityPeriodMinutes; }
81 inline bool ValidityPeriodMinutesHasBeenSet() const { return m_validityPeriodMinutesHasBeenSet; }
82 inline void SetValidityPeriodMinutes(int value) {
83 m_validityPeriodMinutesHasBeenSet = true;
84 m_validityPeriodMinutes = value;
85 }
88 return *this;
89 }
91
93
98 inline int GetMaxAttempts() const { return m_maxAttempts; }
99 inline bool MaxAttemptsHasBeenSet() const { return m_maxAttemptsHasBeenSet; }
100 inline void SetMaxAttempts(int value) {
101 m_maxAttemptsHasBeenSet = true;
102 m_maxAttempts = value;
103 }
105 SetMaxAttempts(value);
106 return *this;
107 }
109 private:
110 CodeType m_codeType{CodeType::NOT_SET};
111
112 int m_codeLength{0};
113
114 int m_validityPeriodMinutes{0};
115
116 int m_maxAttempts{0};
117 bool m_codeTypeHasBeenSet = false;
118 bool m_codeLengthHasBeenSet = false;
119 bool m_validityPeriodMinutesHasBeenSet = false;
120 bool m_maxAttemptsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace EndUserMessaging
125} // namespace Aws
AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
CodeConfigurationParameters & WithCodeType(CodeType value)
AWS_ENDUSERMESSAGING_API CodeConfigurationParameters()=default
AWS_ENDUSERMESSAGING_API CodeConfigurationParameters(Aws::Utils::Json::JsonView jsonValue)
AWS_ENDUSERMESSAGING_API CodeConfigurationParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue